Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01142/0.01142, allocations: 100.2 kB / 15.73 MB, free: 6.027 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.003322/0.003323, allocations: 187.2 kB / 16.67 MB, free: 5.965 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.947/1.947, allocations: 205.1 MB / 222.5 MB, free: 4.387 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.001339/0.00134, allocations: 50.88 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1309, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01248/0.1435, allocations: 7.919 MB / 381.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006375/0.1499, allocations: 2.622 MB / 383.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.1516, allocations: 23.94 kB / 383.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002331/0.154, allocations: 0.5008 MB / 384.2 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002133/0.1561, allocations: 396.8 kB / 384.6 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00095/0.1571, allocations: 219.6 kB / 384.8 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002364/0.1595, allocations: 1.234 MB / 386.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.1606, allocations: 0.5292 MB / 386.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.1617, allocations: 490.1 kB / 387.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.1628, allocations: 0.5172 MB / 387.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003065/0.1632, allocations: 112 kB / 387.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000552/0.1637, allocations: 160 kB / 387.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.164, allocations: 235.1 kB / 388.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006938/0.1647, allocations: 0.5676 MB / 388.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001777/0.1665, allocations: 1.452 MB / 390.1 MB, free: 268 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1665, allocations: 4 kB / 390.1 MB, free: 264 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1665, allocations: 0 / 390.1 MB, free: 264 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.44e-05/0.1665, allocations: 3.938 kB / 390.1 MB, free: 260 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002687/0.1692, allocations: 1.309 MB / 391.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.1693, allocations: 12.03 kB / 391.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005012/0.1698, allocations: 147.6 kB / 391.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.171, allocations: 0.6454 MB / 392.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.345e-05/0.171, allocations: 66.36 kB / 392.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.1712, allocations: 87.94 kB / 392.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.1726, allocations: 0.8184 MB / 393.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.659e-05/0.1726, allocations: 0 / 393.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/0.1727, allocations: 32 kB / 393.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.1727, allocations: 27.94 kB / 393.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.1738, allocations: 0.5387 MB / 393.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00449/0.1783, allocations: 3.558 MB / 397.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005855/0.1789, allocations: 250.6 kB / 397.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.1791, allocations: 116.8 kB / 397.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.1792, allocations: 0 / 397.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.1792, allocations: 46.55 kB / 397.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.282e-06/0.1793, allocations: 0 / 397.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.00223/0.1815, allocations: 1.061 MB / 398.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.1816, allocations: 85.05 kB / 398.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/0.1826, allocations: 0.7662 MB / 399.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.1826, allocations: 33.7 kB / 399.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004077/0.1831, allocations: 0.5097 MB / 400.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.614e-05/0.1832, allocations: 110.4 kB / 400.3 MB, free: 5.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.1833, allocations: 126.2 kB / 400.4 MB, free: 5.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002163/0.1836, allocations: 382.8 kB / 400.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.1839, allocations: 129.2 kB / 400.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/0.1844, allocations: 442.2 kB / 401.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008981/0.1853, allocations: 0.6257 MB / 402 MB, free: 3.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1853, allocations: 0 / 402 MB, free: 3.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00111/0.1865, allocations: 0.642 MB / 402.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.1865, allocations: 8 kB / 402.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.1865, allocations: 15.94 kB / 402.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.1867, allocations: 36.84 kB / 402.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004633/0.1872, allocations: 148.2 kB / 402.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.1885, allocations: 1.398 MB / 404.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/0.1889, allocations: 39.89 kB / 404.3 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.189, allocations: 35.94 kB / 404.3 MB, free: 1.086 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0003535/0.1894, allocations: 245.5 kB / 404.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.1895, allocations: 79.05 kB / 404.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007263/0.1902, allocations: 334 kB / 405 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1902, allocations: 7.938 kB / 405 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1902, allocations: 0 / 405 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.1903, allocations: 7.922 kB / 405 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.192, allocations: 1.121 MB / 406.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.192, allocations: 4 kB / 406.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.1923, allocations: 64.12 kB / 406.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-05/0.1924, allocations: 20.84 kB / 406.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.1924, allocations: 8 kB / 406.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.1936, allocations: 1.371 MB / 407.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1936, allocations: 4 kB / 407.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009794/0.1946, allocations: 0.5687 MB / 408.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.1949, allocations: 180.1 kB / 408.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.261e-05/0.195, allocations: 11.98 kB / 408.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.1953, allocations: 15.98 kB / 408.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.1954, allocations: 27.91 kB / 408.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.1954, allocations: 8 kB / 408.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007423/0.1962, allocations: 0.5186 MB / 408.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1962, allocations: 0 / 408.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006853/0.1969, allocations: 175.9 kB / 409.1 MB, free: 12.04 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * 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.0002733/0.1972, allocations: 115.3 kB / 409.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009992/0.1982, allocations: 484.8 kB / 409.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1982, allocations: 4.062 kB / 409.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003909/0.1986, allocations: 242.4 kB / 409.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009693/0.1996, allocations: 187.4 kB / 410.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.2023, allocations: 1.467 MB / 411.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006774/0.203, allocations: 0.9526 MB / 412.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003277/0.2033, allocations: 94.17 kB / 412.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.2035, allocations: 47.44 kB / 412.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2035, allocations: 0 / 412.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of Templates: time 0.02065/0.2241, allocations: 8.759 MB / 421.4 MB, free: 15.57 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1)