Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 95.53 kB / 16.3 MB, free: 6.453 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.0009983/0.0009988, allocations: 179.3 kB / 17.19 MB, free: 6.34 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.79/1.79, allocations: 205.4 MB / 223.4 MB, free: 13.17 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.0004938/0.0004937, allocations: 19.44 kB / 280.1 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1129, allocations: 47.57 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01086/0.1238, allocations: 9.608 MB / 337.3 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006545/0.1304, allocations: 3.226 MB / 340.5 MB, free: 7.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001508/0.1319, allocations: 31.94 kB / 340.6 MB, free: 7.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001529/0.1335, allocations: 0.5285 MB / 341.1 MB, free: 6.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002083/0.1356, allocations: 0.7595 MB / 341.9 MB, free: 5.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007033/0.1363, allocations: 255.6 kB / 342.1 MB, free: 5.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002694/0.139, allocations: 1.694 MB / 343.8 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009153/0.1399, allocations: 0.6832 MB / 344.5 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009337/0.1408, allocations: 0.6809 MB / 345.2 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007727/0.1416, allocations: 0.7582 MB / 345.9 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.1418, allocations: 100 kB / 346 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004208/0.1422, allocations: 140 kB / 346.2 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.1424, allocations: 294.7 kB / 346.4 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003442/0.1428, allocations: 404.7 kB / 346.8 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001746/0.1446, allocations: 2.13 MB / 349 MB, free: 14.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1446, allocations: 0 / 349 MB, free: 14.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1446, allocations: 4 kB / 349 MB, free: 14.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.752e-05/0.1446, allocations: 0 / 349 MB, free: 14.73 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003003/0.1476, allocations: 1.833 MB / 350.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.1477, allocations: 8.031 kB / 350.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006592/0.1484, allocations: 257.5 kB / 351.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001818/0.1502, allocations: 1.071 MB / 352.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.273e-05/0.1503, allocations: 115.1 kB / 352.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.1505, allocations: 159.9 kB / 352.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.153, allocations: 1.461 MB / 353.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.887e-05/0.1531, allocations: 15.89 kB / 353.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.1532, allocations: 64 kB / 353.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.1533, allocations: 36 kB / 354 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.1552, allocations: 1.018 MB / 355 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00819/0.1634, allocations: 6.167 MB / 361.2 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.1646, allocations: 0.5569 MB / 361.7 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.1646, allocations: 12.55 kB / 361.7 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.1647, allocations: 43.08 kB / 361.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 3.477e-06/0.1647, allocations: 0 / 361.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004631/0.1693, allocations: 2.276 MB / 364 MB, free: 15.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.099e-05/0.1694, allocations: 111.5 kB / 364.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.1711, allocations: 1.185 MB / 365.3 MB, free: 13.72 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.1711, allocations: 37.7 kB / 365.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006875/0.1718, allocations: 0.8531 MB / 366.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.172, allocations: 256.3 kB / 366.5 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.842e-05/0.172, allocations: 24 kB / 366.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1722, allocations: 349.9 kB / 366.8 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005083/0.1727, allocations: 278.4 kB / 367.1 MB, free: 11.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.1736, allocations: 0.7264 MB / 367.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006682/0.1743, allocations: 387 kB / 368.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1743, allocations: 4 kB / 368.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.002023/0.1763, allocations: 1.217 MB / 369.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.1764, allocations: 16.03 kB / 369.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.1764, allocations: 12 kB / 369.5 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004262/0.1768, allocations: 114.5 kB / 369.6 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008091/0.1776, allocations: 259.6 kB / 369.8 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003429/0.1811, allocations: 4.204 MB / 374 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008424/0.1819, allocations: 55.89 kB / 374.1 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.656e-05/0.182, allocations: 55.98 kB / 374.1 MB, free: 4.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007045/0.1827, allocations: 361.4 kB / 374.5 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.1829, allocations: 138.3 kB / 374.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.1845, allocations: 0.7866 MB / 375.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.1846, allocations: 11.94 kB / 375.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1846, allocations: 3.938 kB / 375.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.1846, allocations: 3.984 kB / 375.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003309/0.1879, allocations: 2.185 MB / 377.6 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.1879, allocations: 4.438 kB / 377.6 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005535/0.1885, allocations: 131.8 kB / 377.8 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003338/0.1888, allocations: 106.5 kB / 377.9 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.1889, allocations: 23.94 kB / 377.9 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2365/0.4254, allocations: 4.297 MB / 382.2 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/0.4255, allocations: 10.17 kB / 382.2 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002907/0.4284, allocations: 1.427 MB / 383.6 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005827/0.429, allocations: 260.5 kB / 383.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/0.4292, allocations: 18.89 kB / 383.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005824/0.4298, allocations: 39 kB / 383.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.4299, allocations: 69.05 kB / 384 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.43, allocations: 21.75 kB / 384 MB, free: 45.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001329/0.4313, allocations: 0.7803 MB / 384.8 MB, free: 45.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.4313, allocations: 0 / 384.8 MB, free: 45.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001411/0.4327, allocations: 322 kB / 385.1 MB, free: 45.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000308/0.4331, allocations: 139 kB / 385.3 MB, free: 45.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.4353, allocations: 1.091 MB / 386.3 MB, free: 44.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4353, allocations: 1.094 kB / 386.3 MB, free: 44.74 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.4364, allocations: 0.683 MB / 387 MB, free: 44.28 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.438, allocations: 328.5 kB / 387.3 MB, free: 44.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006036/0.4441, allocations: 3.435 MB / 390.8 MB, free: 42.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001212/0.4453, allocations: 1.251 MB / 392 MB, free: 41.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008271/0.4461, allocations: 171.5 kB / 392.2 MB, free: 41.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/0.4464, allocations: 91.22 kB / 392.3 MB, free: 41.26 MB / 318.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4464, allocations: 0 / 392.3 MB, free: 41.26 MB / 318.1 MB Notification: Performance of Templates: time 0.02785/0.4742, allocations: 14.64 MB / 406.9 MB, free: 33.53 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) Environment - environmentSimulation: