Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.001248/0.001248, 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.001361/0.001361, allocations: 219.9 kB / 23.01 MB, free: 4.605 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.336/1.336, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 179] 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.04656/0.04656, allocations: 9.246 MB / 322.4 MB, free: 10.06 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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") [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.001926/0.001926, allocations: 67.89 kB / 449 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09945/0.1014, allocations: 55.46 MB / 0.4926 GB, free: 7.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01081/0.1122, allocations: 9.809 MB / 0.5022 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005272/0.1175, allocations: 2.897 MB / 0.505 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006189/0.1181, allocations: 47.81 kB / 0.5051 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008088/0.1189, allocations: 433 kB / 0.5055 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00283/0.1217, allocations: 1.579 MB / 0.507 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.1221, allocations: 187.7 kB / 0.5072 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003003/0.1251, allocations: 2.829 MB / 0.51 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.1262, allocations: 0.8958 MB / 0.5109 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.1273, allocations: 1.051 MB / 0.5119 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.1292, allocations: 1.588 MB / 0.5134 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003579/0.1295, allocations: 264 kB / 0.5137 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.1309, allocations: 0.9128 MB / 0.5146 GB, free: 448 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1808/0.3117, allocations: 1.357 MB / 0.5159 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001447/0.3132, allocations: 1.743 MB / 0.5176 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004957/0.3181, allocations: 5.464 MB / 0.5229 GB, free: 9.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3181, allocations: 0 / 0.5229 GB, free: 9.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3182, allocations: 0 / 0.5229 GB, free: 9.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.521e-05/0.3182, allocations: 0.5312 kB / 0.5229 GB, free: 9.129 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.0111/0.3293, allocations: 5.239 MB / 0.5281 GB, free: 7.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3294, allocations: 10.47 kB / 0.5281 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005961/0.3353, allocations: 1.829 MB / 0.5299 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/0.3379, allocations: 1.452 MB / 0.5313 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.338, allocations: 171.5 kB / 0.5314 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004191/0.3384, allocations: 236.8 kB / 0.5317 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01147/0.3499, allocations: 8.948 MB / 0.5404 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.193e-05/0.35, allocations: 37.62 kB / 0.5404 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003027/0.3503, allocations: 112.8 kB / 0.5405 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002788/0.3531, allocations: 2.008 MB / 0.5425 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01326/0.3663, allocations: 7.971 MB / 0.5503 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03929/0.4056, allocations: 28.47 MB / 0.5781 GB, free: 4.156 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006681/0.4123, allocations: 2.271 MB / 0.5803 GB, free: 1.883 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.4138, allocations: 0.919 MB / 0.5812 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008751/0.4226, allocations: 4.08 MB / 0.5852 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.4226, allocations: 45.05 kB / 0.5852 GB, free: 12.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.198e-06/0.4226, allocations: 4 kB / 0.5852 GB, free: 12.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01599/0.4386, allocations: 6.45 MB / 0.5915 GB, free: 6.469 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/0.4387, allocations: 69.41 kB / 0.5916 GB, free: 6.391 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004697/0.4434, allocations: 3.039 MB / 0.5946 GB, free: 3.332 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001841/0.4435, allocations: 53.7 kB / 0.5946 GB, free: 3.273 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002029/0.4456, allocations: 2.447 MB / 0.597 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008149/0.4464, allocations: 0.7378 MB / 0.5977 GB, free: 108 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001335/0.4477, allocations: 0.9287 MB / 0.5986 GB, free: 15.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.4479, allocations: 309.1 kB / 0.5989 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002504/0.4504, allocations: 1.497 MB / 0.6004 GB, free: 13.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004598/0.455, allocations: 4.09 MB / 0.6044 GB, free: 8.035 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007897/0.4629, allocations: 6.033 MB / 0.6103 GB, free: 1.109 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.166e-05/0.4629, allocations: 28 kB / 0.6103 GB, free: 1.082 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01083/0.4737, allocations: 5.966 MB / 0.6161 GB, free: 11.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.582e-05/0.4738, allocations: 44 kB / 0.6162 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001166/0.4739, allocations: 91.94 kB / 0.6163 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001437/0.4754, allocations: 0.5738 MB / 0.6168 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/0.4783, allocations: 1.006 MB / 0.6178 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/0.49, allocations: 9.014 MB / 0.6266 GB, free: 244 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003681/0.4937, allocations: 247.9 kB / 0.6268 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007088/0.4944, allocations: 275.4 kB / 0.6271 GB, free: 15.73 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 (548): * Single equations (assignments): 541 * 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.003317/0.4977, allocations: 1.725 MB / 0.6288 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000532/0.4983, allocations: 278.1 kB / 0.6291 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00492/0.5032, allocations: 2.656 MB / 0.6317 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001673/0.5033, allocations: 31.98 kB / 0.6317 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5034, allocations: 4 kB / 0.6317 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.5034, allocations: 7.969 kB / 0.6317 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/0.5172, allocations: 7.203 MB / 0.6387 GB, free: 3.699 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.5172, allocations: 4.844 kB / 0.6387 GB, free: 3.695 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008865/0.5181, allocations: 239.7 kB / 0.639 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.5192, allocations: 450.1 kB / 0.6394 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.514e-05/0.5193, allocations: 36 kB / 0.6394 GB, free: 2.977 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009259/0.5285, allocations: 7.56 MB / 0.6468 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-05/0.5286, allocations: 19.88 kB / 0.6468 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006529/0.5351, allocations: 3.985 MB / 0.6507 GB, free: 7.008 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000872/0.536, allocations: 278.1 kB / 0.651 GB, free: 6.734 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000301/0.5363, allocations: 39.84 kB / 0.651 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009004/0.5372, allocations: 79.91 kB / 0.6511 GB, free: 6.621 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/0.5375, allocations: 144.9 kB / 0.6512 GB, free: 6.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.5376, allocations: 56 kB / 0.6513 GB, free: 6.422 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003374/0.5409, allocations: 1.936 MB / 0.6532 GB, free: 4.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5409, allocations: 0 / 0.6532 GB, free: 4.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003747/0.5447, allocations: 0.8163 MB / 0.654 GB, free: 3.664 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * 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 (135): * Single equations (assignments): 128 * 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%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004041/0.5451, allocations: 166.1 kB / 0.6541 GB, free: 3.496 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006725/0.5518, allocations: 4.008 MB / 0.658 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5518, allocations: 0 / 0.658 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0023/0.5541, allocations: 1.536 MB / 0.6595 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.5562, allocations: 448.9 kB / 0.66 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/0.5701, allocations: 7.82 MB / 0.6676 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003407/0.5735, allocations: 2.807 MB / 0.6704 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008561/0.5743, allocations: 243.2 kB / 0.6706 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of SimCode: time 1.383e-06/0.5743, allocations: 4 kB / 0.6706 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of Templates: time 0.2824/0.8567, allocations: 98.51 MB / 0.7668 GB, free: 156.1 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.781186760868877] Failed to read output from testmodel.py, exit status != 0: 0.8644669111818075 0.87370047 0.553439605 Calling exit ...