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.001553/0.001553, 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.001654/0.001654, allocations: 208.1 kB / 22.24 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.497/1.497, 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.0514/0.0514, allocations: 9.238 MB / 321.7 MB, free: 9.867 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.002121/0.002121, allocations: 71.89 kB / 448.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1054, allocations: 55.46 MB / 0.4918 GB, free: 6.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01123/0.1166, allocations: 8.513 MB / 0.5001 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006118/0.1227, allocations: 2.749 MB / 0.5028 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009638/0.1237, allocations: 47.81 kB / 0.5029 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008916/0.1246, allocations: 433 kB / 0.5033 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.128, allocations: 1.579 MB / 0.5048 GB, free: 9.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.1284, allocations: 183.7 kB / 0.505 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003392/0.1318, allocations: 2.823 MB / 0.5077 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.1331, allocations: 0.8879 MB / 0.5086 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00138/0.1345, allocations: 1.047 MB / 0.5096 GB, free: 4.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001946/0.1364, allocations: 1.518 MB / 0.5111 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004027/0.1368, allocations: 260 kB / 0.5114 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001674/0.1385, allocations: 0.7879 MB / 0.5121 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001426/0.1399, allocations: 1.367 MB / 0.5135 GB, free: 284 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2032/0.3432, allocations: 1.235 MB / 0.5147 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00516/0.3483, allocations: 5.478 MB / 0.52 GB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3483, allocations: 0 / 0.52 GB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3483, allocations: 0.9062 kB / 0.52 GB, free: 9.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.145e-05/0.3484, allocations: 0 / 0.52 GB, free: 9.789 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.01168/0.3601, allocations: 5.231 MB / 0.5251 GB, free: 8.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3601, allocations: 10.39 kB / 0.5251 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006641/0.3668, allocations: 1.836 MB / 0.5269 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002862/0.3696, allocations: 1.456 MB / 0.5284 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.3698, allocations: 172.7 kB / 0.5285 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004572/0.3702, allocations: 240 kB / 0.5288 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01411/0.3843, allocations: 8.944 MB / 0.5375 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.56e-05/0.3844, allocations: 42.83 kB / 0.5375 GB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003307/0.3848, allocations: 111.3 kB / 0.5376 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003235/0.388, allocations: 2.01 MB / 0.5396 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/0.4025, allocations: 7.947 MB / 0.5474 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04167/0.4442, allocations: 26 MB / 0.5727 GB, free: 8.953 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007333/0.4515, allocations: 2.268 MB / 0.575 GB, free: 6.688 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/0.4533, allocations: 0.9193 MB / 0.5759 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008871/0.4621, allocations: 3.711 MB / 0.5795 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.4622, allocations: 55.05 kB / 0.5795 GB, free: 2.016 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.328e-06/0.4622, allocations: 0 / 0.5795 GB, free: 2.016 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01766/0.4799, allocations: 6.403 MB / 0.5858 GB, free: 11.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.4799, allocations: 73.41 kB / 0.5859 GB, free: 11.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004568/0.4845, allocations: 2.573 MB / 0.5884 GB, free: 8.969 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.4846, allocations: 57.7 kB / 0.5884 GB, free: 8.906 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.4867, allocations: 2.482 MB / 0.5909 GB, free: 6.434 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007991/0.4875, allocations: 0.7348 MB / 0.5916 GB, free: 5.707 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001735/0.4892, allocations: 0.9546 MB / 0.5925 GB, free: 4.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.4894, allocations: 349.9 kB / 0.5928 GB, free: 4.402 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002868/0.4923, allocations: 1.5 MB / 0.5943 GB, free: 2.895 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005115/0.4974, allocations: 4.084 MB / 0.5983 GB, free: 13.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008187/0.5056, allocations: 6.032 MB / 0.6042 GB, free: 6.648 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.747e-05/0.5057, allocations: 24 kB / 0.6042 GB, free: 6.625 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.012/0.5177, allocations: 5.927 MB / 0.61 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.396e-05/0.5178, allocations: 44 kB / 0.61 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001536/0.5179, allocations: 91.94 kB / 0.6101 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001604/0.5195, allocations: 0.5775 MB / 0.6107 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003299/0.5228, allocations: 1.002 MB / 0.6117 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/0.5357, allocations: 8.862 MB / 0.6203 GB, free: 5.945 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003742/0.5394, allocations: 243.9 kB / 0.6206 GB, free: 5.707 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.5404, allocations: 279.9 kB / 0.6208 GB, free: 5.438 MB / 462.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.004261/0.5447, allocations: 1.725 MB / 0.6225 GB, free: 3.703 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006513/0.5454, allocations: 230.5 kB / 0.6227 GB, free: 3.477 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005606/0.551, allocations: 2.608 MB / 0.6253 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001197/0.5511, allocations: 31.98 kB / 0.6253 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/0.5511, allocations: 4 kB / 0.6253 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.5511, allocations: 7.969 kB / 0.6253 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/0.5657, allocations: 6.058 MB / 0.6312 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.5657, allocations: 4 kB / 0.6312 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00098/0.5667, allocations: 244.2 kB / 0.6315 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00125/0.5679, allocations: 441.5 kB / 0.6319 GB, free: 9.992 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/0.5681, allocations: 43.98 kB / 0.6319 GB, free: 9.949 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009709/0.5778, allocations: 7.43 MB / 0.6392 GB, free: 2.223 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/0.5778, allocations: 11.94 kB / 0.6392 GB, free: 2.211 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007238/0.585, allocations: 3.94 MB / 0.643 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007944/0.5858, allocations: 214.5 kB / 0.6432 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005478/0.5864, allocations: 39.94 kB / 0.6433 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.5875, allocations: 83.97 kB / 0.6434 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000294/0.5878, allocations: 132.9 kB / 0.6435 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/0.588, allocations: 63.03 kB / 0.6436 GB, free: 13.67 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003302/0.5913, allocations: 1.496 MB / 0.645 GB, free: 12.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5913, allocations: 0 / 0.645 GB, free: 12.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004268/0.5955, allocations: 0.8046 MB / 0.6458 GB, free: 11.35 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.0004443/0.596, allocations: 162 kB / 0.646 GB, free: 11.19 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007535/0.6035, allocations: 3.999 MB / 0.6499 GB, free: 7.172 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.6035, allocations: 4.062 kB / 0.6499 GB, free: 7.168 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.6061, allocations: 1.537 MB / 0.6514 GB, free: 5.594 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.608, allocations: 305 kB / 0.6517 GB, free: 5.301 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01515/0.6231, allocations: 7.357 MB / 0.6588 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004408/0.6276, allocations: 2.259 MB / 0.661 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003375/0.6309, allocations: 1.263 MB / 0.6623 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005889/0.6315, allocations: 175.4 kB / 0.6624 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of SimCode: time 1.332e-06/0.6315, allocations: 0 / 0.6624 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of Templates: time 0.05649/0.688, allocations: 26.7 MB / 0.6885 GB, free: 15.87 MB / 0.5294 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: 6.243736319243908] Failed to read output from testmodel.py, exit status != 0: 0.6970192547887564 0.7113331469999999 0.359869817 Calling exit ...