Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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.001356/0.001356, allocations: 101.8 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.658/1.658, allocations: 230.6 MB / 253.4 MB, free: 14.42 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.001633/0.001633, allocations: 208.6 kB / 310 MB, free: 3.098 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.04627/0.04627, allocations: 8.92 MB / 375.4 MB, free: 6.73 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.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",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.003056/0.003056, allocations: 79.88 kB / 0.49 GB, free: 44.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1386, allocations: 55.61 MB / 0.5443 GB, free: 5.195 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.005053/0.1436, allocations: 2.084 MB / 0.5463 GB, free: 3.094 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.1462, allocations: 1.146 MB / 0.5474 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002889/0.1465, allocations: 11.88 kB / 0.5474 GB, free: 1.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004757/0.147, allocations: 123.5 kB / 0.5475 GB, free: 1.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005377/0.1475, allocations: 151.3 kB / 0.5477 GB, free: 1.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.1479, allocations: 107.6 kB / 0.5478 GB, free: 1.555 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004426/0.1483, allocations: 231.2 kB / 0.548 GB, free: 1.328 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.1485, allocations: 26.08 kB / 0.548 GB, free: 1.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.1487, allocations: 99.62 kB / 0.5481 GB, free: 1.207 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.1489, allocations: 131.5 kB / 0.5483 GB, free: 1.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.488e-05/0.1489, allocations: 12 kB / 0.5483 GB, free: 1.066 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.1491, allocations: 47.98 kB / 0.5483 GB, free: 1.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.986e-05/0.1492, allocations: 51.83 kB / 0.5484 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.1493, allocations: 83.48 kB / 0.5484 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.1498, allocations: 242.9 kB / 0.5487 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.065e-05/0.1498, allocations: 0 / 0.5487 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.1498, allocations: 0 / 0.5487 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.1498, allocations: 0 / 0.5487 GB, free: 0.6484 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009066/0.1507, allocations: 455.2 kB / 0.5491 GB, free: 180 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.1507, allocations: 11.98 kB / 0.5491 GB, free: 168 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.95e-05/0.1508, allocations: 4.422 kB / 0.5491 GB, free: 164 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.219e-05/0.1508, allocations: 46.73 kB / 0.5492 GB, free: 108 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.126e-05/0.1509, allocations: 28.73 kB / 0.5492 GB, free: 80 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004816/0.1514, allocations: 187.5 kB / 0.5494 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.1514, allocations: 16.36 kB / 0.5494 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.1514, allocations: 16 kB / 0.5494 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003601/0.1518, allocations: 137.4 kB / 0.5495 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.1518, allocations: 7.938 kB / 0.5495 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.1518, allocations: 4 kB / 0.5495 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.1518, allocations: 4 kB / 0.5496 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.152, allocations: 72.12 kB / 0.5496 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009811/0.153, allocations: 0.5766 MB / 0.5502 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.1533, allocations: 90.61 kB / 0.5503 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.784e-05/0.1534, allocations: 28.84 kB / 0.5503 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.1534, allocations: 8 kB / 0.5503 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.1536, allocations: 87.31 kB / 0.5504 GB, free: 14.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.954e-06/0.1536, allocations: 0 / 0.5504 GB, free: 14.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004476/0.1541, allocations: 153.4 kB / 0.5505 GB, free: 14.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.1541, allocations: 51.41 kB / 0.5506 GB, free: 14.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.1545, allocations: 276.9 kB / 0.5508 GB, free: 14.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.1545, allocations: 29.7 kB / 0.5509 GB, free: 14.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1546, allocations: 144.2 kB / 0.551 GB, free: 14.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.908e-05/0.1547, allocations: 39.69 kB / 0.5511 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.05e-05/0.1548, allocations: 33.7 kB / 0.5511 GB, free: 13.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.155, allocations: 330.8 kB / 0.5514 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.364e-05/0.1551, allocations: 31.98 kB / 0.5514 GB, free: 13.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.1552, allocations: 75.02 kB / 0.5515 GB, free: 13.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.1554, allocations: 100.2 kB / 0.5516 GB, free: 13.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1554, allocations: 0 / 0.5516 GB, free: 13.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003724/0.1558, allocations: 149.4 kB / 0.5517 GB, free: 13.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.1558, allocations: 4.125 kB / 0.5517 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1558, allocations: 4 kB / 0.5517 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.397e-05/0.1559, allocations: 4 kB / 0.5518 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.156, allocations: 35.92 kB / 0.5518 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.156, allocations: 0 / 0.5518 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.541e-05/0.1561, allocations: 7.953 kB / 0.5518 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.1561, allocations: 8 kB / 0.5518 GB, free: 13.2 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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001968/0.1563, allocations: 141.8 kB / 0.5519 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.1564, allocations: 19.86 kB / 0.552 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003631/0.1567, allocations: 143.3 kB / 0.5521 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1568, allocations: 0 / 0.5521 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1568, allocations: 4 kB / 0.5521 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1568, allocations: 0 / 0.5521 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.1571, allocations: 220.5 kB / 0.5523 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1571, allocations: 480 / 0.5523 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.1572, allocations: 23.92 kB / 0.5523 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1572, allocations: 3.938 kB / 0.5523 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.1572, allocations: 4 kB / 0.5523 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1572, allocations: 0 / 0.5523 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1572, allocations: 7.938 kB / 0.5523 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004379/0.1577, allocations: 192.8 kB / 0.5525 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.89e-05/0.1577, allocations: 15.94 kB / 0.5525 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.1578, allocations: 8 kB / 0.5525 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.607e-05/0.1578, allocations: 3.984 kB / 0.5526 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/0.1579, allocations: 7.984 kB / 0.5526 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.1579, allocations: 4 kB / 0.5526 GB, free: 12.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002431/0.1581, allocations: 216.5 kB / 0.5528 GB, free: 12.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1581, allocations: 0 / 0.5528 GB, free: 12.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.1585, allocations: 39.89 kB / 0.5528 GB, free: 12.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002416/0.1609, allocations: 1.034 MB / 0.5538 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.1612, allocations: 87.84 kB / 0.5539 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1612, allocations: 4 kB / 0.5539 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.838e-05/0.1613, allocations: 31.98 kB / 0.5539 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003996/0.1617, allocations: 39.89 kB / 0.554 GB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/0.1653, allocations: 2.128 MB / 0.5561 GB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.1659, allocations: 0.7397 MB / 0.5568 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.166, allocations: 21.42 kB / 0.5568 GB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.1661, allocations: 67.41 kB / 0.5569 GB, free: 7.941 MB / 382.1 MB Notification: Performance of SimCode: time 1.823e-06/0.1661, allocations: 0 / 0.5569 GB, free: 7.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03647/0.2026, allocations: 4.69 MB / 0.5614 GB, free: 3.312 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.52, allocations: 13 kB / 0.5615 GB, free: 3.305 MB / 382.1 MB " [Timeout remaining time 647] (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.263945807004347] Failed to read output from testmodel.py, exit status != 0: 12.743543375050649 13.075117352 12.921180324 Calling exit ...