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.001604/0.001604, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1944/0.1944, allocations: 9.117 MB / 299.5 MB, free: 1.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 67.89 kB / 361.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1064, allocations: 51.44 MB / 413.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2046/0.311, allocations: 9.721 MB / 423.1 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005882/0.317, allocations: 2.839 MB / 425.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.3187, allocations: 43.12 kB / 426 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.3201, allocations: 417.7 kB / 426.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004044/0.3242, allocations: 1.536 MB / 427.9 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007897/0.325, allocations: 176.8 kB / 428.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003633/0.3287, allocations: 2.843 MB / 430.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0019/0.3306, allocations: 1.074 MB / 432 MB, free: 35.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.3325, allocations: 1.029 MB / 433.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002116/0.3346, allocations: 1.459 MB / 434.5 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007312/0.3354, allocations: 259.2 kB / 434.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001934/0.3373, allocations: 0.867 MB / 435.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001009/0.3384, allocations: 1.353 MB / 437 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.3397, allocations: 1.759 MB / 438.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00422/0.3439, allocations: 5.2 MB / 443.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.344, allocations: 0 / 443.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.344, allocations: 0 / 443.9 MB, free: 30.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001073/0.3441, allocations: 3.938 kB / 443.9 MB, free: 30.31 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.01196/0.3561, allocations: 5.172 MB / 449.1 MB, free: 28.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.3561, allocations: 9.625 kB / 449.1 MB, free: 28.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006298/0.3624, allocations: 1.808 MB / 450.9 MB, free: 27.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002908/0.3654, allocations: 1.498 MB / 452.4 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.3656, allocations: 176.9 kB / 452.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009158/0.3665, allocations: 229.6 kB / 452.8 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01572/0.3822, allocations: 8.954 MB / 461.8 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001939/0.3825, allocations: 36.44 kB / 461.8 MB, free: 22.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008387/0.3833, allocations: 107.1 kB / 461.9 MB, free: 22.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003858/0.3872, allocations: 2.014 MB / 463.9 MB, free: 22.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01787/0.4051, allocations: 7.957 MB / 471.9 MB, free: 19.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04088/0.446, allocations: 28.56 MB / 0.4887 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007519/0.4536, allocations: 2.814 MB / 0.4915 GB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.4554, allocations: 0.9941 MB / 0.4924 GB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009398/0.4648, allocations: 6.455 MB / 0.4987 GB, free: 400 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.4648, allocations: 51.81 kB / 0.4988 GB, free: 340 kB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 4.268e-06/0.4649, allocations: 0 / 0.4988 GB, free: 340 kB / 366.1 MB Notification: Performance of matching and sorting (n=193): time 0.01598/0.4809, allocations: 6.49 MB / 0.5051 GB, free: 9.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.4809, allocations: 69.41 kB / 0.5052 GB, free: 9.754 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004816/0.4858, allocations: 3.027 MB / 0.5082 GB, free: 6.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001498/0.4859, allocations: 53.7 kB / 0.5082 GB, free: 6.652 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.4875, allocations: 2.348 MB / 0.5105 GB, free: 4.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006317/0.4881, allocations: 0.7142 MB / 0.5112 GB, free: 3.598 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.4895, allocations: 0.929 MB / 0.5121 GB, free: 2.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.4896, allocations: 301.1 kB / 0.5124 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0024/0.492, allocations: 1.497 MB / 0.5139 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004171/0.4962, allocations: 4.091 MB / 0.5178 GB, free: 11.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006841/0.5031, allocations: 6.029 MB / 0.5237 GB, free: 4.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-05/0.5032, allocations: 32 kB / 0.5238 GB, free: 4.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01119/0.5144, allocations: 5.964 MB / 0.5296 GB, free: 14.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.558e-05/0.5145, allocations: 45.72 kB / 0.5296 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000151/0.5147, allocations: 88 kB / 0.5297 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/0.5162, allocations: 0.5801 MB / 0.5303 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003042/0.5192, allocations: 1.01 MB / 0.5313 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.5294, allocations: 9.321 MB / 0.5404 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003441/0.5328, allocations: 242.3 kB / 0.5406 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007051/0.5336, allocations: 275.9 kB / 0.5409 GB, free: 2.23 MB / 414.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.003047/0.5366, allocations: 1.723 MB / 0.5425 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005597/0.5372, allocations: 264.9 kB / 0.5428 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004837/0.542, allocations: 2.682 MB / 0.5454 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001112/0.5422, allocations: 35.19 kB / 0.5455 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.785e-05/0.5422, allocations: 11.94 kB / 0.5455 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.5422, allocations: 11.91 kB / 0.5455 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/0.5554, allocations: 7.314 MB / 0.5526 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/0.5555, allocations: 4 kB / 0.5526 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000889/0.5564, allocations: 239.7 kB / 0.5529 GB, free: 5.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.5575, allocations: 457.5 kB / 0.5533 GB, free: 5.414 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.5576, allocations: 39.98 kB / 0.5533 GB, free: 5.375 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00803/0.5657, allocations: 7.862 MB / 0.561 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.5657, allocations: 4 kB / 0.561 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006052/0.5718, allocations: 4.005 MB / 0.5649 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009473/0.5727, allocations: 337.7 kB / 0.5652 GB, free: 8.652 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006793/0.5734, allocations: 39.12 kB / 0.5653 GB, free: 8.617 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.5748, allocations: 80.19 kB / 0.5654 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/0.5751, allocations: 125.1 kB / 0.5655 GB, free: 8.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.5752, allocations: 59.98 kB / 0.5655 GB, free: 8.355 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004068/0.5793, allocations: 1.936 MB / 0.5674 GB, free: 6.414 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5793, allocations: 0 / 0.5674 GB, free: 6.414 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005495/0.5848, allocations: 0.838 MB / 0.5682 GB, free: 5.578 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.0004987/0.5853, allocations: 170 kB / 0.5684 GB, free: 5.406 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0101/0.5954, allocations: 5.726 MB / 0.574 GB, free: 15.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/0.5955, allocations: 4 kB / 0.574 GB, free: 15.67 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002363/0.5978, allocations: 1.601 MB / 0.5756 GB, free: 14.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/0.6007, allocations: 445.3 kB / 0.576 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/0.6142, allocations: 7.335 MB / 0.5831 GB, free: 6.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004439/0.6187, allocations: 2.805 MB / 0.5859 GB, free: 3.383 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003739/0.6225, allocations: 1.317 MB / 0.5872 GB, free: 2.059 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000651/0.6231, allocations: 195.4 kB / 0.5874 GB, free: 1.867 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6232, allocations: 0 / 0.5874 GB, free: 1.867 MB / 462.1 MB Notification: Performance of Templates: time 0.2394/0.8626, allocations: 32.17 MB / 0.6188 GB, free: 130.6 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)