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.001022/0.001022, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001255/0.001255, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1931/0.1931, allocations: 9.115 MB / 300.2 MB, free: 2.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004041/0.0004042, allocations: 8 kB / 363.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1312, allocations: 52.44 MB / 415.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2378/0.3691, allocations: 35.93 MB / 451.5 MB, free: 22.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.3845, allocations: 8.076 MB / 459.6 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00736/0.3919, allocations: 149.4 kB / 459.7 MB, free: 16.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008071/0.4, allocations: 1.779 MB / 461.5 MB, free: 16.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02231/0.4224, allocations: 6.202 MB / 467.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002714/0.4252, allocations: 172.6 kB / 467.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004359/0.4296, allocations: 3.149 MB / 471 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.4312, allocations: 0.9501 MB / 471.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001524/0.4327, allocations: 0.9032 MB / 472.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002396/0.4351, allocations: 1.443 MB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005179/0.4357, allocations: 154.8 kB / 474.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.4372, allocations: 0.684 MB / 475.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.4385, allocations: 1.227 MB / 476.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007602/0.4393, allocations: 0.7051 MB / 477.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005943/0.4453, allocations: 4.003 MB / 481.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4453, allocations: 0 / 481.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4453, allocations: 1.406 kB / 481.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002273/0.4455, allocations: 4 kB / 481.1 MB, free: 8.848 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.01684/0.4624, allocations: 4.478 MB / 485.5 MB, free: 7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/0.4625, allocations: 8.25 kB / 485.6 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01175/0.4742, allocations: 1.852 MB / 487.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005686/0.48, allocations: 1.471 MB / 488.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.4802, allocations: 170 kB / 489 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/0.4815, allocations: 232.7 kB / 489.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02983/0.5114, allocations: 8.937 MB / 498.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003322/0.5118, allocations: 29.44 kB / 498.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001734/0.5136, allocations: 116.5 kB / 498.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007687/0.5213, allocations: 2.011 MB / 0.4886 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03182/0.5532, allocations: 7.932 MB / 0.4964 GB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05275/0.606, allocations: 28.55 MB / 0.5243 GB, free: 9.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007321/0.6133, allocations: 2.811 MB / 0.527 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/0.6151, allocations: 0.982 MB / 0.528 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00968/0.6248, allocations: 6.467 MB / 0.5343 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.6249, allocations: 43.88 kB / 0.5343 GB, free: 14.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.067e-06/0.6249, allocations: 0 / 0.5343 GB, free: 14.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01864/0.6435, allocations: 6.471 MB / 0.5406 GB, free: 8.023 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.382e-05/0.6437, allocations: 69.41 kB / 0.5407 GB, free: 7.941 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008005/0.6517, allocations: 3.011 MB / 0.5436 GB, free: 4.918 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004193/0.6522, allocations: 49.7 kB / 0.5437 GB, free: 4.863 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002682/0.6549, allocations: 2.354 MB / 0.546 GB, free: 2.477 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001154/0.656, allocations: 0.7054 MB / 0.5467 GB, free: 1.762 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005414/0.6566, allocations: 99.98 kB / 0.5468 GB, free: 1.664 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0004863/0.6571, allocations: 0.5005 MB / 0.5473 GB, free: 1.156 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003217/0.6603, allocations: 1.481 MB / 0.5487 GB, free: 15.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005057/0.6654, allocations: 4.062 MB / 0.5527 GB, free: 10.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004133/0.6696, allocations: 2.448 MB / 0.5551 GB, free: 7.883 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.758e-05/0.6697, allocations: 24 kB / 0.5551 GB, free: 7.859 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01099/0.6806, allocations: 5.93 MB / 0.5609 GB, free: 1.914 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.469e-05/0.6808, allocations: 47.94 kB / 0.5609 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/0.6809, allocations: 92 kB / 0.561 GB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/0.6824, allocations: 0.5857 MB / 0.5616 GB, free: 1.184 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00311/0.6855, allocations: 0.9981 MB / 0.5626 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.6959, allocations: 8.522 MB / 0.5709 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003373/0.6993, allocations: 243.9 kB / 0.5711 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000755/0.7001, allocations: 268.5 kB / 0.5714 GB, free: 6.754 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,56.0%) 19,(2,100.0%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.003609/0.7037, allocations: 1.728 MB / 0.5731 GB, free: 5.012 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005297/0.7043, allocations: 264.5 kB / 0.5733 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005297/0.7096, allocations: 2.656 MB / 0.5759 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001161/0.7097, allocations: 27.98 kB / 0.5759 GB, free: 2.043 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-05/0.7098, allocations: 7.938 kB / 0.5759 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.121e-05/0.7098, allocations: 7.969 kB / 0.576 GB, free: 2.027 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2414/0.9513, allocations: 7.304 MB / 0.5831 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.9513, allocations: 3.125 kB / 0.5831 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008091/0.9521, allocations: 243 kB / 0.5833 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.9532, allocations: 447.2 kB / 0.5837 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.9533, allocations: 39.77 kB / 0.5838 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006772/0.9601, allocations: 7.209 MB / 0.5908 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.9601, allocations: 4.781 kB / 0.5908 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005458/0.9656, allocations: 3.977 MB / 0.5947 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.9666, allocations: 361.6 kB / 0.5951 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003109/0.967, allocations: 30.33 kB / 0.5951 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009154/0.9679, allocations: 84.38 kB / 0.5952 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.9681, allocations: 126.2 kB / 0.5953 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.9683, allocations: 53.77 kB / 0.5953 GB, free: 114.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003205/0.9715, allocations: 1.919 MB / 0.5972 GB, free: 113.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.9715, allocations: 0 / 0.5972 GB, free: 113.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00518/0.9767, allocations: 0.8322 MB / 0.598 GB, free: 113.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,56.0%) 15,(2,100.0%) 6} * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004856/0.9772, allocations: 176.1 kB / 0.5982 GB, free: 113.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00719/0.9844, allocations: 4.093 MB / 0.6022 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.9844, allocations: 3.219 kB / 0.6022 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/0.9866, allocations: 1.589 MB / 0.6037 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/0.9894, allocations: 430.5 kB / 0.6042 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/1.003, allocations: 8.674 MB / 0.6126 GB, free: 106.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003322/1.007, allocations: 2.811 MB / 0.6154 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003643/1.01, allocations: 1.33 MB / 0.6167 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005349/1.011, allocations: 198.1 kB / 0.6169 GB, free: 105.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.723e-06/1.011, allocations: 0 / 0.6169 GB, free: 105.2 MB / 446.1 MB Notification: Performance of Templates: time 0.05846/1.069, allocations: 29.95 MB / 0.6461 GB, free: 90.57 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)