Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007458/0.007458, allocations: 104 kB / 15.74 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 197.7 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.92 kB / 326.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1595, allocations: 46.62 MB / 373.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.3674/0.5269, allocations: 8.135 MB / 381.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005808/0.5327, allocations: 2.742 MB / 384 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.5345, allocations: 25.94 kB / 384.1 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.5368, allocations: 0.5366 MB / 384.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002664/0.5395, allocations: 436.3 kB / 385 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.5408, allocations: 368 kB / 385.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002979/0.5438, allocations: 1.505 MB / 386.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.545, allocations: 0.6136 MB / 387.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.5464, allocations: 0.5535 MB / 388.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.5476, allocations: 0.5993 MB / 388.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003127/0.5479, allocations: 139 kB / 388.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005753/0.5485, allocations: 180.3 kB / 389 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002535/0.5487, allocations: 294.4 kB / 389.3 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007868/0.5495, allocations: 0.6666 MB / 389.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003032/0.5526, allocations: 1.721 MB / 391.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.5526, allocations: 0.7031 kB / 391.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.5526, allocations: 5.25 kB / 391.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.01e-05/0.5527, allocations: 0 / 391.7 MB, free: 3.891 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003596/0.5563, allocations: 1.508 MB / 393.2 MB, free: 2.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.272e-05/0.5563, allocations: 8.656 kB / 393.2 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009678/0.5573, allocations: 191.6 kB / 393.4 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00176/0.5591, allocations: 0.7954 MB / 394.2 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.833e-05/0.5592, allocations: 76.56 kB / 394.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.5594, allocations: 103.4 kB / 394.3 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.5613, allocations: 0.9561 MB / 395.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.178e-05/0.5613, allocations: 3.719 kB / 395.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.615e-05/0.5614, allocations: 40 kB / 395.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-05/0.5615, allocations: 24.09 kB / 395.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.5628, allocations: 0.6376 MB / 396 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007169/0.57, allocations: 4.09 MB / 400.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.5713, allocations: 418.7 kB / 400.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.5716, allocations: 164.7 kB / 400.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.5717, allocations: 8.109 kB / 400.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.5717, allocations: 38.44 kB / 400.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.284e-06/0.5718, allocations: 4 kB / 400.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003451/0.5753, allocations: 1.33 MB / 402 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.321e-05/0.5754, allocations: 107.2 kB / 402.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001711/0.5771, allocations: 0.8986 MB / 403 MB, free: 12.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.184e-05/0.5772, allocations: 35.11 kB / 403.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006335/0.5778, allocations: 0.5871 MB / 403.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.578, allocations: 149.2 kB / 403.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002928/0.5783, allocations: 136.3 kB / 403.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.5785, allocations: 333.1 kB / 404.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004321/0.5789, allocations: 175.5 kB / 404.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008989/0.5798, allocations: 496.4 kB / 404.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.5812, allocations: 0.685 MB / 405.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.5812, allocations: 2.375 kB / 405.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001896/0.5831, allocations: 0.7498 MB / 406.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.5831, allocations: 13.59 kB / 406.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.5831, allocations: 10.44 kB / 406.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001946/0.5834, allocations: 39.47 kB / 406.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006041/0.584, allocations: 167.6 kB / 406.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.5852, allocations: 1.396 MB / 408 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009352/0.5862, allocations: 34.8 kB / 408 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.684e-05/0.5862, allocations: 37 kB / 408 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009623/0.5872, allocations: 348.9 kB / 408.4 MB, free: 8.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007599/0.588, allocations: 478.1 kB / 408.9 MB, free: 7.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001048/0.589, allocations: 0.6751 MB / 409.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.163e-06/0.5891, allocations: 3.094 kB / 409.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001462/0.5905, allocations: 0.7177 MB / 410.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.5906, allocations: 13.19 kB / 410.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.5906, allocations: 9.812 kB / 410.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001251/0.5907, allocations: 32.48 kB / 410.3 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005812/0.5913, allocations: 176.4 kB / 410.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.5926, allocations: 1.384 MB / 411.9 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.5938, allocations: 34.27 kB / 411.9 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.229e-05/0.5939, allocations: 37.19 kB / 411.9 MB, free: 5.262 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0005168/0.5944, allocations: 237.2 kB / 412.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002779/0.5947, allocations: 95.44 kB / 412.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/0.5961, allocations: 438.2 kB / 412.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.5961, allocations: 2.125 kB / 412.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.5961, allocations: 1.719 kB / 412.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.5961, allocations: 3.938 kB / 412.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.5991, allocations: 1.379 MB / 414.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.5991, allocations: 3.125 kB / 414.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.5994, allocations: 71 kB / 414.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001378/0.5996, allocations: 27.59 kB / 414.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.367e-05/0.5996, allocations: 9.188 kB / 414.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.6009, allocations: 1.38 MB / 415.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6009, allocations: 6.484 kB / 415.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.6025, allocations: 0.7146 MB / 416.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005763/0.6031, allocations: 211.6 kB / 416.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.6032, allocations: 11.66 kB / 416.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004353/0.6036, allocations: 19.95 kB / 416.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.6038, allocations: 28.81 kB / 416.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/0.6038, allocations: 17.73 kB / 416.6 MB, free: 1.488 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.6051, allocations: 0.6059 MB / 417.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6051, allocations: 4 kB / 417.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001934/0.6071, allocations: 348.4 kB / 417.5 MB, free: 1.102 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.0003811/0.6074, allocations: 130.4 kB / 417.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.6099, allocations: 0.9758 MB / 418.6 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.6099, allocations: 0.75 kB / 418.6 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005305/0.6105, allocations: 294.4 kB / 418.9 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.6122, allocations: 241.8 kB / 419.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004704/0.6169, allocations: 1.815 MB / 421 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009413/0.6179, allocations: 1.025 MB / 422 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008694/0.6188, allocations: 127.4 kB / 422.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.619, allocations: 55.44 kB / 422.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of SimCode: time 1.533e-06/0.619, allocations: 0 / 422.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of Templates: time 0.02947/0.6485, allocations: 10.8 MB / 433 MB, free: 2.047 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)