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.002056/0.002056, 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/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.002063/0.002063, allocations: 214 kB / 22.25 MB, free: 5.262 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.431/1.431, allocations: 230.6 MB / 256 MB, free: 7.809 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.04795/0.04795, allocations: 9.243 MB / 321.7 MB, free: 9.871 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.002048/0.002048, allocations: 67.91 kB / 447.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1084, allocations: 55.47 MB / 0.4913 GB, free: 7.062 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01063/0.119, allocations: 8.509 MB / 0.4997 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006327/0.1254, allocations: 2.753 MB / 0.5023 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.1266, allocations: 43.81 kB / 0.5024 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.1276, allocations: 437 kB / 0.5028 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003979/0.1316, allocations: 1.576 MB / 0.5043 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005366/0.1322, allocations: 187.7 kB / 0.5045 GB, free: 9.516 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003554/0.1357, allocations: 2.829 MB / 0.5073 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.1371, allocations: 0.8801 MB / 0.5081 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001635/0.1387, allocations: 1.058 MB / 0.5092 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002599/0.1413, allocations: 1.514 MB / 0.5107 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006368/0.142, allocations: 263.9 kB / 0.5109 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.1438, allocations: 0.788 MB / 0.5117 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001615/0.1454, allocations: 1.367 MB / 0.513 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2477/0.3931, allocations: 1.232 MB / 0.5142 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006014/0.3991, allocations: 5.475 MB / 0.5196 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3991, allocations: 3.938 kB / 0.5196 GB, free: 9.773 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3991, allocations: 1 kB / 0.5196 GB, free: 9.773 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001581/0.3993, allocations: 0 / 0.5196 GB, free: 9.773 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.01427/0.4136, allocations: 5.241 MB / 0.5247 GB, free: 8.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.4136, allocations: 9.781 kB / 0.5247 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001463/0.4151, allocations: 0.6083 MB / 0.5253 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00727/0.4223, allocations: 1.83 MB / 0.5271 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004809/0.4272, allocations: 1.466 MB / 0.5285 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002075/0.4274, allocations: 178.2 kB / 0.5287 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001079/0.4284, allocations: 232.4 kB / 0.5289 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/0.4453, allocations: 8.95 MB / 0.5376 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.4454, allocations: 29.67 kB / 0.5377 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003906/0.4458, allocations: 107.4 kB / 0.5378 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003239/0.449, allocations: 2.017 MB / 0.5397 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0161/0.4651, allocations: 7.951 MB / 0.5475 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04867/0.5138, allocations: 27.02 MB / 0.5739 GB, free: 7.473 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007474/0.5213, allocations: 2.254 MB / 0.5761 GB, free: 5.215 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00183/0.5231, allocations: 0.9276 MB / 0.577 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00951/0.5326, allocations: 3.792 MB / 0.5807 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.199e-05/0.5327, allocations: 51.38 kB / 0.5807 GB, free: 472 kB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.498e-06/0.5327, allocations: 0 / 0.5807 GB, free: 472 kB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.0247/0.5574, allocations: 9.593 MB / 0.5901 GB, free: 6.891 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009987/0.5674, allocations: 6.521 MB / 0.5965 GB, free: 160 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005975/0.5734, allocations: 3.199 MB / 0.5996 GB, free: 12.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003715/0.5737, allocations: 49.7 kB / 0.5997 GB, free: 12.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002498/0.5762, allocations: 2.447 MB / 0.602 GB, free: 10.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.5774, allocations: 0.7613 MB / 0.6028 GB, free: 9.703 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001555/0.579, allocations: 0.9453 MB / 0.6037 GB, free: 8.746 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5791, allocations: 301.1 kB / 0.604 GB, free: 8.449 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/0.5818, allocations: 1.536 MB / 0.6055 GB, free: 6.906 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005059/0.5869, allocations: 4.112 MB / 0.6095 GB, free: 1.566 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008855/0.5957, allocations: 6.083 MB / 0.6155 GB, free: 10.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.652e-05/0.5958, allocations: 24 kB / 0.6155 GB, free: 10.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01369/0.6095, allocations: 6.031 MB / 0.6214 GB, free: 4.629 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.443e-05/0.6096, allocations: 51.06 kB / 0.6214 GB, free: 4.582 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/0.6097, allocations: 92.7 kB / 0.6215 GB, free: 4.492 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/0.6114, allocations: 0.6237 MB / 0.6221 GB, free: 3.863 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00356/0.6149, allocations: 1.022 MB / 0.6231 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/0.6272, allocations: 8.881 MB / 0.6318 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003876/0.6311, allocations: 247.9 kB / 0.632 GB, free: 9.379 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009725/0.632, allocations: 280.3 kB / 0.6323 GB, free: 9.105 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.004683/0.6367, allocations: 1.731 MB / 0.634 GB, free: 7.371 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007726/0.6375, allocations: 278.1 kB / 0.6342 GB, free: 7.098 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008262/0.6458, allocations: 2.863 MB / 0.637 GB, free: 4.207 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001798/0.6459, allocations: 35.92 kB / 0.6371 GB, free: 4.172 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/0.646, allocations: 8 kB / 0.6371 GB, free: 4.164 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-05/0.646, allocations: 11.97 kB / 0.6371 GB, free: 4.152 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01879/0.6648, allocations: 8.681 MB / 0.6456 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.6648, allocations: 0 / 0.6456 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008198/0.6656, allocations: 216.1 kB / 0.6458 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001789/0.6674, allocations: 0.637 MB / 0.6464 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/0.6675, allocations: 32 kB / 0.6464 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/0.68, allocations: 8.968 MB / 0.6552 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007474/0.6875, allocations: 5.691 MB / 0.6607 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007651/0.6952, allocations: 4.174 MB / 0.6648 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.6962, allocations: 286.1 kB / 0.6651 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003841/0.6966, allocations: 35.94 kB / 0.6651 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.6976, allocations: 87.33 kB / 0.6652 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003608/0.698, allocations: 145 kB / 0.6653 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.6981, allocations: 55.98 kB / 0.6654 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003655/0.7018, allocations: 1.948 MB / 0.6673 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7018, allocations: 0 / 0.6673 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004726/0.7065, allocations: 0.871 MB / 0.6682 GB, free: 3.586 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.007619/0.7141, allocations: 4.837 MB / 0.6729 GB, free: 14.67 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008576/0.7227, allocations: 4.013 MB / 0.6768 GB, free: 10.64 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.566e-05/0.7227, allocations: 4 kB / 0.6768 GB, free: 10.64 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002955/0.7257, allocations: 1.584 MB / 0.6783 GB, free: 9.012 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/0.7284, allocations: 457 kB / 0.6788 GB, free: 8.574 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06273/0.7912, allocations: 33.59 MB / 0.7116 GB, free: 3.379 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003711/0.7949, allocations: 2.276 MB / 0.7138 GB, free: 1.07 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003542/0.7984, allocations: 1.322 MB / 0.7151 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002658/0.8011, allocations: 1.464 MB / 0.7165 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of SimCode: time 1.713e-06/0.8011, allocations: 0 / 0.7165 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3423/1.143, allocations: 59.62 MB / 0.7747 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.62/17.76, allocations: 6.875 kB / 0.7748 GB, free: 179.7 MB / 0.5606 GB " [Timeout remaining time 642] (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: 20.43430936615914] Failed to read output from testmodel.py, exit status != 0: 17.921026325784624 17.931769105 17.530261703 Calling exit ...