Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.00103/0.001031, allocations: 90.72 kB / 16.65 MB, free: 6.594 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.001328/0.001328, allocations: 181.8 kB / 17.56 MB, free: 6.203 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.931/1.931, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0005444/0.0005442, allocations: 12 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.122, allocations: 47.58 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009696/0.1317, allocations: 7.658 MB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005285/0.137, allocations: 2.674 MB / 338.7 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.1383, allocations: 23.94 kB / 338.7 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.1402, allocations: 498 kB / 339.2 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001713/0.1419, allocations: 425 kB / 339.6 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005548/0.1425, allocations: 219.8 kB / 339.8 MB, free: 8.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001393/0.1439, allocations: 1.424 MB / 341.2 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006987/0.1446, allocations: 0.489 MB / 341.7 MB, free: 6.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005753/0.1452, allocations: 477.7 kB / 342.2 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005422/0.1458, allocations: 0.5402 MB / 342.7 MB, free: 5.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1459, allocations: 64 kB / 342.8 MB, free: 5.207 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002691/0.1462, allocations: 108 kB / 342.9 MB, free: 5.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.1463, allocations: 203 kB / 343.1 MB, free: 4.902 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000514/0.1468, allocations: 0.6156 MB / 343.7 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00139/0.1482, allocations: 1.638 MB / 345.3 MB, free: 2.633 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1483, allocations: 0 / 345.3 MB, free: 2.633 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1483, allocations: 0 / 345.3 MB, free: 2.633 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.1483, allocations: 0 / 345.3 MB, free: 2.633 MB / 286.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.002062/0.1504, allocations: 1.289 MB / 346.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.1504, allocations: 8.031 kB / 346.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006167/0.151, allocations: 199.2 kB / 346.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.1521, allocations: 0.7463 MB / 347.6 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.232e-05/0.1521, allocations: 70 kB / 347.6 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.1523, allocations: 103.9 kB / 347.7 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.1539, allocations: 0.9503 MB / 348.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/0.1539, allocations: 3.984 kB / 348.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.964e-05/0.154, allocations: 40 kB / 348.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.1541, allocations: 28 kB / 348.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.1553, allocations: 0.6598 MB / 349.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.1603, allocations: 3.984 MB / 353.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006918/0.1611, allocations: 459.2 kB / 353.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000569/0.1616, allocations: 268.7 kB / 354.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/0.1617, allocations: 7.984 kB / 354.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.1617, allocations: 38.5 kB / 354.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.933e-06/0.1617, allocations: 7.938 kB / 354.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002934/0.1647, allocations: 1.576 MB / 355.8 MB, free: 7.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.1647, allocations: 81.11 kB / 355.8 MB, free: 7.641 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.1659, allocations: 0.8333 MB / 356.7 MB, free: 6.797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.1659, allocations: 37.7 kB / 356.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000497/0.1664, allocations: 0.572 MB / 357.3 MB, free: 6.172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.1666, allocations: 161.7 kB / 357.4 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-05/0.1667, allocations: 61.69 kB / 357.5 MB, free: 5.945 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1669, allocations: 334 kB / 357.8 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.1673, allocations: 177.9 kB / 358 MB, free: 5.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000621/0.1679, allocations: 487.5 kB / 358.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.1689, allocations: 0.6914 MB / 359.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1689, allocations: 4 kB / 359.2 MB, free: 4 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001425/0.1704, allocations: 0.7944 MB / 360 MB, free: 3.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.1704, allocations: 12 kB / 360 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.1704, allocations: 8 kB / 360 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002915/0.1707, allocations: 81.92 kB / 360.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005048/0.1712, allocations: 167.7 kB / 360.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002309/0.1736, allocations: 2.88 MB / 363.1 MB, free: 15.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005145/0.1741, allocations: 43.89 kB / 363.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.1742, allocations: 36 kB / 363.2 MB, free: 15.7 MB / 318.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.0004296/0.1746, allocations: 269.6 kB / 363.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.1747, allocations: 82.97 kB / 363.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.1758, allocations: 0.5107 MB / 364 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.1758, allocations: 8 kB / 364 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1758, allocations: 0 / 364 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1758, allocations: 3.984 kB / 364 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.178, allocations: 1.496 MB / 365.5 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.178, allocations: 11.81 kB / 365.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003367/0.1784, allocations: 80.23 kB / 365.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001923/0.1786, allocations: 77.67 kB / 365.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.1786, allocations: 8 kB / 365.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002229/0.1809, allocations: 2.849 MB / 368.6 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.1809, allocations: 4.031 kB / 368.6 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.1822, allocations: 0.8205 MB / 369.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002858/0.1825, allocations: 204 kB / 369.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/0.1826, allocations: 11.94 kB / 369.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004231/0.1831, allocations: 44.09 kB / 369.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.586e-05/0.1832, allocations: 31.95 kB / 369.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.1832, allocations: 12.14 kB / 369.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007898/0.184, allocations: 0.5693 MB / 370.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.184, allocations: 4 kB / 370.3 MB, free: 8.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008241/0.1848, allocations: 208 kB / 370.5 MB, free: 7.965 MB / 318.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.0002433/0.1851, allocations: 135.1 kB / 370.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.1863, allocations: 0.713 MB / 371.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1863, allocations: 0 / 371.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006365/0.187, allocations: 462.2 kB / 371.8 MB, free: 6.605 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.1883, allocations: 215.1 kB / 372 MB, free: 6.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.1919, allocations: 2.256 MB / 374.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007689/0.1927, allocations: 1.013 MB / 375.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004584/0.1932, allocations: 107.3 kB / 375.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.1933, allocations: 55.44 kB / 375.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of SimCode: time 1.322e-06/0.1933, allocations: 0 / 375.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of Templates: time 0.2281/0.4214, allocations: 10.09 MB / 385.5 MB, free: 49.6 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)