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.01038/0.01038, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002042/0.002042, allocations: 195.8 kB / 16.67 MB, free: 5.52 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04407/0.04407, allocations: 9.132 MB / 299.7 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002421/0.002421, allocations: 63.91 kB / 414.6 MB, free: 21.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1378, allocations: 51.43 MB / 466.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01102/0.1489, allocations: 9.728 MB / 475.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006937/0.1559, allocations: 2.841 MB / 478.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.1573, allocations: 39.88 kB / 478.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.1584, allocations: 425.1 kB / 479.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00383/0.1623, allocations: 1.529 MB / 480.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.1629, allocations: 183.7 kB / 480.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003389/0.1663, allocations: 2.856 MB / 483.7 MB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001288/0.1676, allocations: 1.075 MB / 484.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001296/0.1689, allocations: 1.031 MB / 485.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.1706, allocations: 1.456 MB / 487.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004465/0.1711, allocations: 264 kB / 487.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.1728, allocations: 0.8659 MB / 488.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00124/0.174, allocations: 1.356 MB / 489.7 MB, free: 9.945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001885/0.1759, allocations: 1.755 MB / 491.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006128/0.1821, allocations: 5.469 MB / 496.9 MB, free: 2.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.1821, allocations: 7.984 kB / 496.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1821, allocations: 7.938 kB / 496.9 MB, free: 2.676 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001426/0.1823, allocations: 0 / 496.9 MB, free: 2.676 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.01393/0.1962, allocations: 5.166 MB / 0.4903 GB, free: 13.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/0.1963, allocations: 12.03 kB / 0.4904 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006275/0.2026, allocations: 1.798 MB / 0.4921 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003496/0.2061, allocations: 1.514 MB / 0.4936 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.2063, allocations: 176.2 kB / 0.4938 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00059/0.2069, allocations: 227.8 kB / 0.494 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/0.2222, allocations: 8.956 MB / 0.5027 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.815e-05/0.2223, allocations: 31.72 kB / 0.5027 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003385/0.2226, allocations: 103.9 kB / 0.5028 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2582/0.4808, allocations: 2.01 MB / 0.5048 GB, free: 41.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01713/0.498, allocations: 7.964 MB / 0.5126 GB, free: 38.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03246/0.5305, allocations: 28.48 MB / 0.5404 GB, free: 17.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005789/0.5363, allocations: 2.823 MB / 0.5432 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001161/0.5375, allocations: 0.9921 MB / 0.5441 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006404/0.5439, allocations: 6.45 MB / 0.5504 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.544, allocations: 51.88 kB / 0.5505 GB, free: 6.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.116e-06/0.544, allocations: 7.938 kB / 0.5505 GB, free: 6.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01376/0.5577, allocations: 6.483 MB / 0.5568 GB, free: 15.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.5578, allocations: 69.41 kB / 0.5569 GB, free: 15.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005647/0.5635, allocations: 3.019 MB / 0.5598 GB, free: 12.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003517/0.5639, allocations: 54.92 kB / 0.5599 GB, free: 12.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002471/0.5664, allocations: 2.357 MB / 0.5622 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008997/0.5673, allocations: 0.7112 MB / 0.5629 GB, free: 9.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.5686, allocations: 0.9288 MB / 0.5638 GB, free: 8.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5688, allocations: 301.1 kB / 0.5641 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002445/0.5712, allocations: 1.504 MB / 0.5655 GB, free: 6.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004285/0.5755, allocations: 4.08 MB / 0.5695 GB, free: 1.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007408/0.583, allocations: 6.031 MB / 0.5754 GB, free: 10.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.615e-05/0.583, allocations: 28 kB / 0.5754 GB, free: 10.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01038/0.5934, allocations: 5.961 MB / 0.5813 GB, free: 4.184 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.498e-05/0.5935, allocations: 45.03 kB / 0.5813 GB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/0.5937, allocations: 96 kB / 0.5814 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.5952, allocations: 0.576 MB / 0.582 GB, free: 3.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/0.5983, allocations: 1.01 MB / 0.5829 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.6091, allocations: 9.307 MB / 0.592 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003488/0.6126, allocations: 235.9 kB / 0.5923 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005111/0.6131, allocations: 284 kB / 0.5925 GB, free: 8.223 MB / 430.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.002765/0.6159, allocations: 1.727 MB / 0.5942 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004335/0.6164, allocations: 264.5 kB / 0.5945 GB, free: 6.223 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004913/0.6213, allocations: 2.658 MB / 0.5971 GB, free: 3.543 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001128/0.6214, allocations: 39.97 kB / 0.5971 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.6214, allocations: 8 kB / 0.5971 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.6215, allocations: 8.094 kB / 0.5971 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.6347, allocations: 7.244 MB / 0.6042 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.6348, allocations: 4 kB / 0.6042 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008874/0.6357, allocations: 240.2 kB / 0.6044 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/0.6368, allocations: 454.2 kB / 0.6049 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.6369, allocations: 39.98 kB / 0.6049 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008545/0.6455, allocations: 7.872 MB / 0.6126 GB, free: 3.121 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.6455, allocations: 4 kB / 0.6126 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006035/0.6516, allocations: 3.989 MB / 0.6165 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008993/0.6525, allocations: 345.7 kB / 0.6168 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002795/0.6528, allocations: 36 kB / 0.6168 GB, free: 14.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008892/0.6537, allocations: 79.91 kB / 0.6169 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002617/0.654, allocations: 125 kB / 0.617 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.6541, allocations: 67.92 kB / 0.6171 GB, free: 14.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002953/0.657, allocations: 1.932 MB / 0.619 GB, free: 12.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6571, allocations: 0 / 0.619 GB, free: 12.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003822/0.6609, allocations: 0.8346 MB / 0.6198 GB, free: 11.61 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.0004008/0.6613, allocations: 168.3 kB / 0.62 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006861/0.6682, allocations: 4.149 MB / 0.624 GB, free: 7.285 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.6682, allocations: 0 / 0.624 GB, free: 7.285 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00233/0.6705, allocations: 1.601 MB / 0.6256 GB, free: 5.645 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.6728, allocations: 440.6 kB / 0.626 GB, free: 5.227 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.6851, allocations: 7.244 MB / 0.6331 GB, free: 13.93 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003093/0.6882, allocations: 2.808 MB / 0.6358 GB, free: 11.09 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002995/0.6912, allocations: 1.329 MB / 0.6371 GB, free: 9.754 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004383/0.6917, allocations: 195.4 kB / 0.6373 GB, free: 9.562 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6917, allocations: 0 / 0.6373 GB, free: 9.562 MB / 478.1 MB Notification: Performance of Templates: time 0.05449/0.7462, allocations: 29.75 MB / 0.6664 GB, free: 11.95 MB / 0.4981 GB 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)