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.001253/0.001253, 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.001293/0.001293, allocations: 194 kB / 16.14 MB, free: 6.711 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.44/1.44, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1887/0.1887, allocations: 9.107 MB / 299.1 MB, free: 1.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 63.89 kB / 361.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.114, allocations: 51.42 MB / 412.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2453/0.3594, allocations: 39.68 MB / 452.4 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01975/0.3792, allocations: 8.422 MB / 460.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01027/0.3896, allocations: 151.4 kB / 460.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.391, allocations: 347.2 kB / 461.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004282/0.3953, allocations: 1.427 MB / 462.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007819/0.3961, allocations: 152.5 kB / 462.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004272/0.4004, allocations: 3.922 MB / 466.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.4021, allocations: 0.9769 MB / 467.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.4037, allocations: 0.8821 MB / 468.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002066/0.4058, allocations: 1.482 MB / 470.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005731/0.4064, allocations: 156.6 kB / 470.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.4081, allocations: 0.8063 MB / 471.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.4093, allocations: 1.264 MB / 472.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0019/0.4113, allocations: 1.669 MB / 474 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006848/0.4181, allocations: 5.045 MB / 479.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4182, allocations: 3.625 kB / 479.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4182, allocations: 0 / 479.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002466/0.4184, allocations: 0 / 479.1 MB, free: 7.125 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.01873/0.4372, allocations: 5.167 MB / 484.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.4372, allocations: 10.19 kB / 484.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008134/0.4454, allocations: 1.808 MB / 486.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005147/0.4506, allocations: 1.498 MB / 487.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.4509, allocations: 173.9 kB / 487.7 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001486/0.4524, allocations: 233.7 kB / 487.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02259/0.475, allocations: 8.952 MB / 496.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002288/0.4753, allocations: 38.94 kB / 496.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001446/0.4767, allocations: 110.1 kB / 497 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004674/0.4814, allocations: 2.012 MB / 499.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02189/0.5034, allocations: 7.967 MB / 0.4951 GB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0545/0.5579, allocations: 28.55 MB / 0.523 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008506/0.5665, allocations: 2.829 MB / 0.5258 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.5689, allocations: 0.9903 MB / 0.5267 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/0.5823, allocations: 6.464 MB / 0.5331 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.5823, allocations: 43.88 kB / 0.5331 GB, free: 13.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 5.911e-06/0.5824, allocations: 0 / 0.5331 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01984/0.6022, allocations: 6.474 MB / 0.5394 GB, free: 7.422 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.6023, allocations: 69.41 kB / 0.5395 GB, free: 7.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006609/0.6089, allocations: 3.031 MB / 0.5425 GB, free: 4.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003421/0.6093, allocations: 49.7 kB / 0.5425 GB, free: 4.242 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002123/0.6114, allocations: 2.357 MB / 0.5448 GB, free: 1.852 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.6125, allocations: 0.7054 MB / 0.5455 GB, free: 1.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002493/0.615, allocations: 0.9288 MB / 0.5464 GB, free: 200 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.6151, allocations: 301.1 kB / 0.5467 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003118/0.6183, allocations: 1.504 MB / 0.5482 GB, free: 14.39 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00517/0.6235, allocations: 4.082 MB / 0.5521 GB, free: 9.027 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008551/0.632, allocations: 6.044 MB / 0.558 GB, free: 1.723 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001349/0.6322, allocations: 24 kB / 0.5581 GB, free: 1.699 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01436/0.6466, allocations: 5.966 MB / 0.5639 GB, free: 11.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.6468, allocations: 44 kB / 0.5639 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001686/0.6469, allocations: 92 kB / 0.564 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00171/0.6487, allocations: 0.5804 MB / 0.5646 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003621/0.6523, allocations: 1.006 MB / 0.5656 GB, free: 9.996 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.6632, allocations: 8.517 MB / 0.5739 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003985/0.6672, allocations: 243.8 kB / 0.5741 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009788/0.6682, allocations: 272 kB / 0.5744 GB, free: 0.5586 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.2649/0.9331, allocations: 1.722 MB / 0.5761 GB, free: 92.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.9336, allocations: 266.4 kB / 0.5763 GB, free: 92.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00495/0.9386, allocations: 2.664 MB / 0.5789 GB, free: 92.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001155/0.9387, allocations: 32.62 kB / 0.5789 GB, free: 92.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.9388, allocations: 5.875 kB / 0.579 GB, free: 92.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.9e-05/0.9388, allocations: 11.09 kB / 0.579 GB, free: 92.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01579/0.9546, allocations: 7.324 MB / 0.5861 GB, free: 91.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.922e-05/0.9546, allocations: 4.875 kB / 0.5861 GB, free: 91.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.9556, allocations: 235.1 kB / 0.5863 GB, free: 91.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.9568, allocations: 456.4 kB / 0.5868 GB, free: 91.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001741/0.957, allocations: 35.14 kB / 0.5868 GB, free: 91.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006791/0.9638, allocations: 7.204 MB / 0.5939 GB, free: 87.63 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.9638, allocations: 9.281 kB / 0.5939 GB, free: 87.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006374/0.9702, allocations: 3.997 MB / 0.5978 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/0.9713, allocations: 341.8 kB / 0.5981 GB, free: 85.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007698/0.972, allocations: 31.88 kB / 0.5981 GB, free: 85.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.9735, allocations: 83.14 kB / 0.5982 GB, free: 85.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003565/0.9739, allocations: 130.6 kB / 0.5983 GB, free: 85.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/0.974, allocations: 61.17 kB / 0.5984 GB, free: 85.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003705/0.9777, allocations: 1.937 MB / 0.6003 GB, free: 85.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9778, allocations: 0 / 0.6003 GB, free: 85.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005828/0.9836, allocations: 0.8361 MB / 0.6011 GB, free: 85.09 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.0006475/0.9843, allocations: 164.2 kB / 0.6012 GB, free: 84.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007758/0.992, allocations: 4.124 MB / 0.6053 GB, free: 83.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/0.9921, allocations: 1 kB / 0.6053 GB, free: 83.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003043/0.9951, allocations: 1.589 MB / 0.6068 GB, free: 82.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003558/0.9987, allocations: 422.5 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.01881/1.018, allocations: 9.022 MB / 0.616 GB, free: 77.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005885/1.024, allocations: 2.807 MB / 0.6188 GB, free: 76.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004653/1.028, allocations: 1.335 MB / 0.6201 GB, free: 76.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008055/1.029, allocations: 191.5 kB / 0.6203 GB, free: 76.37 MB / 446.1 MB Notification: Performance of SimCode: time 1.433e-06/1.029, allocations: 0 / 0.6203 GB, free: 76.37 MB / 446.1 MB Notification: Performance of Templates: time 0.05351/1.083, allocations: 31.03 MB / 0.6506 GB, free: 53.09 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)