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.007711/0.00771, allocations: 96.25 kB / 15.73 MB, free: 6 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.001336/0.001336, allocations: 185.4 kB / 16.67 MB, free: 5.93 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2147/0.2147, allocations: 9.114 MB / 299.6 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.89 kB / 414.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2737, allocations: 51.43 MB / 466.1 MB, free: 18.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.008993/0.2827, allocations: 9.717 MB / 475.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005452/0.2882, allocations: 2.845 MB / 478.6 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.2893, allocations: 39.38 kB / 478.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.2904, allocations: 419.5 kB / 479.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003121/0.2935, allocations: 1.582 MB / 480.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.294, allocations: 183 kB / 480.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00319/0.2972, allocations: 2.862 MB / 483.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.2984, allocations: 1.072 MB / 484.8 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001897/0.3003, allocations: 1.033 MB / 485.8 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002017/0.3024, allocations: 1.464 MB / 487.3 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004792/0.3029, allocations: 259.5 kB / 487.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00183/0.3047, allocations: 0.8581 MB / 488.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001234/0.306, allocations: 1.352 MB / 489.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001351/0.3073, allocations: 1.762 MB / 491.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005829/0.3131, allocations: 5.493 MB / 497 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3132, allocations: 0 / 497 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3132, allocations: 3.938 kB / 497 MB, free: 13.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.969e-05/0.3133, allocations: 4 kB / 497 MB, free: 13.15 MB / 366.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.01221/0.3255, allocations: 5.273 MB / 0.4905 GB, free: 7.805 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3256, allocations: 12.03 kB / 0.4905 GB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006897/0.3325, allocations: 1.82 MB / 0.4923 GB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004146/0.3366, allocations: 1.515 MB / 0.4938 GB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.3368, allocations: 172.3 kB / 0.4939 GB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005742/0.3374, allocations: 227.8 kB / 0.4942 GB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/0.3512, allocations: 8.96 MB / 0.5029 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.708e-05/0.3513, allocations: 27.77 kB / 0.5029 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003057/0.3516, allocations: 107.8 kB / 0.503 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00314/0.3547, allocations: 2.017 MB / 0.505 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01656/0.3713, allocations: 7.975 MB / 0.5128 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04457/0.4159, allocations: 28.53 MB / 0.5407 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007462/0.4234, allocations: 2.81 MB / 0.5434 GB, free: 396 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001888/0.4254, allocations: 0.9896 MB / 0.5444 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.4368, allocations: 6.472 MB / 0.5507 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.4369, allocations: 47.88 kB / 0.5507 GB, free: 8.242 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.308e-06/0.4369, allocations: 0 / 0.5507 GB, free: 8.242 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01628/0.4532, allocations: 6.551 MB / 0.5571 GB, free: 1.672 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.4533, allocations: 73.34 kB / 0.5572 GB, free: 1.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005286/0.4586, allocations: 3.035 MB / 0.5602 GB, free: 14.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001971/0.4588, allocations: 57.64 kB / 0.5602 GB, free: 14.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001685/0.4605, allocations: 2.442 MB / 0.5626 GB, free: 12.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007848/0.4613, allocations: 0.7441 MB / 0.5633 GB, free: 11.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/0.4631, allocations: 0.9335 MB / 0.5642 GB, free: 10.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.4632, allocations: 305.1 kB / 0.5645 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002635/0.4658, allocations: 1.504 MB / 0.566 GB, free: 8.508 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004351/0.4702, allocations: 4.078 MB / 0.57 GB, free: 3.152 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00787/0.4781, allocations: 6.041 MB / 0.5759 GB, free: 11.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001959/0.4783, allocations: 28 kB / 0.5759 GB, free: 11.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01306/0.4914, allocations: 5.978 MB / 0.5817 GB, free: 5.832 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.4915, allocations: 46.5 kB / 0.5818 GB, free: 5.789 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/0.4917, allocations: 92 kB / 0.5819 GB, free: 5.699 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.4932, allocations: 0.58 MB / 0.5824 GB, free: 5.109 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003405/0.4966, allocations: 0.9982 MB / 0.5834 GB, free: 4.109 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3169/0.8136, allocations: 9.307 MB / 0.5925 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003861/0.8175, allocations: 241.7 kB / 0.5927 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007971/0.8183, allocations: 274.9 kB / 0.593 GB, free: 104.3 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.004126/0.8224, allocations: 1.732 MB / 0.5947 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008219/0.8233, allocations: 280.6 kB / 0.595 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006119/0.8294, allocations: 2.658 MB / 0.5976 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001322/0.8295, allocations: 30.17 kB / 0.5976 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.8296, allocations: 7.125 kB / 0.5976 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.218e-05/0.8296, allocations: 14.48 kB / 0.5976 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/0.8428, allocations: 7.256 MB / 0.6047 GB, free: 99.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.8428, allocations: 5.344 kB / 0.6047 GB, free: 99.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008472/0.8437, allocations: 244 kB / 0.6049 GB, free: 99.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.8447, allocations: 451.3 kB / 0.6054 GB, free: 99.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.607e-05/0.8448, allocations: 41 kB / 0.6054 GB, free: 99.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008142/0.853, allocations: 7.863 MB / 0.6131 GB, free: 94.19 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.853, allocations: 5.531 kB / 0.6131 GB, free: 94.19 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005919/0.8589, allocations: 4.014 MB / 0.617 GB, free: 92.64 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.8602, allocations: 357.9 kB / 0.6173 GB, free: 92.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003195/0.8605, allocations: 32.38 kB / 0.6174 GB, free: 92.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009509/0.8615, allocations: 81.06 kB / 0.6175 GB, free: 92.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/0.8618, allocations: 130.2 kB / 0.6176 GB, free: 92.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/0.862, allocations: 57.83 kB / 0.6176 GB, free: 92.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003909/0.8659, allocations: 1.935 MB / 0.6195 GB, free: 91.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8659, allocations: 2 kB / 0.6195 GB, free: 91.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004305/0.8702, allocations: 0.8382 MB / 0.6203 GB, free: 91.5 MB / 462.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.000367/0.8706, allocations: 170.5 kB / 0.6205 GB, free: 91.37 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00621/0.8768, allocations: 4.144 MB / 0.6246 GB, free: 89.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.8768, allocations: 3.062 kB / 0.6246 GB, free: 89.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002081/0.8789, allocations: 1.607 MB / 0.6261 GB, free: 88.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.8811, allocations: 439 kB / 0.6265 GB, free: 88.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.8918, allocations: 7.354 MB / 0.6337 GB, free: 83.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002344/0.8941, allocations: 2.812 MB / 0.6365 GB, free: 80.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002594/0.8967, allocations: 1.317 MB / 0.6378 GB, free: 79.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.8971, allocations: 195.4 kB / 0.6379 GB, free: 78.94 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8971, allocations: 0 / 0.6379 GB, free: 78.94 MB / 462.1 MB Notification: Performance of Templates: time 0.04958/0.9467, allocations: 29.76 MB / 0.667 GB, free: 49.39 MB / 462.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)