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.001555/0.001555, 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.503/1.503, allocations: 230.6 MB / 252.7 MB, free: 14.27 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.00152/0.00152, 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.04272/0.04272, allocations: 8.919 MB / 374.6 MB, free: 6.641 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",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.002575/0.002575, allocations: 99.84 kB / 0.4891 GB, free: 44.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08684/0.08941, allocations: 55.61 MB / 0.5434 GB, free: 5.086 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004482/0.09389, allocations: 2.694 MB / 0.5461 GB, free: 2.375 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.09535, allocations: 0.6583 MB / 0.5467 GB, free: 1.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002365/0.09559, allocations: 4 kB / 0.5467 GB, free: 1.707 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.09579, allocations: 59.39 kB / 0.5468 GB, free: 1.648 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.09614, allocations: 103.2 kB / 0.5469 GB, free: 1.547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.09636, allocations: 83.84 kB / 0.547 GB, free: 1.465 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.09684, allocations: 382.4 kB / 0.5473 GB, free: 1.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.09707, allocations: 101.2 kB / 0.5474 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.09728, allocations: 143.5 kB / 0.5475 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.09748, allocations: 127.4 kB / 0.5477 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-05/0.09756, allocations: 36 kB / 0.5477 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.938e-05/0.09763, allocations: 36 kB / 0.5477 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-05/0.0977, allocations: 79.7 kB / 0.5478 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.09786, allocations: 143.4 kB / 0.548 GB, free: 444 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004745/0.09833, allocations: 414.4 kB / 0.5483 GB, free: 28 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.09834, allocations: 3.984 kB / 0.5484 GB, free: 24 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09834, allocations: 4 kB / 0.5484 GB, free: 20 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.09835, allocations: 0 / 0.5484 GB, free: 20 kB / 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.0009859/0.09934, allocations: 0.5132 MB / 0.5489 GB, free: 15.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.09937, allocations: 12.03 kB / 0.5489 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.103e-05/0.09945, allocations: 74.66 kB / 0.5489 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.896e-05/0.09952, allocations: 32.75 kB / 0.549 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.09993, allocations: 214 kB / 0.5492 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.09996, allocations: 24.97 kB / 0.5492 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.076e-05/0.1, allocations: 32.38 kB / 0.5492 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005844/0.1006, allocations: 299.7 kB / 0.5495 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.1006, allocations: 3.953 kB / 0.5495 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/0.1007, allocations: 12 kB / 0.5495 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.1007, allocations: 12 kB / 0.5495 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.1011, allocations: 206.5 kB / 0.5497 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.1027, allocations: 0.8911 MB / 0.5506 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.1031, allocations: 150.5 kB / 0.5508 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.1033, allocations: 72.75 kB / 0.5508 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.1033, allocations: 0 / 0.5508 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.1033, allocations: 38.56 kB / 0.5509 GB, free: 13.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.032e-06/0.1033, allocations: 0 / 0.5509 GB, free: 13.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001399/0.1047, allocations: 0.5345 MB / 0.5514 GB, free: 12.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.1048, allocations: 55.41 kB / 0.5514 GB, free: 12.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.105, allocations: 199.2 kB / 0.5516 GB, free: 12.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.105, allocations: 33.69 kB / 0.5517 GB, free: 12.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1051, allocations: 184.4 kB / 0.5518 GB, free: 12.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.439e-05/0.1052, allocations: 59.48 kB / 0.5519 GB, free: 12.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.466e-05/0.1053, allocations: 41.66 kB / 0.5519 GB, free: 12.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.1054, allocations: 338.7 kB / 0.5523 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.1056, allocations: 67.89 kB / 0.5523 GB, free: 11.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.1058, allocations: 100.2 kB / 0.5524 GB, free: 11.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.1061, allocations: 161.1 kB / 0.5526 GB, free: 11.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1061, allocations: 4 kB / 0.5526 GB, free: 11.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004986/0.1066, allocations: 232.5 kB / 0.5528 GB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1067, allocations: 4 kB / 0.5528 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.1067, allocations: 7.984 kB / 0.5528 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001521/0.1068, allocations: 20.84 kB / 0.5528 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.107, allocations: 47.92 kB / 0.5529 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.1082, allocations: 1.267 MB / 0.5541 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.1083, allocations: 12.02 kB / 0.5541 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.1083, allocations: 8 kB / 0.5541 GB, free: 9.711 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.0001672/0.1085, allocations: 137.8 kB / 0.5543 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.1085, allocations: 20 kB / 0.5543 GB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.701e-05/0.1086, allocations: 29.8 kB / 0.5543 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1086, allocations: 4 kB / 0.5543 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1086, allocations: 0 / 0.5543 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1086, allocations: 0 / 0.5543 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000955/0.1095, allocations: 0.5546 MB / 0.5548 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1095, allocations: 0 / 0.5548 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.1097, allocations: 35.98 kB / 0.5549 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-05/0.1098, allocations: 24.84 kB / 0.5549 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.1098, allocations: 8 kB / 0.5549 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.1109, allocations: 1.263 MB / 0.5561 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1109, allocations: 3.938 kB / 0.5562 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006554/0.1115, allocations: 375.8 kB / 0.5565 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.128e-05/0.1116, allocations: 19.94 kB / 0.5565 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.1116, allocations: 4 kB / 0.5565 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.1117, allocations: 11.98 kB / 0.5565 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/0.1118, allocations: 15.92 kB / 0.5566 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.1118, allocations: 8 kB / 0.5566 GB, free: 7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001503/0.112, allocations: 148.2 kB / 0.5567 GB, free: 6.855 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.112, allocations: 3.938 kB / 0.5567 GB, free: 6.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.1123, allocations: 56 kB / 0.5568 GB, free: 6.797 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.001004/0.1133, allocations: 0.9043 MB / 0.5576 GB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006342/0.114, allocations: 266.6 kB / 0.5579 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.114, allocations: 0 / 0.5579 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.1143, allocations: 189.8 kB / 0.5581 GB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.1147, allocations: 43.86 kB / 0.5581 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.1183, allocations: 2.56 MB / 0.5606 GB, free: 2.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001564/0.1184, allocations: 154.5 kB / 0.5608 GB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.463e-05/0.1185, allocations: 21.64 kB / 0.5608 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.1186, allocations: 79.41 kB / 0.5609 GB, free: 2.402 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1186, allocations: 0 / 0.5609 GB, free: 2.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2312/0.3499, allocations: 5.376 MB / 0.5661 GB, free: 25.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.73, allocations: 10.47 kB / 0.5661 GB, free: 25.75 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.465712091885507] Failed to read output from testmodel.py, exit status != 0: 11.84535111906007 11.86004511 11.758989678 Calling exit ...