Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.01155/0.01155, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.906/1.906, allocations: 205.4 MB / 222.4 MB, free: 5.801 MB / 174.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.0005012/0.000501, allocations: 12 kB / 279.4 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3202, allocations: 47.59 MB / 327 MB, free: 1.195 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01728/0.3375, allocations: 14.29 MB / 341.3 MB, free: 4.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.3515, allocations: 5.486 MB / 346.8 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004487/0.356, allocations: 75.62 kB / 346.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.3588, allocations: 0.8352 MB / 347.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00282/0.3617, allocations: 0.5158 MB / 348.2 MB, free: 14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001815/0.3635, allocations: 0.6635 MB / 348.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00329/0.3668, allocations: 2.566 MB / 351.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.3684, allocations: 1.141 MB / 352.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.3697, allocations: 0.8239 MB / 353.4 MB, free: 8.742 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.3707, allocations: 0.874 MB / 354.3 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001956/0.371, allocations: 100 kB / 354.4 MB, free: 7.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.3712, allocations: 96 kB / 354.5 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003144/0.3715, allocations: 354.2 kB / 354.8 MB, free: 7.324 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008725/0.3724, allocations: 0.9959 MB / 355.8 MB, free: 6.316 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002647/0.375, allocations: 2.891 MB / 358.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3751, allocations: 0 / 358.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3751, allocations: 0 / 358.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.309e-05/0.3751, allocations: 0 / 358.7 MB, free: 3.414 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004294/0.3794, allocations: 2.112 MB / 360.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.175e-05/0.3795, allocations: 8.031 kB / 360.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.3799, allocations: 253.9 kB / 361.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.3818, allocations: 1.233 MB / 362.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/0.3821, allocations: 261.4 kB / 362.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002672/0.3824, allocations: 200 kB / 362.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00359/0.386, allocations: 1.942 MB / 364.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.744e-05/0.3861, allocations: 11.92 kB / 364.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/0.3862, allocations: 76 kB / 364.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/0.3863, allocations: 44 kB / 364.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003662/0.39, allocations: 1.633 MB / 366.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/0.4001, allocations: 7.301 MB / 373.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00279/0.4029, allocations: 1.253 MB / 375 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.404, allocations: 480.3 kB / 375.5 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.398e-05/0.4041, allocations: 16.97 kB / 375.5 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.4041, allocations: 47.56 kB / 375.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 2.635e-06/0.4041, allocations: 0 / 375.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03404/0.4382, allocations: 8.837 MB / 384.4 MB, free: 9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.4383, allocations: 60.41 kB / 384.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.4401, allocations: 1.244 MB / 385.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.497e-05/0.4402, allocations: 49.7 kB / 385.8 MB, free: 7.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007819/0.441, allocations: 0.99 MB / 386.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/0.4414, allocations: 390.4 kB / 387.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.4416, allocations: 125.6 kB / 387.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.4417, allocations: 309.1 kB / 387.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.4437, allocations: 0.7769 MB / 388.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002284/0.446, allocations: 1.234 MB / 389.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003939/0.4499, allocations: 1.906 MB / 391.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.45, allocations: 7.938 kB / 391.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005178/0.4551, allocations: 2.243 MB / 393.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003821/0.4555, allocations: 0.5155 MB / 394.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/0.4556, allocations: 16 kB / 394.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001763/0.4558, allocations: 48.67 kB / 394.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/0.4576, allocations: 439.4 kB / 394.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.4589, allocations: 1.284 MB / 396 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.4606, allocations: 171.9 kB / 396.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.4608, allocations: 68 kB / 396.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.4608, allocations: 4 kB / 396.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004335/0.4651, allocations: 1.969 MB / 398.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.4651, allocations: 12 kB / 398.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.913e-05/0.4653, allocations: 44.8 kB / 398.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/0.4669, allocations: 419.9 kB / 398.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000903/0.4678, allocations: 1.28 MB / 400 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.4692, allocations: 144 kB / 400.1 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.4694, allocations: 68 kB / 400.2 MB, free: 8.238 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.noWphase,kinematicPTP.moving[1],speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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.001022/0.4704, allocations: 488.5 kB / 400.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.4707, allocations: 158 kB / 400.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004183/0.4748, allocations: 1.683 MB / 402.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.4749, allocations: 12 kB / 402.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4749, allocations: 0 / 402.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.4749, allocations: 3.984 kB / 402.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007601/0.4825, allocations: 3.928 MB / 406.4 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.549e-05/0.4825, allocations: 8 kB / 406.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.4838, allocations: 288.4 kB / 406.7 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.815e-05/0.4839, allocations: 28.84 kB / 406.8 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.246e-05/0.484, allocations: 36 kB / 406.8 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000927/0.4849, allocations: 1.272 MB / 408.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.34e-05/0.4849, allocations: 15.88 kB / 408.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004749/0.4897, allocations: 2.378 MB / 410.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005084/0.4902, allocations: 307 kB / 410.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.4904, allocations: 32.11 kB / 410.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009764/0.4914, allocations: 143.8 kB / 410.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/0.4916, allocations: 128.1 kB / 411.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-05/0.4917, allocations: 40 kB / 411.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001297/0.493, allocations: 0.8103 MB / 411.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.493, allocations: 0 / 411.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002243/0.4953, allocations: 0.6094 MB / 412.5 MB, free: 11.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.0002555/0.4955, allocations: 166.8 kB / 412.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006566/0.5021, allocations: 2.934 MB / 415.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5021, allocations: 1 kB / 415.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.5039, allocations: 0.7653 MB / 416.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003497/0.5074, allocations: 345.2 kB / 416.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007554/0.5149, allocations: 4.524 MB / 421.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.5161, allocations: 1.353 MB / 422.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001637/0.5177, allocations: 288.5 kB / 422.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003723/0.5181, allocations: 107.4 kB / 423 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of SimCode: time 1.593e-06/0.5181, allocations: 0 / 423 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of Templates: time 0.03389/0.552, allocations: 16.85 MB / 439.8 MB, free: 15.74 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)