Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01336/0.01336, allocations: 100.4 kB / 15.73 MB, free: 6.043 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.002094/0.002094, allocations: 184.9 kB / 16.67 MB, free: 5.977 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.922/1.922, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001189/0.001189, allocations: 48.94 kB / 326.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1191, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01115/0.1304, allocations: 8.172 MB / 381.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005772/0.1362, allocations: 2.735 MB / 384.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.1376, allocations: 23.94 kB / 384.1 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001765/0.1393, allocations: 0.5558 MB / 384.7 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001689/0.141, allocations: 480.2 kB / 385.1 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006067/0.1417, allocations: 255.7 kB / 385.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.1434, allocations: 1.51 MB / 386.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008381/0.1443, allocations: 0.5807 MB / 387.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007633/0.1451, allocations: 0.5603 MB / 388 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006699/0.1458, allocations: 0.6144 MB / 388.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001668/0.1459, allocations: 140 kB / 388.8 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003301/0.1463, allocations: 180 kB / 389 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.1465, allocations: 283 kB / 389.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006419/0.1472, allocations: 0.6765 MB / 389.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001836/0.149, allocations: 1.752 MB / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.149, allocations: 4 kB / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.149, allocations: 0 / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.1491, allocations: 0 / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00261/0.1517, allocations: 1.484 MB / 393.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1517, allocations: 8.031 kB / 393.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000664/0.1524, allocations: 187.4 kB / 393.3 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.1537, allocations: 0.7579 MB / 394.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.607e-05/0.1538, allocations: 81.94 kB / 394.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.1539, allocations: 100 kB / 394.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.1555, allocations: 0.9425 MB / 395.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.216e-05/0.1556, allocations: 11.83 kB / 395.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.875e-05/0.1557, allocations: 40 kB / 395.3 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.1557, allocations: 28 kB / 395.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.157, allocations: 0.6481 MB / 395.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.1623, allocations: 3.899 MB / 399.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007168/0.163, allocations: 451.9 kB / 400.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006398/0.1637, allocations: 280.6 kB / 400.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.1637, allocations: 4 kB / 400.6 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.1638, allocations: 38.56 kB / 400.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.555e-06/0.1638, allocations: 0 / 400.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003185/0.167, allocations: 1.556 MB / 402.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.791e-05/0.1671, allocations: 85.11 kB / 402.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.1682, allocations: 0.8449 MB / 403.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.1682, allocations: 29.7 kB / 403.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004535/0.1687, allocations: 0.5643 MB / 403.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.1689, allocations: 161.7 kB / 403.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.1691, allocations: 134.5 kB / 404 MB, free: 1.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.1693, allocations: 334 kB / 404.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.1697, allocations: 169.9 kB / 404.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005843/0.1703, allocations: 475.6 kB / 404.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009882/0.1712, allocations: 0.6797 MB / 405.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.1713, allocations: 4 kB / 405.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001401/0.1727, allocations: 0.7943 MB / 406.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.1727, allocations: 12 kB / 406.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.1727, allocations: 8 kB / 406.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003138/0.173, allocations: 89.67 kB / 406.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.1736, allocations: 159.9 kB / 406.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002635/0.1762, allocations: 3.134 MB / 409.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006502/0.1769, allocations: 31.98 kB / 409.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.838e-05/0.1769, allocations: 36.12 kB / 409.9 MB, free: 11.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004515/0.1774, allocations: 269.6 kB / 410.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/0.1777, allocations: 90.88 kB / 410.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.1787, allocations: 0.5069 MB / 410.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1787, allocations: 4 kB / 410.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1787, allocations: 0 / 410.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1788, allocations: 7.922 kB / 410.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.181, allocations: 1.473 MB / 412.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.1811, allocations: 0 / 412.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.1814, allocations: 76.12 kB / 412.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002456/0.1817, allocations: 73.61 kB / 412.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.1817, allocations: 12 kB / 412.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/0.1847, allocations: 3.126 MB / 415.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.1848, allocations: 4 kB / 415.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.1865, allocations: 0.8059 MB / 416.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004764/0.187, allocations: 200 kB / 416.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.1872, allocations: 15.92 kB / 416.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.1877, allocations: 27.98 kB / 416.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1878, allocations: 35.7 kB / 416.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.1878, allocations: 16 kB / 416.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008032/0.1886, allocations: 0.5732 MB / 417.2 MB, free: 3.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1886, allocations: 0 / 417.2 MB, free: 3.656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009345/0.1896, allocations: 212 kB / 417.4 MB, free: 3.449 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0002443/0.1898, allocations: 123.2 kB / 417.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.1914, allocations: 0.7055 MB / 418.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.1914, allocations: 0 / 418.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007758/0.1922, allocations: 455 kB / 418.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.1935, allocations: 223.1 kB / 418.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00375/0.1973, allocations: 1.745 MB / 420.6 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/0.1982, allocations: 1.017 MB / 421.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004813/0.1986, allocations: 111.3 kB / 421.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.1988, allocations: 55.44 kB / 421.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of SimCode: time 1.754e-06/0.1988, allocations: 0 / 421.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of Templates: time 0.02252/0.2213, allocations: 10.84 MB / 432.6 MB, free: 4.031 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)