Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001317/0.001324, allocations: 111.7 kB / 16.63 MB, free: 6.812 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.001225/0.001225, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.988/1.988, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001211/0.001211, allocations: 43.94 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1293, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01979/0.1491, allocations: 15.01 MB / 341.1 MB, free: 5.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01558/0.1648, allocations: 5.541 MB / 346.7 MB, free: 156 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006512/0.1713, allocations: 71.62 kB / 346.8 MB, free: 84 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004999/0.1765, allocations: 0.8547 MB / 347.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004637/0.1812, allocations: 0.5158 MB / 348.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002914/0.1841, allocations: 0.6557 MB / 348.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006722/0.1908, allocations: 2.745 MB / 351.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002567/0.1935, allocations: 1.288 MB / 352.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002595/0.1961, allocations: 1.054 MB / 353.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001948/0.1981, allocations: 1.077 MB / 354.9 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004556/0.1985, allocations: 260 kB / 355.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005081/0.1991, allocations: 260 kB / 355.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005982/0.1997, allocations: 0.5294 MB / 356 MB, free: 6.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.201, allocations: 1.166 MB / 357.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00375/0.2048, allocations: 3.103 MB / 360.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.2048, allocations: 0 / 360.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.2048, allocations: 0 / 360.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.075e-05/0.2049, allocations: 4 kB / 360.3 MB, free: 2.492 MB / 302.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.005995/0.2109, allocations: 2.454 MB / 362.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.292e-05/0.211, allocations: 11.89 kB / 362.7 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004656/0.2115, allocations: 250 kB / 363 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/0.2137, allocations: 1.233 MB / 364.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.214, allocations: 253.3 kB / 364.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000271/0.2142, allocations: 196 kB / 364.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003754/0.218, allocations: 1.919 MB / 366.6 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.555e-05/0.2181, allocations: 7.906 kB / 366.6 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.2182, allocations: 79.94 kB / 366.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.833e-05/0.2183, allocations: 48 kB / 366.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003549/0.2219, allocations: 1.575 MB / 368.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01257/0.2344, allocations: 7.231 MB / 375.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/0.2376, allocations: 1.202 MB / 376.7 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.2388, allocations: 456.3 kB / 377.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.988e-05/0.2389, allocations: 16.94 kB / 377.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/0.2389, allocations: 47.55 kB / 377.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 3.266e-06/0.2389, allocations: 0 / 377.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.3404/0.5793, allocations: 7.853 MB / 385.1 MB, free: 51.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.688e-05/0.5795, allocations: 63.22 kB / 385.1 MB, free: 51.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/0.5827, allocations: 1.238 MB / 386.4 MB, free: 51.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.5828, allocations: 45.73 kB / 386.4 MB, free: 51.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009183/0.5838, allocations: 0.9955 MB / 387.4 MB, free: 50.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004112/0.5842, allocations: 394.8 kB / 387.8 MB, free: 50.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005918/0.5848, allocations: 269.8 kB / 388 MB, free: 49.94 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.259e-05/0.5849, allocations: 308.9 kB / 388.3 MB, free: 49.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.5869, allocations: 0.7318 MB / 389.1 MB, free: 49.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.5892, allocations: 1.196 MB / 390.3 MB, free: 48.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/0.5929, allocations: 1.796 MB / 392.1 MB, free: 47.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/0.593, allocations: 4.312 kB / 392.1 MB, free: 47.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005271/0.5982, allocations: 2.137 MB / 394.2 MB, free: 46.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/0.5983, allocations: 15.5 kB / 394.2 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.505e-05/0.5983, allocations: 14.59 kB / 394.2 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000229/0.5986, allocations: 47.59 kB / 394.3 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/0.6003, allocations: 413.1 kB / 394.7 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009403/0.6013, allocations: 1.38 MB / 396.1 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.603, allocations: 138.2 kB / 396.2 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.6031, allocations: 71.19 kB / 396.3 MB, free: 44.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002259/0.6054, allocations: 0.9772 MB / 397.3 MB, free: 44.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001684/0.6071, allocations: 1.152 MB / 398.4 MB, free: 43.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003058/0.6102, allocations: 1.745 MB / 400.2 MB, free: 41.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.142e-05/0.6102, allocations: 7.734 kB / 400.2 MB, free: 41.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.00404/0.6142, allocations: 2.059 MB / 402.2 MB, free: 40.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.6143, allocations: 12 kB / 402.2 MB, free: 40.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/0.6143, allocations: 17.12 kB / 402.2 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001575/0.6145, allocations: 41.34 kB / 402.3 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001556/0.616, allocations: 400.8 kB / 402.7 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007832/0.6168, allocations: 1.378 MB / 404.1 MB, free: 38.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.6185, allocations: 124 kB / 404.2 MB, free: 38.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.506e-05/0.6186, allocations: 64 kB / 404.2 MB, free: 38.21 MB / 318.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.0004623/0.6191, allocations: 281 kB / 404.5 MB, free: 37.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.6194, allocations: 158 kB / 404.7 MB, free: 37.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003482/0.6229, allocations: 1.578 MB / 406.2 MB, free: 36.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.6229, allocations: 12 kB / 406.3 MB, free: 36.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.6229, allocations: 0 / 406.3 MB, free: 36.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.6229, allocations: 11.91 kB / 406.3 MB, free: 36.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006452/0.6294, allocations: 3.771 MB / 410 MB, free: 32.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.6294, allocations: 12 kB / 410.1 MB, free: 32.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.6305, allocations: 251.6 kB / 410.3 MB, free: 31.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.6306, allocations: 33.17 kB / 410.3 MB, free: 31.88 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/0.6307, allocations: 39.92 kB / 410.4 MB, free: 31.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007566/0.6314, allocations: 1.371 MB / 411.7 MB, free: 30.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.6315, allocations: 15.94 kB / 411.8 MB, free: 30.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003947/0.6354, allocations: 2.224 MB / 414 MB, free: 27.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007499/0.6362, allocations: 303 kB / 414.3 MB, free: 27.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000376/0.6366, allocations: 38.92 kB / 414.3 MB, free: 27.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.6377, allocations: 107.9 kB / 414.4 MB, free: 27.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/0.638, allocations: 132.1 kB / 414.5 MB, free: 27.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.008e-05/0.6381, allocations: 40.55 kB / 414.6 MB, free: 27.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001524/0.6396, allocations: 0.8103 MB / 415.4 MB, free: 26.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6397, allocations: 0 / 415.4 MB, free: 26.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.003182/0.6428, allocations: 0.6094 MB / 416 MB, free: 25.89 MB / 318.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.0003625/0.6432, allocations: 158.8 kB / 416.2 MB, free: 25.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006431/0.6497, allocations: 2.872 MB / 419 MB, free: 22.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/0.6497, allocations: 0 / 419 MB, free: 22.85 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.6513, allocations: 0.6992 MB / 419.7 MB, free: 22.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/0.6541, allocations: 367.2 kB / 420.1 MB, free: 21.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008893/0.6631, allocations: 4.411 MB / 424.5 MB, free: 17.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.6642, allocations: 1.345 MB / 425.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001869/0.666, allocations: 284.4 kB / 426.1 MB, free: 15.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003648/0.6664, allocations: 110.5 kB / 426.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of SimCode: time 1.272e-06/0.6664, allocations: 0 / 426.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of Templates: time 0.03593/0.7024, allocations: 17.77 MB / 444 MB, free: 13.72 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)