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.001556/0.001556, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.711/1.711, allocations: 230.6 MB / 253.4 MB, free: 14.49 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.002555/0.002555, allocations: 214.8 kB / 310 MB, free: 3.094 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.04133/0.04133, allocations: 8.928 MB / 375.4 MB, free: 6.766 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: "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="cs",version="2.0",platforms={"static"}) [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.002586/0.002586, allocations: 87.88 kB / 0.49 GB, free: 44.92 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1273, allocations: 55.61 MB / 0.5443 GB, free: 5.211 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.005643/0.1329, allocations: 2.92 MB / 0.5471 GB, free: 2.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.135, allocations: 0.7011 MB / 0.5478 GB, free: 1.566 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002866/0.1353, allocations: 7.938 kB / 0.5478 GB, free: 1.559 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.1356, allocations: 47.52 kB / 0.5479 GB, free: 1.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000379/0.1359, allocations: 99.17 kB / 0.5479 GB, free: 1.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.1362, allocations: 87.84 kB / 0.548 GB, free: 1.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005525/0.1367, allocations: 378.4 kB / 0.5484 GB, free: 0.957 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.1371, allocations: 113.2 kB / 0.5485 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/0.1373, allocations: 139.5 kB / 0.5486 GB, free: 0.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002688/0.1376, allocations: 155.3 kB / 0.5488 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.669e-05/0.1377, allocations: 36 kB / 0.5488 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.193e-05/0.1377, allocations: 36 kB / 0.5488 GB, free: 496 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-05/0.1378, allocations: 71.77 kB / 0.5489 GB, free: 424 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.138, allocations: 175.1 kB / 0.5491 GB, free: 248 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006301/0.1386, allocations: 414.4 kB / 0.5495 GB, free: 15.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1387, allocations: 4 kB / 0.5495 GB, free: 15.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.1387, allocations: 3.984 kB / 0.5495 GB, free: 15.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.1387, allocations: 0 / 0.5495 GB, free: 15.83 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.001097/0.1398, allocations: 0.5171 MB / 0.55 GB, free: 15.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.1398, allocations: 8.031 kB / 0.55 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.901e-05/0.1399, allocations: 12.84 kB / 0.55 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.151e-05/0.1399, allocations: 62.72 kB / 0.5501 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.541e-05/0.14, allocations: 36.75 kB / 0.5501 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005093/0.1405, allocations: 218 kB / 0.5503 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.1406, allocations: 21.03 kB / 0.5503 GB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.062e-05/0.1407, allocations: 36.12 kB / 0.5504 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006771/0.1413, allocations: 274.1 kB / 0.5506 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.1414, allocations: 7.953 kB / 0.5506 GB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.1414, allocations: 16 kB / 0.5507 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.1414, allocations: 4 kB / 0.5507 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005262/0.1419, allocations: 214.4 kB / 0.5509 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.144, allocations: 0.9652 MB / 0.5518 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.1444, allocations: 146.4 kB / 0.5519 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.1446, allocations: 72.83 kB / 0.552 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.1446, allocations: 0 / 0.552 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.1446, allocations: 38.56 kB / 0.552 GB, free: 13.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 2.174e-06/0.1446, allocations: 0 / 0.552 GB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001688/0.1463, allocations: 0.5466 MB / 0.5526 GB, free: 12.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.1464, allocations: 51.41 kB / 0.5526 GB, free: 12.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002607/0.1466, allocations: 195.2 kB / 0.5528 GB, free: 12.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.265e-05/0.1467, allocations: 29.7 kB / 0.5528 GB, free: 12.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.1468, allocations: 188.4 kB / 0.553 GB, free: 11.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.349e-05/0.1469, allocations: 59.48 kB / 0.5531 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.373e-05/0.147, allocations: 41.64 kB / 0.5531 GB, free: 11.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.1472, allocations: 330.8 kB / 0.5534 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.1474, allocations: 63.97 kB / 0.5535 GB, free: 11.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.1476, allocations: 99.5 kB / 0.5536 GB, free: 11.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004294/0.148, allocations: 166.5 kB / 0.5538 GB, free: 11.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.148, allocations: 0 / 0.5538 GB, free: 11.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005884/0.1486, allocations: 234.1 kB / 0.554 GB, free: 10.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1486, allocations: 12.12 kB / 0.554 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1486, allocations: 0 / 0.554 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.1488, allocations: 24.78 kB / 0.554 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.149, allocations: 43.97 kB / 0.5541 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.1504, allocations: 1.271 MB / 0.5553 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.1505, allocations: 8.016 kB / 0.5553 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.1505, allocations: 12 kB / 0.5553 GB, free: 9.469 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.0002449/0.1508, allocations: 141.9 kB / 0.5554 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.1508, allocations: 23.8 kB / 0.5555 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.307e-05/0.1509, allocations: 25.8 kB / 0.5555 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1509, allocations: 4 kB / 0.5555 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1509, allocations: 0 / 0.5555 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1509, allocations: 0 / 0.5555 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.152, allocations: 0.5813 MB / 0.5561 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.152, allocations: 7.938 kB / 0.5561 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.1522, allocations: 35.97 kB / 0.5561 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001088/0.1524, allocations: 16.86 kB / 0.5561 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.1524, allocations: 11.98 kB / 0.5561 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.1537, allocations: 1.263 MB / 0.5574 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1537, allocations: 4.156 kB / 0.5574 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/0.1544, allocations: 369.8 kB / 0.5577 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.796e-05/0.1545, allocations: 27.83 kB / 0.5578 GB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.1545, allocations: 12 kB / 0.5578 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.1547, allocations: 12 kB / 0.5578 GB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.571e-05/0.1547, allocations: 11.97 kB / 0.5578 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.1548, allocations: 4 kB / 0.5578 GB, free: 6.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.1549, allocations: 152.2 kB / 0.5579 GB, free: 6.574 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1549, allocations: 0 / 0.5579 GB, free: 6.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004293/0.1554, allocations: 55.94 kB / 0.558 GB, free: 6.52 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.00108/0.1564, allocations: 0.9045 MB / 0.5589 GB, free: 5.578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007216/0.1572, allocations: 262.5 kB / 0.5591 GB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1572, allocations: 4 kB / 0.5591 GB, free: 5.301 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003338/0.1575, allocations: 191 kB / 0.5593 GB, free: 5.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.158, allocations: 42.36 kB / 0.5594 GB, free: 5.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004261/0.1622, allocations: 2.568 MB / 0.5619 GB, free: 2.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.1627, allocations: 0.7554 MB / 0.5626 GB, free: 1.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.1628, allocations: 21.56 kB / 0.5626 GB, free: 1.578 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.163, allocations: 79.42 kB / 0.5627 GB, free: 1.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.733e-06/0.163, allocations: 4 kB / 0.5627 GB, free: 1.496 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3116/0.4745, allocations: 4.913 MB / 0.5675 GB, free: 24.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.41, allocations: 9.328 kB / 0.5675 GB, free: 24.98 MB / 382.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.75012980797328] Failed to read output from testmodel.py, exit status != 0: 13.581885374034755 13.616054349 13.470478218 Calling exit ...