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.001172/0.001172, allocations: 98.88 kB / 16.3 MB, free: 5.559 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.001203/0.001203, allocations: 184.5 kB / 17.2 MB, free: 5.492 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.798/1.798, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.0006594/0.0006594, allocations: 12.22 kB / 280.1 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1175, allocations: 47.58 MB / 327.7 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007043/0.1245, allocations: 6.548 MB / 334.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00445/0.129, allocations: 2.602 MB / 336.9 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000604/0.1297, allocations: 23.94 kB / 336.9 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.1309, allocations: 477.7 kB / 337.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.1319, allocations: 498.6 kB / 337.8 MB, free: 9.926 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.1323, allocations: 163.8 kB / 338 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.1339, allocations: 1.061 MB / 339 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006514/0.1346, allocations: 415.3 kB / 339.5 MB, free: 8.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006694/0.1353, allocations: 446.2 kB / 339.9 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005656/0.1359, allocations: 497.7 kB / 340.4 MB, free: 7.355 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.706e-05/0.136, allocations: 60 kB / 340.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002493/0.1362, allocations: 103.9 kB / 340.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.1364, allocations: 187.2 kB / 340.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002137/0.1366, allocations: 265.1 kB / 341 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.1377, allocations: 1.313 MB / 342.3 MB, free: 5.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1377, allocations: 3.938 kB / 342.3 MB, free: 5.426 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1377, allocations: 0 / 342.3 MB, free: 5.426 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.1377, allocations: 0 / 342.3 MB, free: 5.426 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.002158/0.1399, allocations: 1.285 MB / 343.6 MB, free: 4.086 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1399, allocations: 8.031 kB / 343.6 MB, free: 4.078 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005031/0.1405, allocations: 178.4 kB / 343.8 MB, free: 3.902 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.1415, allocations: 0.7154 MB / 344.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.508e-05/0.1416, allocations: 74 kB / 344.5 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.1417, allocations: 99.91 kB / 344.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.1432, allocations: 0.9346 MB / 345.6 MB, free: 2.012 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.1433, allocations: 4 kB / 345.6 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.629e-05/0.1433, allocations: 40 kB / 345.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.1434, allocations: 24 kB / 345.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.1446, allocations: 0.6559 MB / 346.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005058/0.1496, allocations: 3.941 MB / 350.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007256/0.1504, allocations: 444.1 kB / 350.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.1504, allocations: 4 kB / 350.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.372e-05/0.1505, allocations: 42.5 kB / 350.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.715e-06/0.1505, allocations: 4 kB / 350.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002861/0.1534, allocations: 1.438 MB / 352.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.1534, allocations: 85.09 kB / 352.2 MB, free: 11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009004/0.1544, allocations: 0.7785 MB / 353 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.1544, allocations: 33.7 kB / 353.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004037/0.1548, allocations: 0.5721 MB / 353.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.1549, allocations: 157.7 kB / 353.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.155, allocations: 16 kB / 353.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1551, allocations: 333.9 kB / 354.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.1555, allocations: 173.9 kB / 354.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.156, allocations: 471.6 kB / 354.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004424/0.1565, allocations: 259.7 kB / 355 MB, free: 8.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1565, allocations: 0 / 355 MB, free: 8.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001271/0.1578, allocations: 0.7751 MB / 355.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.1578, allocations: 8 kB / 355.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.1578, allocations: 8 kB / 355.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/0.1581, allocations: 73.94 kB / 355.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004978/0.1586, allocations: 167.7 kB / 356 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.1608, allocations: 2.802 MB / 358.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005973/0.1614, allocations: 43.89 kB / 358.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/0.1615, allocations: 40.02 kB / 358.9 MB, free: 3.863 MB / 302.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 (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004889/0.162, allocations: 269.6 kB / 359.2 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.1621, allocations: 82.97 kB / 359.3 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009489/0.1631, allocations: 0.4953 MB / 359.8 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.1631, allocations: 7.984 kB / 359.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1631, allocations: 0 / 359.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1631, allocations: 4 kB / 359.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/0.1654, allocations: 1.426 MB / 361.2 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/0.1654, allocations: 4 kB / 361.2 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003219/0.1657, allocations: 79.83 kB / 361.3 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.1659, allocations: 61.91 kB / 361.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.166, allocations: 15.98 kB / 361.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.168, allocations: 2.783 MB / 364.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.168, allocations: 11.92 kB / 364.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.1693, allocations: 0.867 MB / 365 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003389/0.1697, allocations: 184.1 kB / 365.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.44e-05/0.1698, allocations: 19.98 kB / 365.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/0.1702, allocations: 27.98 kB / 365.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.1703, allocations: 39.84 kB / 365.3 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.1703, allocations: 16 kB / 365.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00072/0.1711, allocations: 0.5264 MB / 365.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1711, allocations: 0 / 365.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008843/0.172, allocations: 200 kB / 366 MB, free: 12.27 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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00023/0.1722, allocations: 127.1 kB / 366.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.1734, allocations: 0.706 MB / 366.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1735, allocations: 4.25 kB / 366.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006045/0.1741, allocations: 449 kB / 367.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008789/0.175, allocations: 207.9 kB / 367.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003006/0.178, allocations: 2.126 MB / 369.6 MB, free: 8.562 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005867/0.1786, allocations: 1.032 MB / 370.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004107/0.179, allocations: 103.2 kB / 370.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1791, allocations: 55.44 kB / 370.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1791, allocations: 4 kB / 370.8 MB, free: 7.34 MB / 318.1 MB Notification: Performance of Templates: time 0.1748/0.3539, allocations: 9.111 MB / 379.9 MB, free: 51.21 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: