Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007535/0.0007535, allocations: 96.11 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008606/0.0008606, allocations: 202.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002445, allocations: 4 kB / 307.7 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09473/0.095, allocations: 51.53 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.2054/0.3005, allocations: 22.17 MB / 381.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.3145, allocations: 6.621 MB / 388.1 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00495/0.3195, allocations: 100.2 kB / 388.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002671/0.3222, allocations: 0.6748 MB / 388.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003856/0.326, allocations: 0.7321 MB / 389.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002309/0.3284, allocations: 0.7109 MB / 390.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005075/0.3335, allocations: 3.237 MB / 393.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003094/0.3366, allocations: 1.703 MB / 395.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002417/0.339, allocations: 1.01 MB / 396.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00252/0.3415, allocations: 1.145 MB / 397.4 MB, free: 292 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000733/0.3423, allocations: 154.6 kB / 397.5 MB, free: 292 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001427/0.3437, allocations: 190.7 kB / 397.7 MB, free: 284 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004506/0.3442, allocations: 464.1 kB / 398.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.3458, allocations: 1.36 MB / 399.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00443/0.3502, allocations: 4.176 MB / 403.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.3503, allocations: 5.156 kB / 403.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3503, allocations: 0 / 403.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.408e-05/0.3504, allocations: 0 / 403.7 MB, free: 12.03 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.004655/0.355, allocations: 2.582 MB / 406.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3551, allocations: 9.469 kB / 406.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008969/0.356, allocations: 366.4 kB / 406.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.358, allocations: 1.456 MB / 408.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.3581, allocations: 194.6 kB / 408.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.3584, allocations: 272.2 kB / 408.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004094/0.3625, allocations: 2.483 MB / 411 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-05/0.3626, allocations: 15.67 kB / 411.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001912/0.3628, allocations: 105.9 kB / 411.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.567e-05/0.3629, allocations: 69.47 kB / 411.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003368/0.3662, allocations: 1.695 MB / 412.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01334/0.3796, allocations: 10.37 MB / 423.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.3814, allocations: 0.8826 MB / 424.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.3824, allocations: 0.4998 MB / 424.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.567e-05/0.3825, allocations: 9 kB / 424.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.3825, allocations: 39.56 kB / 424.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 4.018e-06/0.3825, allocations: 0 / 424.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005586/0.3881, allocations: 2.777 MB / 427.5 MB, free: 6.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.3882, allocations: 115.8 kB / 427.6 MB, free: 6.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/0.3901, allocations: 1.569 MB / 429.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.482e-05/0.3902, allocations: 45.7 kB / 429.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008124/0.391, allocations: 1.285 MB / 430.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002371/0.3913, allocations: 331.4 kB / 430.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.3914, allocations: 133.6 kB / 431 MB, free: 2.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.522e-05/0.3915, allocations: 309 kB / 431.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008417/0.3924, allocations: 431.8 kB / 431.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.3937, allocations: 1.131 MB / 432.8 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002173/0.3958, allocations: 1.651 MB / 434.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.3959, allocations: 4 kB / 434.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002867/0.3987, allocations: 1.723 MB / 436.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004815/0.3992, allocations: 0.7831 MB / 437 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.3993, allocations: 24 kB / 437 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.3994, allocations: 56.84 kB / 437.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.4007, allocations: 403.3 kB / 437.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.4017, allocations: 1.327 MB / 438.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.403, allocations: 92.03 kB / 438.9 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.4031, allocations: 84 kB / 439 MB, free: 9.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.933e-06/0.4031, allocations: 4 kB / 439 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002525/0.4056, allocations: 1.477 MB / 440.4 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/0.4057, allocations: 24 kB / 440.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001611/0.4059, allocations: 52.84 kB / 440.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.4071, allocations: 399.6 kB / 440.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.4082, allocations: 1.331 MB / 442.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.4095, allocations: 75.97 kB / 442.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.169e-05/0.4096, allocations: 84 kB / 442.4 MB, free: 6.102 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 3 (switch.control,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 211 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001197/0.4108, allocations: 0.5589 MB / 442.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/0.4111, allocations: 177.9 kB / 443.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/0.4131, allocations: 0.9423 MB / 444.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4131, allocations: 8 kB / 444.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4131, allocations: 7.875 kB / 444.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.4131, allocations: 3.984 kB / 444.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004637/0.4178, allocations: 2.934 MB / 447 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/0.4178, allocations: 4 kB / 447 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008694/0.4187, allocations: 187.8 kB / 447.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.4188, allocations: 33.02 kB / 447.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-05/0.4189, allocations: 27.98 kB / 447.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009117/0.4198, allocations: 1.289 MB / 448.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/0.4198, allocations: 7.938 kB / 448.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.4224, allocations: 1.516 MB / 450.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006135/0.423, allocations: 322.8 kB / 450.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.4232, allocations: 20 kB / 450.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007543/0.424, allocations: 67.95 kB / 450.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.4241, allocations: 72.45 kB / 450.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.953e-05/0.4242, allocations: 31.98 kB / 450.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001459/0.4256, allocations: 1.02 MB / 451.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4256, allocations: 0 / 451.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00241/0.4281, allocations: 0.7657 MB / 452.4 MB, free: 11.78 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002744/0.4283, allocations: 149.2 kB / 452.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003712/0.4321, allocations: 2.066 MB / 454.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4321, allocations: 0 / 454.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009226/0.433, allocations: 0.5423 MB / 455.1 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.4357, allocations: 408.5 kB / 455.5 MB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006989/0.4427, allocations: 5.131 MB / 460.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/0.4439, allocations: 1.475 MB / 462.1 MB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001147/0.4451, allocations: 250.2 kB / 462.4 MB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.4453, allocations: 111.4 kB / 462.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4453, allocations: 0 / 462.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of Templates: time 0.03364/0.479, allocations: 18.57 MB / 481 MB, free: 15.11 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)