Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 91.77 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.007008/0.007009, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.385/1.385, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1689/0.1689, allocations: 9.114 MB / 300.5 MB, free: 2.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003188, allocations: 8 kB / 363.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1137, allocations: 52.43 MB / 416.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2334/0.3471, allocations: 38.6 MB / 454.7 MB, free: 19.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0203/0.3675, allocations: 8.384 MB / 463.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009161/0.3767, allocations: 144.9 kB / 463.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.3779, allocations: 347.5 kB / 463.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004064/0.382, allocations: 1.436 MB / 465 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000753/0.3828, allocations: 156.6 kB / 465.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004051/0.3868, allocations: 3.908 MB / 469.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.3882, allocations: 0.9719 MB / 470.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.3896, allocations: 0.8672 MB / 470.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001826/0.3915, allocations: 1.456 MB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004667/0.392, allocations: 145.7 kB / 472.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001497/0.3935, allocations: 0.7921 MB / 473.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.3946, allocations: 1.263 MB / 474.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.3962, allocations: 1.681 MB / 476.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006032/0.4022, allocations: 4.926 MB / 481.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4023, allocations: 0 / 481.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4023, allocations: 1.125 kB / 481.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001879/0.4025, allocations: 0 / 481.2 MB, free: 7.387 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.01457/0.417, allocations: 4.448 MB / 485.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.321e-05/0.4171, allocations: 10.19 kB / 485.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00852/0.4256, allocations: 1.848 MB / 487.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005062/0.4307, allocations: 1.501 MB / 489 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.431, allocations: 170.6 kB / 489.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/0.4322, allocations: 233 kB / 489.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/0.4499, allocations: 8.956 MB / 498.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/0.45, allocations: 30.03 kB / 498.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003992/0.4504, allocations: 107.6 kB / 498.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00354/0.454, allocations: 2.016 MB / 0.4888 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01694/0.471, allocations: 7.969 MB / 0.4966 GB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05122/0.5222, allocations: 28.57 MB / 0.5245 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008242/0.5305, allocations: 2.824 MB / 0.5272 GB, free: 6.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002392/0.5329, allocations: 0.9863 MB / 0.5282 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/0.5448, allocations: 6.464 MB / 0.5345 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.5449, allocations: 55.88 kB / 0.5346 GB, free: 14.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 6.412e-06/0.5449, allocations: 0 / 0.5346 GB, free: 14.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02595/0.5709, allocations: 9.752 MB / 0.5441 GB, free: 4.699 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009001/0.5799, allocations: 6.476 MB / 0.5504 GB, free: 13.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007627/0.5876, allocations: 3.023 MB / 0.5534 GB, free: 10.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005208/0.5882, allocations: 57.7 kB / 0.5534 GB, free: 10.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002654/0.5908, allocations: 2.35 MB / 0.5557 GB, free: 8.434 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/0.5921, allocations: 0.7208 MB / 0.5564 GB, free: 7.703 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/0.5933, allocations: 400.3 kB / 0.5568 GB, free: 7.305 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.5935, allocations: 305.1 kB / 0.5571 GB, free: 7.004 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00342/0.5969, allocations: 1.54 MB / 0.5586 GB, free: 5.457 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005332/0.6022, allocations: 4.126 MB / 0.5626 GB, free: 56 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00831/0.6106, allocations: 6.11 MB / 0.5686 GB, free: 8.691 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-05/0.6107, allocations: 31.94 kB / 0.5686 GB, free: 8.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01318/0.6239, allocations: 6.057 MB / 0.5745 GB, free: 2.586 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.624, allocations: 44 kB / 0.5746 GB, free: 2.543 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/0.6242, allocations: 92 kB / 0.5747 GB, free: 2.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.6258, allocations: 0.5826 MB / 0.5752 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003646/0.6295, allocations: 1.022 MB / 0.5762 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.257/0.8865, allocations: 8.51 MB / 0.5845 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003915/0.8905, allocations: 256 kB / 0.5848 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005383/0.891, allocations: 285.6 kB / 0.5851 GB, free: 116.8 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 (554): * Single equations (assignments): 547 * 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.003146/0.8942, allocations: 1.726 MB / 0.5867 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004106/0.8946, allocations: 267.7 kB / 0.587 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00447/0.8991, allocations: 2.908 MB / 0.5898 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.8e-05/0.8992, allocations: 28.58 kB / 0.5899 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.8992, allocations: 6.75 kB / 0.5899 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.8992, allocations: 15.95 kB / 0.5899 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/0.9136, allocations: 9.34 MB / 0.599 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.9137, allocations: 6.156 kB / 0.599 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007321/0.9144, allocations: 214.8 kB / 0.5992 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/0.9158, allocations: 0.6053 MB / 0.5998 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.916, allocations: 36.5 kB / 0.5998 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008806/0.9248, allocations: 8.723 MB / 0.6084 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005869/0.9307, allocations: 5.676 MB / 0.6139 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006843/0.9375, allocations: 4.236 MB / 0.618 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.9386, allocations: 356 kB / 0.6184 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003184/0.9389, allocations: 41.42 kB / 0.6184 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.94, allocations: 91.09 kB / 0.6185 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003797/0.9404, allocations: 136.8 kB / 0.6186 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.9405, allocations: 59.42 kB / 0.6187 GB, free: 101.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003758/0.9442, allocations: 1.938 MB / 0.6206 GB, free: 100.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9443, allocations: 1.125 kB / 0.6206 GB, free: 100.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005115/0.9494, allocations: 0.899 MB / 0.6215 GB, free: 100.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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%), (3,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004952/0.9499, allocations: 165.7 kB / 0.6216 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007808/0.9577, allocations: 4.205 MB / 0.6257 GB, free: 98.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.9578, allocations: 1.156 kB / 0.6257 GB, free: 98.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00313/0.9609, allocations: 1.744 MB / 0.6274 GB, free: 97.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003957/0.9649, allocations: 413.3 kB / 0.6278 GB, free: 97.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.9793, allocations: 9.376 MB / 0.637 GB, free: 92.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002834/0.9822, allocations: 2.835 MB / 0.6397 GB, free: 90.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003577/0.9858, allocations: 1.326 MB / 0.641 GB, free: 90.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005524/0.9864, allocations: 203.3 kB / 0.6412 GB, free: 90.84 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.9864, allocations: 0 / 0.6412 GB, free: 90.84 MB / 446.1 MB Notification: Performance of Templates: time 0.05282/1.039, allocations: 33.22 MB / 0.6737 GB, free: 60.55 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)