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.001291/0.001291, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001559/0.001559, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.512/1.512, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.04804/0.04804, allocations: 9.23 MB / 318.8 MB, free: 15.55 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.00213/0.00213, allocations: 70.81 kB / 443.3 MB, free: 39.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08893/0.09106, allocations: 55.43 MB / 498.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.009087/0.1002, allocations: 9.777 MB / 0.4965 GB, free: 12.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006099/0.1062, allocations: 2.877 MB / 0.4993 GB, free: 10.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.1074, allocations: 43.88 kB / 0.4994 GB, free: 9.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.1084, allocations: 437 kB / 0.4998 GB, free: 9.535 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003399/0.1118, allocations: 1.576 MB / 0.5013 GB, free: 7.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004783/0.1123, allocations: 183.8 kB / 0.5015 GB, free: 7.773 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00318/0.1155, allocations: 2.838 MB / 0.5043 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001195/0.1167, allocations: 0.9032 MB / 0.5052 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001257/0.1179, allocations: 1.039 MB / 0.5062 GB, free: 2.945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001854/0.1198, allocations: 1.6 MB / 0.5078 GB, free: 1.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004157/0.1202, allocations: 260 kB / 0.508 GB, free: 1.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.1216, allocations: 0.9089 MB / 0.5089 GB, free: 180 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001227/0.1229, allocations: 1.363 MB / 0.5102 GB, free: 14.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00162/0.1245, allocations: 1.743 MB / 0.5119 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006183/0.1307, allocations: 5.466 MB / 0.5173 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1307, allocations: 0 / 0.5173 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1307, allocations: 4 kB / 0.5173 GB, free: 7.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.701e-05/0.1308, allocations: 0 / 0.5173 GB, free: 7.562 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.01371/0.1445, allocations: 5.316 MB / 0.5225 GB, free: 2.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.1445, allocations: 12.03 kB / 0.5225 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001182/0.1446, allocations: 80.64 kB / 0.5225 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008654/0.1455, allocations: 0.5971 MB / 0.5231 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007227/0.1527, allocations: 1.843 MB / 0.5249 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003154/0.1559, allocations: 1.522 MB / 0.5264 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.1561, allocations: 176.3 kB / 0.5266 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006435/0.1567, allocations: 231.8 kB / 0.5268 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0161/0.1728, allocations: 8.948 MB / 0.5355 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.145e-05/0.1729, allocations: 31.75 kB / 0.5356 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003708/0.1733, allocations: 111.8 kB / 0.5357 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003567/0.1768, allocations: 2.013 MB / 0.5376 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0171/0.1939, allocations: 7.963 MB / 0.5454 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04211/0.236, allocations: 28.54 MB / 0.5733 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00747/0.2435, allocations: 2.708 MB / 0.5759 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/0.2452, allocations: 0.9193 MB / 0.5768 GB, free: 9.227 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01143/0.2566, allocations: 6.483 MB / 0.5832 GB, free: 2.117 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/0.2567, allocations: 47.81 kB / 0.5832 GB, free: 2.062 MB / 446.1 MB Notification: Performance of pre-optimization done (n=155): time 5.029e-06/0.2567, allocations: 0 / 0.5832 GB, free: 2.062 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.2498/0.5065, allocations: 9.798 MB / 0.5928 GB, free: 87.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007994/0.5145, allocations: 6.773 MB / 0.5994 GB, free: 83.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00434/0.5189, allocations: 3.052 MB / 0.6024 GB, free: 82.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002182/0.5191, allocations: 52.95 kB / 0.6024 GB, free: 82.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.5201, allocations: 2.443 MB / 0.6048 GB, free: 80.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005413/0.5206, allocations: 0.7578 MB / 0.6055 GB, free: 79.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/0.5216, allocations: 0.947 MB / 0.6065 GB, free: 79.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.842e-05/0.5217, allocations: 312.7 kB / 0.6068 GB, free: 79.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001901/0.5236, allocations: 1.533 MB / 0.6083 GB, free: 78.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002816/0.5264, allocations: 4.114 MB / 0.6123 GB, free: 74.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004939/0.5313, allocations: 6.086 MB / 0.6182 GB, free: 68.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.51e-05/0.5314, allocations: 28 kB / 0.6183 GB, free: 68.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.008109/0.5395, allocations: 6.039 MB / 0.6242 GB, free: 62.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.5395, allocations: 44 kB / 0.6242 GB, free: 62.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.921e-05/0.5396, allocations: 88 kB / 0.6243 GB, free: 62.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.541, allocations: 0.6297 MB / 0.6249 GB, free: 61.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002706/0.5437, allocations: 1.02 MB / 0.6259 GB, free: 60.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007943/0.5516, allocations: 9.269 MB / 0.6349 GB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/0.555, allocations: 251.9 kB / 0.6352 GB, free: 50.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004424/0.5554, allocations: 279.3 kB / 0.6354 GB, free: 50.34 MB / 446.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.002177/0.5576, allocations: 1.725 MB / 0.6371 GB, free: 48.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004536/0.558, allocations: 282.1 kB / 0.6374 GB, free: 48.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.5622, allocations: 2.858 MB / 0.6402 GB, free: 45.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-05/0.5623, allocations: 27.98 kB / 0.6402 GB, free: 45.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.5624, allocations: 8 kB / 0.6402 GB, free: 45.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.758e-05/0.5624, allocations: 8.844 kB / 0.6402 GB, free: 45.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.5749, allocations: 9.196 MB / 0.6492 GB, free: 36.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.5749, allocations: 8.031 kB / 0.6492 GB, free: 36.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007627/0.5757, allocations: 212.5 kB / 0.6494 GB, free: 35.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.5772, allocations: 0.6409 MB / 0.6501 GB, free: 35.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/0.5774, allocations: 39.98 kB / 0.6501 GB, free: 35.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008587/0.586, allocations: 9.368 MB / 0.6592 GB, free: 25.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005191/0.5911, allocations: 5.92 MB / 0.665 GB, free: 19.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005669/0.5968, allocations: 4.191 MB / 0.6691 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007392/0.5976, allocations: 355.2 kB / 0.6695 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000305/0.5979, allocations: 35.52 kB / 0.6695 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009546/0.5988, allocations: 83.89 kB / 0.6696 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000297/0.5991, allocations: 137.4 kB / 0.6697 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.5992, allocations: 56.05 kB / 0.6697 GB, free: 14.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002396/0.6016, allocations: 1.951 MB / 0.6717 GB, free: 12.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6016, allocations: 4.047 kB / 0.6717 GB, free: 12.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003714/0.6053, allocations: 0.8826 MB / 0.6725 GB, free: 11.43 MB / 446.1 MB 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.005469/0.6108, allocations: 4.838 MB / 0.6772 GB, free: 6.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005351/0.6161, allocations: 4.017 MB / 0.6812 GB, free: 2.488 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.6161, allocations: 0 / 0.6812 GB, free: 2.488 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001919/0.6181, allocations: 1.589 MB / 0.6827 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.6202, allocations: 440 kB / 0.6831 GB, free: 448 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05632/0.6766, allocations: 33.53 MB / 0.7159 GB, free: 11.29 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004006/0.6806, allocations: 2.829 MB / 0.7186 GB, free: 8.438 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00338/0.6839, allocations: 1.318 MB / 0.7199 GB, free: 7.117 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002418/0.6864, allocations: 1.468 MB / 0.7214 GB, free: 5.648 MB / 494.1 MB Notification: Performance of SimCode: time 1.593e-06/0.6864, allocations: 0 / 0.7214 GB, free: 5.648 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1719/0.8583, allocations: 59.41 MB / 0.7794 GB, free: 10.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.43/44.29, allocations: 15.5 kB / 0.7794 GB, free: 10.49 MB / 0.545 GB " [Timeout remaining time 616] (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: 47.45289596501971] Failed to read output from testmodel.py, exit status != 0: 44.48122008499922 44.708880946 44.574876492 Calling exit ...