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.0008709/0.0008714, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005714/0.005714, allocations: 170.5 kB / 16.26 MB, free: 6.676 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.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1905/0.1905, allocations: 9.115 MB / 300.5 MB, free: 2.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003366/0.0003366, allocations: 12 kB / 363.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1099, allocations: 52.43 MB / 416.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2722/0.3822, allocations: 38.61 MB / 454.8 MB, free: 19.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02108/0.4034, allocations: 8.373 MB / 463.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01156/0.415, allocations: 150.1 kB / 463.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.4163, allocations: 345.8 kB / 463.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003946/0.4202, allocations: 1.438 MB / 465.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00053/0.4208, allocations: 152.6 kB / 465.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003875/0.4247, allocations: 3.915 MB / 469.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.4262, allocations: 0.9659 MB / 470.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.4284, allocations: 0.861 MB / 470.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002853/0.4313, allocations: 1.465 MB / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000937/0.4322, allocations: 146.6 kB / 472.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001972/0.4342, allocations: 0.7859 MB / 473.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001233/0.4355, allocations: 1.268 MB / 474.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001665/0.4371, allocations: 1.674 MB / 476.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005954/0.4431, allocations: 4.931 MB / 481.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4431, allocations: 0 / 481.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.4431, allocations: 0 / 481.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002343/0.4434, allocations: 3.938 kB / 481.2 MB, free: 7.395 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.01413/0.4575, allocations: 4.444 MB / 485.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.4576, allocations: 10.97 kB / 485.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008481/0.4661, allocations: 1.848 MB / 487.5 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004686/0.4708, allocations: 1.502 MB / 489 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002854/0.4712, allocations: 174 kB / 489.2 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001705/0.4729, allocations: 229.4 kB / 489.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02062/0.4935, allocations: 8.949 MB / 498.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001337/0.4937, allocations: 40.23 kB / 498.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004616/0.4941, allocations: 110.2 kB / 498.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00358/0.4977, allocations: 2.007 MB / 0.4888 GB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01801/0.5158, allocations: 7.963 MB / 0.4966 GB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05215/0.5679, allocations: 28.58 MB / 0.5245 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008289/0.5763, allocations: 2.825 MB / 0.5272 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/0.5784, allocations: 0.9902 MB / 0.5282 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01205/0.5905, allocations: 6.464 MB / 0.5345 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.955e-05/0.5906, allocations: 43.88 kB / 0.5346 GB, free: 14.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 5.991e-06/0.5907, allocations: 0 / 0.5346 GB, free: 14.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.02019/0.6109, allocations: 6.486 MB / 0.5409 GB, free: 8.008 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.83e-05/0.611, allocations: 69.41 kB / 0.541 GB, free: 7.926 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006818/0.6178, allocations: 3.027 MB / 0.5439 GB, free: 4.887 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003668/0.6182, allocations: 53.7 kB / 0.544 GB, free: 4.828 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002218/0.6204, allocations: 2.361 MB / 0.5463 GB, free: 2.434 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001128/0.6216, allocations: 0.7054 MB / 0.547 GB, free: 1.719 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00108/0.6227, allocations: 388.2 kB / 0.5473 GB, free: 1.332 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.6228, allocations: 305.1 kB / 0.5476 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003359/0.6262, allocations: 1.504 MB / 0.5491 GB, free: 15.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00543/0.6316, allocations: 4.082 MB / 0.5531 GB, free: 10.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008531/0.6402, allocations: 6.034 MB / 0.559 GB, free: 2.867 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/0.6404, allocations: 24 kB / 0.559 GB, free: 2.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01463/0.655, allocations: 5.965 MB / 0.5648 GB, free: 12.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.6552, allocations: 48.12 kB / 0.5649 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001995/0.6554, allocations: 95.94 kB / 0.565 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001742/0.6572, allocations: 0.5744 MB / 0.5655 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003668/0.6609, allocations: 1.006 MB / 0.5665 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/0.6722, allocations: 8.52 MB / 0.5748 GB, free: 2.199 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004314/0.6765, allocations: 235.9 kB / 0.575 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/0.6776, allocations: 284 kB / 0.5753 GB, free: 1.691 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.2389/0.9166, allocations: 1.714 MB / 0.577 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007337/0.9173, allocations: 267.6 kB / 0.5772 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005461/0.9228, allocations: 2.666 MB / 0.5798 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/0.9229, allocations: 31.98 kB / 0.5799 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/0.923, allocations: 9.938 kB / 0.5799 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/0.923, allocations: 10.69 kB / 0.5799 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/0.937, allocations: 7.315 MB / 0.587 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.937, allocations: 6.438 kB / 0.587 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009874/0.938, allocations: 239.5 kB / 0.5873 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/0.9393, allocations: 453.6 kB / 0.5877 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001993/0.9395, allocations: 37.78 kB / 0.5877 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006858/0.9464, allocations: 7.221 MB / 0.5948 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.9464, allocations: 11.72 kB / 0.5948 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005977/0.9524, allocations: 3.997 MB / 0.5987 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.9535, allocations: 358.6 kB / 0.599 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006913/0.9542, allocations: 36.92 kB / 0.5991 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.9555, allocations: 79.8 kB / 0.5992 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/0.9558, allocations: 129.1 kB / 0.5993 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.9559, allocations: 57.45 kB / 0.5993 GB, free: 114 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00408/0.96, allocations: 1.936 MB / 0.6012 GB, free: 113.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.96, allocations: 0 / 0.6012 GB, free: 113.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005492/0.9655, allocations: 0.8351 MB / 0.602 GB, free: 113.2 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.000749/0.9663, allocations: 168.3 kB / 0.6022 GB, free: 113.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007284/0.9736, allocations: 4.125 MB / 0.6062 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/0.9736, allocations: 5.531 kB / 0.6062 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/0.9761, allocations: 1.596 MB / 0.6078 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00428/0.9804, allocations: 418.8 kB / 0.6082 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.9944, allocations: 9.074 MB / 0.6171 GB, free: 105.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00379/0.9982, allocations: 2.801 MB / 0.6198 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004096/1.002, allocations: 1.33 MB / 0.6211 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005543/1.003, allocations: 193.2 kB / 0.6213 GB, free: 104.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/1.003, allocations: 3.844 kB / 0.6213 GB, free: 104.2 MB / 446.1 MB Notification: Performance of Templates: time 0.05272/1.056, allocations: 30.63 MB / 0.6512 GB, free: 84.52 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)