Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.009387/0.009387, allocations: 101.5 kB / 15.73 MB, free: 6.477 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.001536/0.001536, allocations: 192.6 kB / 16.67 MB, free: 6.391 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.776/1.776, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.00138/0.00138, allocations: 50.05 kB / 326.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1064, allocations: 46.63 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.009994/0.1165, allocations: 7.919 MB / 381.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005537/0.1221, allocations: 2.618 MB / 383.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001663/0.1239, allocations: 20 kB / 383.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001858/0.1257, allocations: 0.5281 MB / 384.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001543/0.1273, allocations: 436.7 kB / 384.7 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005496/0.1279, allocations: 215.7 kB / 384.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001587/0.1295, allocations: 1.23 MB / 386.1 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007536/0.1302, allocations: 0.537 MB / 386.7 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006629/0.1309, allocations: 490.1 kB / 387.1 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009206/0.1318, allocations: 0.5172 MB / 387.7 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.132, allocations: 116 kB / 387.8 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003207/0.1323, allocations: 152 kB / 387.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1325, allocations: 235.1 kB / 388.1 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005165/0.133, allocations: 0.5638 MB / 388.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00166/0.1347, allocations: 1.456 MB / 390.2 MB, free: 244 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1347, allocations: 8 kB / 390.2 MB, free: 236 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1347, allocations: 0 / 390.2 MB, free: 236 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.963e-05/0.1348, allocations: 0 / 390.2 MB, free: 236 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.002559/0.1373, allocations: 1.305 MB / 391.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.645e-05/0.1374, allocations: 12.03 kB / 391.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005707/0.138, allocations: 147.6 kB / 391.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.1392, allocations: 0.6376 MB / 392.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.791e-05/0.1393, allocations: 62.38 kB / 392.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.1395, allocations: 87.94 kB / 392.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.141, allocations: 0.8262 MB / 393.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.427e-05/0.141, allocations: 3.984 kB / 393.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.498e-05/0.1411, allocations: 36 kB / 393.3 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/0.1411, allocations: 27.94 kB / 393.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.1422, allocations: 0.5426 MB / 393.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004527/0.1467, allocations: 3.554 MB / 397.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005392/0.1473, allocations: 246.6 kB / 397.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002686/0.1476, allocations: 124.8 kB / 397.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.1476, allocations: 0 / 397.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.1477, allocations: 38.5 kB / 397.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.793e-06/0.1477, allocations: 0 / 397.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002234/0.1499, allocations: 1.069 MB / 398.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.15, allocations: 81.05 kB / 399 MB, free: 6.965 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009393/0.1509, allocations: 0.7701 MB / 399.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.151, allocations: 33.7 kB / 399.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.1513, allocations: 0.5136 MB / 400.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.384e-05/0.1514, allocations: 114.4 kB / 400.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.1516, allocations: 122.2 kB / 400.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.1518, allocations: 382.8 kB / 400.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.1521, allocations: 125.2 kB / 401 MB, free: 4.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.1527, allocations: 450.2 kB / 401.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007886/0.1534, allocations: 0.618 MB / 402.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1535, allocations: 0 / 402.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001065/0.1545, allocations: 0.6454 MB / 402.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.1546, allocations: 8 kB / 402.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.1546, allocations: 16.81 kB / 402.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001855/0.1548, allocations: 40.84 kB / 402.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.1553, allocations: 147.7 kB / 402.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.1563, allocations: 1.39 MB / 404.3 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004795/0.1568, allocations: 35.89 kB / 404.3 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.574e-05/0.1569, allocations: 39.94 kB / 404.4 MB, free: 1.059 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.0003125/0.1572, allocations: 249.5 kB / 404.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.533e-05/0.1573, allocations: 75.06 kB / 404.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006533/0.158, allocations: 330 kB / 405 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.158, allocations: 4.047 kB / 405 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.158, allocations: 7.922 kB / 405 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.158, allocations: 7.922 kB / 405 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.1596, allocations: 1.11 MB / 406.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.1596, allocations: 4 kB / 406.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.1599, allocations: 63.91 kB / 406.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.292e-05/0.16, allocations: 20.84 kB / 406.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.16, allocations: 8 kB / 406.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009696/0.161, allocations: 1.371 MB / 407.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.161, allocations: 7.938 kB / 407.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008731/0.1619, allocations: 0.5649 MB / 408.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.1621, allocations: 180.1 kB / 408.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.278e-05/0.1622, allocations: 8 kB / 408.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/0.1626, allocations: 19.97 kB / 408.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.1626, allocations: 27.97 kB / 408.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.1627, allocations: 16 kB / 408.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006483/0.1633, allocations: 0.5147 MB / 408.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1633, allocations: 0 / 408.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006794/0.164, allocations: 175.9 kB / 409.1 MB, free: 12.02 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.0002177/0.1642, allocations: 123.2 kB / 409.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009096/0.1652, allocations: 484 kB / 409.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.1652, allocations: 4 kB / 409.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.1656, allocations: 239.8 kB / 409.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009229/0.1665, allocations: 199.1 kB / 410.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.1688, allocations: 1.455 MB / 411.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.1693, allocations: 0.9526 MB / 412.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003031/0.1696, allocations: 94.17 kB / 412.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.1697, allocations: 51.42 kB / 412.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1697, allocations: 0 / 412.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of Templates: time 0.01679/0.1865, allocations: 8.568 MB / 421.3 MB, free: 15.74 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1)