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.001633/0.001633, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001805/0.001805, allocations: 216.3 kB / 22.99 MB, free: 4.914 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.395/1.395, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.04721/0.04721, allocations: 9.235 MB / 322.4 MB, free: 9.863 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.002612/0.002612, allocations: 71.89 kB / 448.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1094, allocations: 55.47 MB / 0.4926 GB, free: 6.543 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01051/0.1199, allocations: 8.506 MB / 0.5009 GB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006409/0.1263, allocations: 2.749 MB / 0.5036 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.1279, allocations: 47.81 kB / 0.5036 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.1292, allocations: 433 kB / 0.504 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005076/0.1343, allocations: 1.58 MB / 0.5056 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008998/0.1352, allocations: 191.6 kB / 0.5057 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00453/0.1397, allocations: 2.831 MB / 0.5085 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.1413, allocations: 0.884 MB / 0.5094 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.1431, allocations: 1.047 MB / 0.5104 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002454/0.1456, allocations: 1.518 MB / 0.5119 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006215/0.1462, allocations: 267.9 kB / 0.5121 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001626/0.1478, allocations: 0.7841 MB / 0.5129 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001447/0.1493, allocations: 1.367 MB / 0.5142 GB, free: 264 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1891/0.3384, allocations: 1.233 MB / 0.5154 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005498/0.3439, allocations: 5.469 MB / 0.5208 GB, free: 9.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3439, allocations: 3.688 kB / 0.5208 GB, free: 9.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3439, allocations: 0 / 0.5208 GB, free: 9.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001398/0.344, allocations: 1.062 kB / 0.5208 GB, free: 9.812 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.01253/0.3566, allocations: 5.232 MB / 0.5259 GB, free: 8.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.3566, allocations: 10.19 kB / 0.5259 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006498/0.3631, allocations: 1.837 MB / 0.5277 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003528/0.3666, allocations: 1.457 MB / 0.5291 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.3668, allocations: 174.7 kB / 0.5293 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006844/0.3675, allocations: 239.3 kB / 0.5295 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/0.3815, allocations: 8.948 MB / 0.5382 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.93e-05/0.3816, allocations: 32.2 kB / 0.5383 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003302/0.3819, allocations: 109 kB / 0.5384 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003078/0.385, allocations: 2.018 MB / 0.5404 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.3993, allocations: 7.946 MB / 0.5481 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0401/0.4394, allocations: 26 MB / 0.5735 GB, free: 8.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006776/0.4462, allocations: 2.256 MB / 0.5757 GB, free: 6.691 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.4477, allocations: 0.9193 MB / 0.5766 GB, free: 5.773 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008153/0.4558, allocations: 3.716 MB / 0.5802 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.4559, allocations: 56.42 kB / 0.5803 GB, free: 2.012 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.789e-06/0.4559, allocations: 0 / 0.5803 GB, free: 2.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02228/0.4782, allocations: 9.529 MB / 0.5896 GB, free: 8.512 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008457/0.4866, allocations: 6.458 MB / 0.5959 GB, free: 1.859 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003987/0.4906, allocations: 2.577 MB / 0.5984 GB, free: 15.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002801/0.4909, allocations: 53.7 kB / 0.5985 GB, free: 15.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001831/0.4927, allocations: 2.482 MB / 0.6009 GB, free: 12.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009483/0.4937, allocations: 0.7544 MB / 0.6016 GB, free: 11.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/0.4951, allocations: 0.9572 MB / 0.6026 GB, free: 11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.4952, allocations: 353.9 kB / 0.6029 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002536/0.4978, allocations: 1.547 MB / 0.6044 GB, free: 9.094 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005051/0.5028, allocations: 4.124 MB / 0.6084 GB, free: 3.734 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008365/0.5112, allocations: 6.103 MB / 0.6144 GB, free: 12.74 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-05/0.5113, allocations: 28 kB / 0.6144 GB, free: 12.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01175/0.523, allocations: 6.009 MB / 0.6203 GB, free: 6.789 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.302e-05/0.5231, allocations: 51.92 kB / 0.6203 GB, free: 6.738 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.5232, allocations: 92.02 kB / 0.6204 GB, free: 6.648 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.5246, allocations: 0.5801 MB / 0.621 GB, free: 6.066 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003328/0.5279, allocations: 1.018 MB / 0.622 GB, free: 5.047 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/0.5398, allocations: 8.869 MB / 0.6306 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/0.5432, allocations: 254.4 kB / 0.6309 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007573/0.544, allocations: 276.4 kB / 0.6312 GB, free: 11.37 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.003359/0.5473, allocations: 1.724 MB / 0.6328 GB, free: 9.641 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004562/0.5478, allocations: 242.5 kB / 0.6331 GB, free: 9.402 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005075/0.5529, allocations: 2.846 MB / 0.6358 GB, free: 6.535 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/0.553, allocations: 27.98 kB / 0.6359 GB, free: 6.508 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/0.553, allocations: 15.88 kB / 0.6359 GB, free: 6.492 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.553, allocations: 7.969 kB / 0.6359 GB, free: 6.484 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/0.5687, allocations: 8.135 MB / 0.6438 GB, free: 14.24 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.5688, allocations: 4 kB / 0.6438 GB, free: 14.24 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007891/0.5695, allocations: 215.6 kB / 0.6441 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/0.571, allocations: 0.5973 MB / 0.6446 GB, free: 13.42 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.5712, allocations: 39.92 kB / 0.6447 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/0.5836, allocations: 9.021 MB / 0.6535 GB, free: 4.078 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006882/0.5905, allocations: 5.612 MB / 0.659 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0068/0.5973, allocations: 4.18 MB / 0.663 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007579/0.598, allocations: 214.4 kB / 0.6632 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003128/0.5983, allocations: 39.98 kB / 0.6633 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008885/0.5992, allocations: 83.89 kB / 0.6634 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.5995, allocations: 140 kB / 0.6635 GB, free: 9.539 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.5996, allocations: 59.98 kB / 0.6636 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002527/0.6022, allocations: 1.496 MB / 0.665 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.6022, allocations: 0 / 0.665 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004083/0.6062, allocations: 0.8749 MB / 0.6659 GB, free: 7.09 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 {(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.0004187/0.6067, allocations: 165.2 kB / 0.666 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00731/0.614, allocations: 4.081 MB / 0.67 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.614, allocations: 0 / 0.67 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002946/0.6169, allocations: 1.662 MB / 0.6716 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/0.6187, allocations: 301.8 kB / 0.6719 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.6338, allocations: 8.079 MB / 0.6798 GB, free: 8.652 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003457/0.6372, allocations: 2.286 MB / 0.682 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008443/0.6381, allocations: 223.4 kB / 0.6823 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of SimCode: time 1.503e-06/0.6381, allocations: 0 / 0.6823 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of Templates: time 0.2934/0.9315, allocations: 97.54 MB / 0.7775 GB, free: 144.7 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: 11.971253477968276] Failed to read output from testmodel.py, exit status != 0: 0.941173963714391 0.948556471 0.6023713310000001 Calling exit ...