Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 252.6 MB, free: 8.297 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 216.5 kB / 309.2 MB, free: 3.133 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04308/0.04308, allocations: 8.912 MB / 374.6 MB, free: 1.891 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002632/0.002632, allocations: 80.59 kB / 0.4897 GB, free: 4.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1347, allocations: 55.63 MB / 0.544 GB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004966/0.1397, allocations: 2.913 MB / 0.5468 GB, free: 1.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.1414, allocations: 0.6933 MB / 0.5475 GB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002144/0.1416, allocations: 7.938 kB / 0.5475 GB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.1418, allocations: 55.5 kB / 0.5476 GB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003149/0.1421, allocations: 95.17 kB / 0.5477 GB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002085/0.1424, allocations: 79.86 kB / 0.5477 GB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004911/0.1428, allocations: 382.4 kB / 0.5481 GB, free: 328 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002731/0.1431, allocations: 105 kB / 0.5482 GB, free: 220 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.1433, allocations: 143.5 kB / 0.5483 GB, free: 76 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.1436, allocations: 159.4 kB / 0.5485 GB, free: 15.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.172e-05/0.1436, allocations: 36 kB / 0.5485 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.24e-05/0.1437, allocations: 36 kB / 0.5486 GB, free: 15.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.379e-05/0.1438, allocations: 79.75 kB / 0.5486 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.144, allocations: 167.3 kB / 0.5488 GB, free: 15.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005374/0.1445, allocations: 414.3 kB / 0.5492 GB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1445, allocations: 0 / 0.5492 GB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1445, allocations: 4 kB / 0.5492 GB, free: 15.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1445, allocations: 3.938 kB / 0.5492 GB, free: 15.19 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001053/0.1456, allocations: 0.521 MB / 0.5497 GB, free: 14.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1456, allocations: 11.98 kB / 0.5497 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1457, allocations: 32.75 kB / 0.5497 GB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004482/0.1462, allocations: 218 kB / 0.55 GB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.1462, allocations: 25.03 kB / 0.55 GB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.1463, allocations: 28.38 kB / 0.55 GB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005782/0.1468, allocations: 286.2 kB / 0.5503 GB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.1469, allocations: 3.953 kB / 0.5503 GB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.1469, allocations: 12 kB / 0.5503 GB, free: 14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1469, allocations: 4 kB / 0.5503 GB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004787/0.1474, allocations: 214.5 kB / 0.5505 GB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.1492, allocations: 0.9574 MB / 0.5514 GB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004453/0.1497, allocations: 142.5 kB / 0.5516 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.1499, allocations: 76.83 kB / 0.5516 GB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.1499, allocations: 3.938 kB / 0.5516 GB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.1499, allocations: 34.56 kB / 0.5517 GB, free: 12.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.873e-06/0.1499, allocations: 0 / 0.5517 GB, free: 12.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.001543/0.1515, allocations: 0.544 MB / 0.5522 GB, free: 11.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.1515, allocations: 51.41 kB / 0.5523 GB, free: 11.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.1518, allocations: 195.2 kB / 0.5524 GB, free: 11.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.1518, allocations: 33.64 kB / 0.5525 GB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.1519, allocations: 196.4 kB / 0.5527 GB, free: 11.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.071e-05/0.152, allocations: 55.48 kB / 0.5527 GB, free: 11.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.1521, allocations: 45.7 kB / 0.5528 GB, free: 11.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1523, allocations: 330.8 kB / 0.5531 GB, free: 10.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.1524, allocations: 55.97 kB / 0.5531 GB, free: 10.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.1526, allocations: 100.2 kB / 0.5532 GB, free: 10.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/0.1529, allocations: 166.9 kB / 0.5534 GB, free: 10.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1529, allocations: 0 / 0.5534 GB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005053/0.1535, allocations: 234.3 kB / 0.5536 GB, free: 10.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1535, allocations: 8 kB / 0.5536 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1535, allocations: 0 / 0.5536 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001793/0.1537, allocations: 24.84 kB / 0.5536 GB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.1539, allocations: 43.91 kB / 0.5537 GB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.1552, allocations: 1.267 MB / 0.5549 GB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.1553, allocations: 16.14 kB / 0.5549 GB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.1553, allocations: 11.98 kB / 0.5549 GB, free: 8.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * 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.0001998/0.1555, allocations: 141.8 kB / 0.5551 GB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/0.1556, allocations: 27.73 kB / 0.5551 GB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.822e-05/0.1556, allocations: 21.8 kB / 0.5551 GB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1556, allocations: 4 kB / 0.5551 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1556, allocations: 0 / 0.5551 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1556, allocations: 0 / 0.5551 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009829/0.1566, allocations: 0.5825 MB / 0.5557 GB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1566, allocations: 4 kB / 0.5557 GB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.1568, allocations: 43.91 kB / 0.5557 GB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.279e-05/0.1569, allocations: 12.86 kB / 0.5558 GB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.1569, allocations: 8.062 kB / 0.5558 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.1581, allocations: 1.271 MB / 0.557 GB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1581, allocations: 0 / 0.557 GB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.1588, allocations: 372.2 kB / 0.5574 GB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.1588, allocations: 27.89 kB / 0.5574 GB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.1589, allocations: 0 / 0.5574 GB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.159, allocations: 15.98 kB / 0.5574 GB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.1591, allocations: 7.984 kB / 0.5574 GB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1591, allocations: 8 kB / 0.5574 GB, free: 6.172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.1592, allocations: 152.2 kB / 0.5576 GB, free: 6.023 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1593, allocations: 4 kB / 0.5576 GB, free: 6.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003455/0.1596, allocations: 52 kB / 0.5576 GB, free: 5.969 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.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 (15): * Single equations (assignments): 14 * 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.0001337/0.1597, allocations: 103.2 kB / 0.5577 GB, free: 5.855 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006196/0.1603, allocations: 262.5 kB / 0.558 GB, free: 5.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1604, allocations: 4.25 kB / 0.558 GB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.1607, allocations: 190.6 kB / 0.5582 GB, free: 5.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.1611, allocations: 38.56 kB / 0.5582 GB, free: 5.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.1624, allocations: 0.693 MB / 0.5589 GB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000456/0.1629, allocations: 0.7593 MB / 0.5596 GB, free: 3.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.305e-05/0.163, allocations: 17.62 kB / 0.5596 GB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.54e-05/0.163, allocations: 23.44 kB / 0.5596 GB, free: 3.801 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.163, allocations: 0 / 0.5596 GB, free: 3.801 MB / 366.1 MB Notification: Performance of Templates: time 0.00683/0.1698, allocations: 2.419 MB / 0.562 GB, free: 1.406 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & ./HanserModelica_HanserModelica.Rotational.TestDCPMMachine -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.001349426107481] Failed to read output from testmodel.py, exit status != 0: 0.1785875449422747 0.19454274299999996 0.046854703000000004 Calling exit ...