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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 196.3 kB / 16.14 MB, free: 6.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 222.9 MB / 239.8 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2254/0.2254, allocations: 9.127 MB / 299.1 MB, free: 1.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002372/0.002372, allocations: 63.84 kB / 361.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1489, allocations: 51.42 MB / 412.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2413/0.3903, allocations: 39.68 MB / 452.4 MB, free: 20.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.4093, allocations: 8.415 MB / 460.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008245/0.4175, allocations: 155.1 kB / 460.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.4186, allocations: 342.4 kB / 461.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003394/0.4221, allocations: 1.428 MB / 462.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.4226, allocations: 159.4 kB / 462.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004054/0.4266, allocations: 3.916 MB / 466.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001782/0.4285, allocations: 0.9748 MB / 467.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.4303, allocations: 0.8871 MB / 468.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.4322, allocations: 1.474 MB / 470.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003482/0.4326, allocations: 161.4 kB / 470.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00137/0.434, allocations: 0.8051 MB / 471.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.435, allocations: 1.27 MB / 472.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001762/0.4368, allocations: 1.668 MB / 474 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005825/0.4426, allocations: 5.042 MB / 479.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4427, allocations: 1.469 kB / 479.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.4427, allocations: 0 / 479.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001478/0.4428, allocations: 4 kB / 479.1 MB, free: 7.145 MB / 350.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.01414/0.457, allocations: 5.167 MB / 484.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.457, allocations: 9.312 kB / 484.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006909/0.4639, allocations: 1.811 MB / 486.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003788/0.4678, allocations: 1.501 MB / 487.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.4679, allocations: 177.7 kB / 487.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005459/0.4685, allocations: 230.2 kB / 488 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0165/0.485, allocations: 8.954 MB / 496.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.105e-05/0.4851, allocations: 23.8 kB / 496.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003403/0.4855, allocations: 114.4 kB / 497 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003235/0.4887, allocations: 2.013 MB / 499.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01862/0.5074, allocations: 7.965 MB / 0.4951 GB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04998/0.5574, allocations: 28.56 MB / 0.523 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007803/0.5652, allocations: 2.821 MB / 0.5258 GB, free: 5.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.567, allocations: 0.9902 MB / 0.5267 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.5794, allocations: 6.457 MB / 0.5331 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.875e-05/0.5795, allocations: 47.88 kB / 0.5331 GB, free: 13.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 5.881e-06/0.5795, allocations: 0 / 0.5331 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01715/0.5966, allocations: 6.474 MB / 0.5394 GB, free: 7.371 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.5967, allocations: 69.41 kB / 0.5395 GB, free: 7.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005497/0.6022, allocations: 3.027 MB / 0.5424 GB, free: 4.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/0.6024, allocations: 61.69 kB / 0.5425 GB, free: 4.184 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001652/0.6041, allocations: 2.354 MB / 0.5448 GB, free: 1.797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007437/0.6048, allocations: 0.7093 MB / 0.5455 GB, free: 1.078 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/0.6063, allocations: 0.925 MB / 0.5464 GB, free: 144 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.6064, allocations: 305.1 kB / 0.5467 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002546/0.609, allocations: 1.5 MB / 0.5482 GB, free: 14.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004636/0.6137, allocations: 4.086 MB / 0.5521 GB, free: 8.969 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007418/0.6211, allocations: 6.043 MB / 0.558 GB, free: 1.668 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.039e-05/0.6212, allocations: 28 kB / 0.5581 GB, free: 1.641 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01141/0.6326, allocations: 5.969 MB / 0.5639 GB, free: 11.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.105e-05/0.6327, allocations: 44 kB / 0.5639 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001479/0.6329, allocations: 88 kB / 0.564 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/0.6345, allocations: 0.5763 MB / 0.5646 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/0.6377, allocations: 1.006 MB / 0.5656 GB, free: 9.941 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.649, allocations: 8.514 MB / 0.5739 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003831/0.6529, allocations: 243.8 kB / 0.5741 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001079/0.654, allocations: 280 kB / 0.5744 GB, free: 0.5 MB / 446.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.2529/0.9069, allocations: 1.713 MB / 0.5761 GB, free: 92.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007437/0.9077, allocations: 265.9 kB / 0.5763 GB, free: 92.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005222/0.9129, allocations: 2.667 MB / 0.5789 GB, free: 92.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/0.913, allocations: 30.91 kB / 0.5789 GB, free: 92.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.93e-05/0.9131, allocations: 4.844 kB / 0.5789 GB, free: 92.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/0.9131, allocations: 9.281 kB / 0.579 GB, free: 92.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.9274, allocations: 7.325 MB / 0.5861 GB, free: 91.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.9275, allocations: 3.75 kB / 0.5861 GB, free: 91.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008928/0.9284, allocations: 237.7 kB / 0.5863 GB, free: 91.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.9295, allocations: 460.4 kB / 0.5868 GB, free: 91.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/0.9297, allocations: 33.31 kB / 0.5868 GB, free: 91.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006454/0.9361, allocations: 7.207 MB / 0.5939 GB, free: 87.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.9362, allocations: 13.16 kB / 0.5939 GB, free: 87.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.9415, allocations: 3.991 MB / 0.5978 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00082/0.9424, allocations: 347.3 kB / 0.5981 GB, free: 85.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006177/0.943, allocations: 33.08 kB / 0.5981 GB, free: 85.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.9442, allocations: 84.17 kB / 0.5982 GB, free: 85.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.9445, allocations: 125.8 kB / 0.5983 GB, free: 85.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.9446, allocations: 61.22 kB / 0.5984 GB, free: 85.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003096/0.9477, allocations: 1.942 MB / 0.6003 GB, free: 85.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9477, allocations: 0 / 0.6003 GB, free: 85.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004264/0.952, allocations: 0.8291 MB / 0.6011 GB, free: 85.1 MB / 446.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.000389/0.9524, allocations: 170.9 kB / 0.6013 GB, free: 84.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006714/0.9591, allocations: 4.118 MB / 0.6053 GB, free: 83.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.9591, allocations: 1.094 kB / 0.6053 GB, free: 83.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002791/0.9619, allocations: 1.595 MB / 0.6068 GB, free: 82.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003149/0.9651, allocations: 421.9 kB / 0.6072 GB, free: 82.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.9797, allocations: 9.015 MB / 0.616 GB, free: 77.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004344/0.9841, allocations: 2.809 MB / 0.6188 GB, free: 76.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004641/0.9887, allocations: 1.326 MB / 0.6201 GB, free: 76.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000907/0.9897, allocations: 198.5 kB / 0.6203 GB, free: 76.38 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.9897, allocations: 2.625 kB / 0.6203 GB, free: 76.38 MB / 446.1 MB Notification: Performance of Templates: time 0.04975/1.039, allocations: 31.04 MB / 0.6506 GB, free: 53 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile (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)