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.001508/0.001508, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001362/0.001362, allocations: 220.6 kB / 23.01 MB, free: 4.609 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.344/1.344, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.05128/0.05128, allocations: 9.234 MB / 322.4 MB, free: 10.08 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: translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") [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.002075/0.002075, allocations: 63.91 kB / 449 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1026, allocations: 55.47 MB / 0.4926 GB, free: 7.012 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01182/0.1144, allocations: 9.802 MB / 0.5022 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006415/0.1208, allocations: 2.889 MB / 0.505 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001363/0.1222, allocations: 51.81 kB / 0.5051 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.1235, allocations: 433 kB / 0.5055 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004031/0.1275, allocations: 1.58 MB / 0.507 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006629/0.1282, allocations: 187.7 kB / 0.5072 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004211/0.1324, allocations: 2.835 MB / 0.51 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.1339, allocations: 0.8996 MB / 0.5109 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001695/0.1356, allocations: 1.054 MB / 0.5119 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.1381, allocations: 1.58 MB / 0.5134 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006989/0.1388, allocations: 263.9 kB / 0.5137 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.1405, allocations: 0.9167 MB / 0.5146 GB, free: 444 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2064/0.3469, allocations: 1.357 MB / 0.5159 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.3486, allocations: 1.742 MB / 0.5176 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006/0.3546, allocations: 5.462 MB / 0.5229 GB, free: 9.238 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3546, allocations: 0 / 0.5229 GB, free: 9.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3546, allocations: 1.125 kB / 0.5229 GB, free: 9.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001248/0.3547, allocations: 0 / 0.5229 GB, free: 9.238 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.01257/0.3673, allocations: 5.234 MB / 0.5281 GB, free: 7.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.3673, allocations: 10.38 kB / 0.5281 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006354/0.3737, allocations: 1.84 MB / 0.5299 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003301/0.377, allocations: 1.444 MB / 0.5313 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.3772, allocations: 176 kB / 0.5314 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006698/0.3778, allocations: 237 kB / 0.5317 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.3905, allocations: 8.95 MB / 0.5404 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.574e-05/0.3906, allocations: 32.05 kB / 0.5404 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003073/0.3909, allocations: 112 kB / 0.5405 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.3936, allocations: 2.013 MB / 0.5425 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/0.4077, allocations: 7.966 MB / 0.5503 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0431/0.4508, allocations: 28.48 MB / 0.5781 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006845/0.4577, allocations: 2.267 MB / 0.5803 GB, free: 1.902 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.4593, allocations: 0.9222 MB / 0.5812 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008846/0.4682, allocations: 4.071 MB / 0.5852 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.4682, allocations: 47.88 kB / 0.5852 GB, free: 12.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 3.226e-06/0.4682, allocations: 0 / 0.5852 GB, free: 12.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.02254/0.4907, allocations: 9.571 MB / 0.5946 GB, free: 3.336 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008619/0.4994, allocations: 6.582 MB / 0.601 GB, free: 12.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005508/0.5049, allocations: 3.031 MB / 0.604 GB, free: 9.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002894/0.5052, allocations: 53.69 kB / 0.604 GB, free: 9.441 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001996/0.5072, allocations: 2.455 MB / 0.6064 GB, free: 6.996 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009097/0.5081, allocations: 0.7461 MB / 0.6071 GB, free: 6.258 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001846/0.5099, allocations: 0.9562 MB / 0.6081 GB, free: 5.293 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.51, allocations: 305.1 kB / 0.6084 GB, free: 4.992 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002756/0.5128, allocations: 1.543 MB / 0.6099 GB, free: 3.445 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004938/0.5177, allocations: 4.122 MB / 0.6139 GB, free: 14.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007851/0.5256, allocations: 6.108 MB / 0.6199 GB, free: 7.082 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.988e-05/0.5257, allocations: 28 kB / 0.6199 GB, free: 7.055 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01121/0.5369, allocations: 6.062 MB / 0.6258 GB, free: 1.141 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.152e-05/0.537, allocations: 40 kB / 0.6259 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001282/0.5371, allocations: 92 kB / 0.6259 GB, free: 1.012 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.5385, allocations: 0.5774 MB / 0.6265 GB, free: 440 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003288/0.5418, allocations: 1.025 MB / 0.6275 GB, free: 15.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.5532, allocations: 9.021 MB / 0.6363 GB, free: 6.055 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003392/0.5566, allocations: 247.5 kB / 0.6366 GB, free: 5.816 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007654/0.5574, allocations: 284 kB / 0.6368 GB, free: 5.539 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 {(5,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.003325/0.5607, allocations: 1.728 MB / 0.6385 GB, free: 3.805 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000596/0.5613, allocations: 282.1 kB / 0.6388 GB, free: 3.527 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005456/0.5668, allocations: 2.886 MB / 0.6416 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/0.5669, allocations: 27.98 kB / 0.6416 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.5669, allocations: 8 kB / 0.6416 GB, free: 0.582 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.5669, allocations: 11.97 kB / 0.6416 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01806/0.585, allocations: 9.093 MB / 0.6505 GB, free: 7.336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/0.585, allocations: 4.125 kB / 0.6505 GB, free: 7.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008387/0.5858, allocations: 215.7 kB / 0.6507 GB, free: 7.121 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/0.5874, allocations: 0.6039 MB / 0.6513 GB, free: 6.508 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.5875, allocations: 39.98 kB / 0.6514 GB, free: 6.469 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/0.5994, allocations: 9.176 MB / 0.6603 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006912/0.6063, allocations: 5.714 MB / 0.6659 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00694/0.6133, allocations: 4.235 MB / 0.67 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008119/0.6141, allocations: 278.1 kB / 0.6703 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005041/0.6146, allocations: 35.98 kB / 0.6703 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.6157, allocations: 87.89 kB / 0.6704 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002992/0.616, allocations: 145 kB / 0.6706 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.6161, allocations: 55.98 kB / 0.6706 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003512/0.6196, allocations: 1.932 MB / 0.6725 GB, free: 200 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6196, allocations: 0 / 0.6725 GB, free: 200 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003945/0.6236, allocations: 0.8816 MB / 0.6734 GB, free: 15.31 MB / 0.5138 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 {(5,15,56.0%), (3,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003974/0.624, allocations: 175.2 kB / 0.6735 GB, free: 15.14 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007047/0.631, allocations: 4.079 MB / 0.6775 GB, free: 11.04 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/0.631, allocations: 4 kB / 0.6775 GB, free: 11.04 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002783/0.6338, allocations: 1.673 MB / 0.6791 GB, free: 9.328 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/0.636, allocations: 448.1 kB / 0.6796 GB, free: 8.898 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.6501, allocations: 8.12 MB / 0.6875 GB, free: 0.6719 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003632/0.6537, allocations: 2.837 MB / 0.6903 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007528/0.6544, allocations: 243.4 kB / 0.6905 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of SimCode: time 7.42e-07/0.6544, allocations: 0 / 0.6905 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of Templates: time 0.2646/0.9191, allocations: 99.57 MB / 0.7877 GB, free: 129 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile [Timeout 660] (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 & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.15688457293436] Failed to read output from testmodel.py, exit status != 0: 0.9271134990267456 0.935489464 0.5787153429999999 Calling exit ...