Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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.001722/0.001722, 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/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.001968/0.001968, allocations: 214.8 kB / 22.25 MB, free: 5.078 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05402/0.05402, allocations: 9.232 MB / 321.7 MB, free: 10.07 MB / 254.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics 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.002041/0.002041, allocations: 59.91 kB / 447.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1238, allocations: 55.48 MB / 0.4914 GB, free: 7.535 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01879/0.1426, allocations: 9.792 MB / 0.501 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007329/0.1499, allocations: 2.893 MB / 0.5038 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.151, allocations: 43.88 kB / 0.5038 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.1522, allocations: 441 kB / 0.5043 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00482/0.1571, allocations: 1.583 MB / 0.5058 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007889/0.1578, allocations: 183.7 kB / 0.506 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005268/0.1631, allocations: 2.838 MB / 0.5088 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001696/0.1648, allocations: 0.8958 MB / 0.5096 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001763/0.1666, allocations: 1.051 MB / 0.5107 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002857/0.1694, allocations: 1.588 MB / 0.5122 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006747/0.1701, allocations: 260 kB / 0.5125 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002537/0.1726, allocations: 0.9166 MB / 0.5134 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.252/0.4246, allocations: 1.362 MB / 0.5147 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001849/0.4265, allocations: 1.743 MB / 0.5164 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006907/0.4334, allocations: 5.466 MB / 0.5217 GB, free: 8.703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4334, allocations: 2.938 kB / 0.5217 GB, free: 8.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4334, allocations: 0 / 0.5217 GB, free: 8.703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001498/0.4335, allocations: 0 / 0.5217 GB, free: 8.703 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01492/0.4485, allocations: 5.243 MB / 0.5268 GB, free: 7.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.4485, allocations: 9.938 kB / 0.5269 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001344/0.4499, allocations: 0.6024 MB / 0.5274 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006992/0.4568, allocations: 1.838 MB / 0.5292 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003973/0.4608, allocations: 1.45 MB / 0.5307 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.461, allocations: 174.6 kB / 0.5308 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000576/0.4616, allocations: 233.6 kB / 0.531 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01498/0.4766, allocations: 8.955 MB / 0.5398 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.413e-05/0.4767, allocations: 27.64 kB / 0.5398 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003247/0.477, allocations: 107.4 kB / 0.5399 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003506/0.4805, allocations: 2.015 MB / 0.5419 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01508/0.4956, allocations: 7.966 MB / 0.5497 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0484/0.544, allocations: 28.48 MB / 0.5775 GB, free: 3.762 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007406/0.5514, allocations: 2.257 MB / 0.5797 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001645/0.5531, allocations: 0.9238 MB / 0.5806 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00945/0.5625, allocations: 4.08 MB / 0.5846 GB, free: 12.53 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.5626, allocations: 43.88 kB / 0.5846 GB, free: 12.47 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 3.386e-06/0.5626, allocations: 3.938 kB / 0.5846 GB, free: 12.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.02496/0.5875, allocations: 9.597 MB / 0.594 GB, free: 2.902 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01019/0.5977, allocations: 6.564 MB / 0.6004 GB, free: 12.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00589/0.6036, allocations: 3.054 MB / 0.6034 GB, free: 9.062 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003953/0.604, allocations: 49.7 kB / 0.6034 GB, free: 9.008 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00205/0.606, allocations: 2.45 MB / 0.6058 GB, free: 6.566 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009042/0.607, allocations: 0.7564 MB / 0.6066 GB, free: 5.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/0.6084, allocations: 0.9484 MB / 0.6075 GB, free: 4.863 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.6086, allocations: 301.1 kB / 0.6078 GB, free: 4.566 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002834/0.6114, allocations: 1.532 MB / 0.6093 GB, free: 3.027 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005606/0.617, allocations: 4.115 MB / 0.6133 GB, free: 13.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008414/0.6254, allocations: 6.082 MB / 0.6192 GB, free: 6.695 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.652e-05/0.6255, allocations: 31.94 kB / 0.6193 GB, free: 6.664 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01144/0.6369, allocations: 6.041 MB / 0.6252 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.225e-05/0.637, allocations: 44.19 kB / 0.6252 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001116/0.6371, allocations: 92 kB / 0.6253 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/0.6388, allocations: 0.6237 MB / 0.6259 GB, free: 44 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003278/0.6421, allocations: 1.019 MB / 0.6269 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/0.6545, allocations: 8.952 MB / 0.6356 GB, free: 5.734 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003753/0.6582, allocations: 254 kB / 0.6359 GB, free: 5.488 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005451/0.6588, allocations: 276.3 kB / 0.6361 GB, free: 5.219 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (554): * Single equations (assignments): 547 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,88.9%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.003654/0.6624, allocations: 1.735 MB / 0.6378 GB, free: 3.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006828/0.6631, allocations: 286.1 kB / 0.6381 GB, free: 3.199 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005615/0.6687, allocations: 2.863 MB / 0.6409 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001056/0.6688, allocations: 35.92 kB / 0.6409 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.6689, allocations: 4 kB / 0.6409 GB, free: 276 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.6689, allocations: 7.969 kB / 0.6409 GB, free: 268 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01828/0.6872, allocations: 9.04 MB / 0.6498 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.6872, allocations: 4 kB / 0.6498 GB, free: 7.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000951/0.6881, allocations: 211.7 kB / 0.65 GB, free: 6.879 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.6899, allocations: 0.638 MB / 0.6506 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.69, allocations: 39.03 kB / 0.6506 GB, free: 6.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01316/0.7032, allocations: 9.052 MB / 0.6595 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008551/0.7117, allocations: 5.724 MB / 0.6651 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007471/0.7192, allocations: 4.186 MB / 0.6692 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008725/0.7201, allocations: 283 kB / 0.6694 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003859/0.7205, allocations: 38.72 kB / 0.6695 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009524/0.7214, allocations: 79.91 kB / 0.6695 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/0.7217, allocations: 145 kB / 0.6697 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.7218, allocations: 55.98 kB / 0.6697 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003631/0.7255, allocations: 1.944 MB / 0.6716 GB, free: 68 kB / 0.4981 GB Notification: Performance of sort global known variables: time 5.01e-07/0.7255, allocations: 0 / 0.6716 GB, free: 68 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004793/0.7303, allocations: 0.8813 MB / 0.6725 GB, free: 15.19 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,88.9%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008436/0.7387, allocations: 4.836 MB / 0.6772 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008641/0.7473, allocations: 4.015 MB / 0.6811 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.7473, allocations: 4.188 kB / 0.6811 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003049/0.7504, allocations: 1.584 MB / 0.6827 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/0.7528, allocations: 458.8 kB / 0.6831 GB, free: 4.176 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0625/0.8153, allocations: 33.59 MB / 0.7159 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004338/0.8196, allocations: 2.837 MB / 0.7187 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003224/0.8229, allocations: 1.31 MB / 0.72 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002403/0.8253, allocations: 1.472 MB / 0.7214 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of SimCode: time 7.62e-07/0.8253, allocations: 0 / 0.7214 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3754/1.201, allocations: 63.31 MB / 0.7832 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.92/46.12, allocations: 3.125 kB / 0.7832 GB, free: 170.1 MB / 0.5606 GB " [Timeout remaining time 614] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 48.99401901708916] Failed to read output from testmodel.py, exit status != 0: 46.280136284884065 46.290940504 45.854968125 Calling exit ...