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.001622/0.001622, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.755/1.755, allocations: 230.6 MB / 252.7 MB, free: 14.25 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.003079/0.003079, allocations: 211.3 kB / 309.2 MB, free: 3.074 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.04521/0.04521, allocations: 8.917 MB / 374.6 MB, free: 6.562 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.002959/0.002959, allocations: 79.88 kB / 0.4896 GB, free: 44.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1242, allocations: 55.6 MB / 0.5439 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.005516/0.1298, allocations: 2.704 MB / 0.5465 GB, free: 1.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.1314, allocations: 0.6544 MB / 0.5472 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002785/0.1317, allocations: 8 kB / 0.5472 GB, free: 1.156 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.132, allocations: 51.5 kB / 0.5472 GB, free: 1.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005208/0.1325, allocations: 103.1 kB / 0.5473 GB, free: 1.004 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.1327, allocations: 79.92 kB / 0.5474 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006274/0.1334, allocations: 378.4 kB / 0.5478 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/0.1337, allocations: 101 kB / 0.5479 GB, free: 464 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.1339, allocations: 155.4 kB / 0.548 GB, free: 308 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.1341, allocations: 127.4 kB / 0.5481 GB, free: 180 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.025e-05/0.1342, allocations: 40 kB / 0.5482 GB, free: 140 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.481e-05/0.1343, allocations: 36 kB / 0.5482 GB, free: 104 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.273e-05/0.1344, allocations: 83.69 kB / 0.5483 GB, free: 20 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.1345, allocations: 139.5 kB / 0.5484 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005877/0.1351, allocations: 414.4 kB / 0.5488 GB, free: 15.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1351, allocations: 0 / 0.5488 GB, free: 15.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1351, allocations: 0 / 0.5488 GB, free: 15.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.1352, allocations: 0 / 0.5488 GB, free: 15.47 MB / 382.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.001127/0.1363, allocations: 0.5248 MB / 0.5493 GB, free: 14.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.1363, allocations: 12.03 kB / 0.5493 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.164e-05/0.1364, allocations: 32.75 kB / 0.5494 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004968/0.1369, allocations: 218 kB / 0.5496 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.137, allocations: 21.03 kB / 0.5496 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.367e-05/0.137, allocations: 28.38 kB / 0.5496 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006507/0.1377, allocations: 303.8 kB / 0.5499 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.1377, allocations: 3.953 kB / 0.5499 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/0.1377, allocations: 20 kB / 0.5499 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.1377, allocations: 8 kB / 0.55 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005032/0.1382, allocations: 206.5 kB / 0.5502 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.1399, allocations: 0.8332 MB / 0.551 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.1404, allocations: 146.5 kB / 0.5511 GB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.1406, allocations: 76.75 kB / 0.5512 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.1406, allocations: 4 kB / 0.5512 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.1407, allocations: 38.5 kB / 0.5512 GB, free: 12.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.1407, allocations: 0 / 0.5512 GB, free: 12.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001502/0.1422, allocations: 0.5277 MB / 0.5517 GB, free: 12.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.1422, allocations: 59.34 kB / 0.5518 GB, free: 12.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.1424, allocations: 183.6 kB / 0.552 GB, free: 12.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.1425, allocations: 29.7 kB / 0.552 GB, free: 12.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1426, allocations: 188.4 kB / 0.5522 GB, free: 11.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.586e-05/0.1427, allocations: 59.47 kB / 0.5522 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.533e-05/0.1428, allocations: 41.66 kB / 0.5523 GB, free: 11.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1429, allocations: 334.8 kB / 0.5526 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.1431, allocations: 55.97 kB / 0.5526 GB, free: 11.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.1433, allocations: 107.4 kB / 0.5527 GB, free: 11.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.1437, allocations: 172.9 kB / 0.5529 GB, free: 11.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1437, allocations: 11.94 kB / 0.5529 GB, free: 11.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004909/0.1441, allocations: 224.6 kB / 0.5531 GB, free: 10.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.1442, allocations: 4 kB / 0.5531 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.1442, allocations: 3.984 kB / 0.5531 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/0.1444, allocations: 20.86 kB / 0.5532 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.1446, allocations: 44.09 kB / 0.5532 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.146, allocations: 1.248 MB / 0.5544 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.1461, allocations: 8 kB / 0.5544 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.1462, allocations: 7.984 kB / 0.5544 GB, free: 9.355 MB / 382.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.0002076/0.1464, allocations: 149.9 kB / 0.5546 GB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.378e-05/0.1464, allocations: 19.86 kB / 0.5546 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.1465, allocations: 21.75 kB / 0.5546 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1465, allocations: 3.984 kB / 0.5546 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1465, allocations: 0 / 0.5546 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.1465, allocations: 7.984 kB / 0.5546 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009595/0.1475, allocations: 0.5004 MB / 0.5551 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1475, allocations: 0 / 0.5551 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/0.1476, allocations: 44.03 kB / 0.5552 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-05/0.1477, allocations: 20.84 kB / 0.5552 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1477, allocations: 4 kB / 0.5552 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.1488, allocations: 1.244 MB / 0.5564 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1488, allocations: 3.938 kB / 0.5564 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000638/0.1494, allocations: 371.9 kB / 0.5568 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.833e-05/0.1494, allocations: 11.91 kB / 0.5568 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.1495, allocations: 7.938 kB / 0.5568 GB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.1496, allocations: 16.03 kB / 0.5568 GB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.1497, allocations: 11.97 kB / 0.5568 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.1497, allocations: 4 kB / 0.5568 GB, free: 6.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.1498, allocations: 137.2 kB / 0.5569 GB, free: 6.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1498, allocations: 4 kB / 0.5569 GB, free: 6.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.1501, allocations: 55.94 kB / 0.557 GB, free: 6.555 MB / 382.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.0001302/0.1503, allocations: 103.2 kB / 0.5571 GB, free: 6.441 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000618/0.1509, allocations: 268.2 kB / 0.5574 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.1509, allocations: 8.25 kB / 0.5574 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.1512, allocations: 193.4 kB / 0.5575 GB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.1516, allocations: 35.86 kB / 0.5576 GB, free: 5.926 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.1531, allocations: 0.6854 MB / 0.5583 GB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.1532, allocations: 150.5 kB / 0.5584 GB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.521e-05/0.1533, allocations: 21.64 kB / 0.5584 GB, free: 5.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.698e-05/0.1534, allocations: 15.44 kB / 0.5584 GB, free: 5.008 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1534, allocations: 0 / 0.5584 GB, free: 5.008 MB / 382.1 MB Notification: Performance of Templates: time 0.006948/0.1603, allocations: 2.521 MB / 0.5609 GB, free: 2.52 MB / 382.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.762169575318694] Failed to read output from testmodel.py, exit status != 0: 0.16847281716763973 0.43370674899999995 0.29543142299999997 Calling exit ...