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.001242/0.001242, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001375/0.001375, allocations: 216.6 kB / 23.03 MB, free: 4.949 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.04843/0.04843, allocations: 9.245 MB / 322.5 MB, free: 9.844 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="cs",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.002014/0.002014, allocations: 63.91 kB / 448.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1121, allocations: 55.47 MB / 0.4921 GB, free: 7.031 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01133/0.1235, allocations: 8.458 MB / 0.5004 GB, free: 14.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006436/0.1299, allocations: 2.741 MB / 0.503 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.1314, allocations: 47.81 kB / 0.5031 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.1327, allocations: 437 kB / 0.5035 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004494/0.1371, allocations: 1.58 MB / 0.505 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.1379, allocations: 183.7 kB / 0.5052 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004391/0.1423, allocations: 2.829 MB / 0.508 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001872/0.1442, allocations: 0.8958 MB / 0.5089 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.1463, allocations: 1.047 MB / 0.5099 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002921/0.1492, allocations: 1.596 MB / 0.5114 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.1503, allocations: 260 kB / 0.5117 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.1526, allocations: 0.7957 MB / 0.5125 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001995/0.1545, allocations: 1.371 MB / 0.5138 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2501/0.4046, allocations: 1.234 MB / 0.515 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007471/0.4121, allocations: 5.474 MB / 0.5204 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4121, allocations: 0 / 0.5204 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4121, allocations: 1.062 kB / 0.5204 GB, free: 9.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002112/0.4123, allocations: 0.5312 kB / 0.5204 GB, free: 9.777 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.01859/0.4309, allocations: 5.246 MB / 0.5255 GB, free: 8.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.4309, allocations: 9.312 kB / 0.5255 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001865/0.4311, allocations: 82.64 kB / 0.5256 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001307/0.4324, allocations: 0.6026 MB / 0.5262 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007205/0.4396, allocations: 1.841 MB / 0.528 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004129/0.4438, allocations: 1.462 MB / 0.5294 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.444, allocations: 178.6 kB / 0.5296 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/0.445, allocations: 229.9 kB / 0.5298 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01878/0.4638, allocations: 8.946 MB / 0.5385 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002616/0.4641, allocations: 36.53 kB / 0.5385 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001156/0.4652, allocations: 111.8 kB / 0.5386 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0041/0.4693, allocations: 2.016 MB / 0.5406 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0159/0.4852, allocations: 7.962 MB / 0.5484 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0495/0.5347, allocations: 27.03 MB / 0.5748 GB, free: 7.367 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008309/0.543, allocations: 2.262 MB / 0.577 GB, free: 5.102 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002115/0.5451, allocations: 0.9193 MB / 0.5779 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01088/0.556, allocations: 3.792 MB / 0.5816 GB, free: 416 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.823e-05/0.5561, allocations: 48.75 kB / 0.5816 GB, free: 364 kB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 5.671e-06/0.5561, allocations: 0 / 0.5816 GB, free: 364 kB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02564/0.5817, allocations: 9.6 MB / 0.591 GB, free: 6.777 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009765/0.5915, allocations: 6.518 MB / 0.5974 GB, free: 44 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005953/0.5974, allocations: 3.04 MB / 0.6003 GB, free: 12.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002943/0.5977, allocations: 57.64 kB / 0.6004 GB, free: 12.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002078/0.5998, allocations: 2.45 MB / 0.6028 GB, free: 10.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/0.6008, allocations: 0.7583 MB / 0.6035 GB, free: 9.742 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002128/0.603, allocations: 0.9415 MB / 0.6045 GB, free: 8.789 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.6031, allocations: 305.1 kB / 0.6047 GB, free: 8.488 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002929/0.606, allocations: 1.532 MB / 0.6062 GB, free: 6.953 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005167/0.6112, allocations: 4.117 MB / 0.6103 GB, free: 1.605 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00851/0.6197, allocations: 6.084 MB / 0.6162 GB, free: 10.63 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001014/0.6198, allocations: 31.94 kB / 0.6162 GB, free: 10.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01297/0.6328, allocations: 6.035 MB / 0.6221 GB, free: 4.668 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.648e-05/0.6329, allocations: 48.03 kB / 0.6222 GB, free: 4.621 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001284/0.633, allocations: 88 kB / 0.6223 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/0.6347, allocations: 0.622 MB / 0.6229 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003454/0.6382, allocations: 1.018 MB / 0.6239 GB, free: 2.891 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/0.6495, allocations: 8.889 MB / 0.6325 GB, free: 9.664 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003661/0.6531, allocations: 250.5 kB / 0.6328 GB, free: 9.422 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009765/0.6541, allocations: 284 kB / 0.6331 GB, free: 9.145 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.003218/0.6573, allocations: 1.72 MB / 0.6347 GB, free: 7.414 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005444/0.6579, allocations: 282.1 kB / 0.635 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005366/0.6632, allocations: 2.862 MB / 0.6378 GB, free: 4.25 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001103/0.6633, allocations: 35.98 kB / 0.6378 GB, free: 4.215 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.6633, allocations: 4 kB / 0.6378 GB, free: 4.211 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/0.6634, allocations: 7.969 kB / 0.6378 GB, free: 4.203 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01846/0.6818, allocations: 8.686 MB / 0.6463 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.6818, allocations: 4.438 kB / 0.6463 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008757/0.6827, allocations: 215.7 kB / 0.6465 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001911/0.6846, allocations: 0.6303 MB / 0.6471 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001468/0.6848, allocations: 39.98 kB / 0.6472 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/0.6972, allocations: 8.978 MB / 0.656 GB, free: 1.223 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007614/0.7048, allocations: 5.672 MB / 0.6615 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00814/0.7129, allocations: 4.181 MB / 0.6656 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000954/0.7139, allocations: 282 kB / 0.6658 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006225/0.7145, allocations: 38.48 kB / 0.6659 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.7159, allocations: 87.89 kB / 0.666 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003803/0.7163, allocations: 136.9 kB / 0.6661 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.7164, allocations: 59.98 kB / 0.6662 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003818/0.7202, allocations: 1.944 MB / 0.6681 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7202, allocations: 0 / 0.6681 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004174/0.7244, allocations: 0.8719 MB / 0.6689 GB, free: 3.645 MB / 0.4981 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.00748/0.7319, allocations: 4.84 MB / 0.6736 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007254/0.7391, allocations: 4.023 MB / 0.6776 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.7392, allocations: 4.062 kB / 0.6776 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002647/0.7418, allocations: 1.587 MB / 0.6791 GB, free: 9.059 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/0.7445, allocations: 446.5 kB / 0.6795 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05893/0.8034, allocations: 33.6 MB / 0.7123 GB, free: 3.426 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003903/0.8073, allocations: 2.28 MB / 0.7146 GB, free: 1.113 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003242/0.8106, allocations: 1.318 MB / 0.7159 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002236/0.8128, allocations: 1.468 MB / 0.7173 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of SimCode: time 9.62e-07/0.8128, allocations: 3.938 kB / 0.7173 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3276/1.14, allocations: 61.35 MB / 0.7772 GB, free: 178 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.76/45.9, allocations: 6.641 kB / 0.7772 GB, free: 178 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.69614710705355] Failed to read output from testmodel.py, exit status != 0: 46.117341247037984 46.132590023 45.716373192 Calling exit ...