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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001076/0.001076, allocations: 101.5 kB / 16.35 MB, free: 5.875 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.00114/0.00114, allocations: 198.3 kB / 17.3 MB, free: 5.516 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.297/1.297, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04278/0.04278, allocations: 9.114 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 63.91 kB / 363.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2236, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.007477/0.2312, allocations: 9.733 MB / 424.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004887/0.2361, allocations: 2.849 MB / 427.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008459/0.237, allocations: 43.88 kB / 427.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007711/0.2378, allocations: 413.1 kB / 427.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002632/0.2405, allocations: 1.533 MB / 429.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003727/0.2409, allocations: 179.7 kB / 429.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002138/0.243, allocations: 2.859 MB / 432.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009446/0.244, allocations: 1.087 MB / 433.5 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008125/0.2448, allocations: 1.031 MB / 434.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.2459, allocations: 1.456 MB / 436 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002656/0.2462, allocations: 260 kB / 436.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001/0.2472, allocations: 0.862 MB / 437.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000663/0.2479, allocations: 1.356 MB / 438.4 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.249, allocations: 1.759 MB / 440.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004643/0.2536, allocations: 5.447 MB / 445.6 MB, free: 9.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2537, allocations: 0 / 445.6 MB, free: 9.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2537, allocations: 0 / 445.6 MB, free: 9.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.348e-05/0.2537, allocations: 0 / 445.6 MB, free: 9.898 MB / 318.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.01094/0.2647, allocations: 5.174 MB / 450.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2648, allocations: 8.031 kB / 450.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006132/0.2709, allocations: 1.809 MB / 452.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003367/0.2743, allocations: 1.51 MB / 454.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.2744, allocations: 176.2 kB / 454.3 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004275/0.2749, allocations: 227.8 kB / 454.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.2887, allocations: 8.948 MB / 463.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.539e-05/0.2888, allocations: 31.72 kB / 463.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003301/0.2891, allocations: 107.9 kB / 463.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002828/0.292, allocations: 2.013 MB / 465.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01437/0.3064, allocations: 7.963 MB / 473.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03632/0.3427, allocations: 28.48 MB / 0.4903 GB, free: 256 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007097/0.3499, allocations: 2.816 MB / 0.4931 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.3515, allocations: 0.9896 MB / 0.494 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009121/0.3606, allocations: 6.453 MB / 0.5003 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.3607, allocations: 47.88 kB / 0.5004 GB, free: 5.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.367e-06/0.3607, allocations: 0 / 0.5004 GB, free: 5.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.2324/0.5931, allocations: 9.742 MB / 0.5099 GB, free: 87.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007006/0.6001, allocations: 6.777 MB / 0.5165 GB, free: 82.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004019/0.6042, allocations: 3.025 MB / 0.5195 GB, free: 81.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002569/0.6045, allocations: 53.36 kB / 0.5195 GB, free: 81.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.6057, allocations: 2.359 MB / 0.5218 GB, free: 79.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005446/0.6062, allocations: 0.7185 MB / 0.5225 GB, free: 79.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009561/0.6072, allocations: 0.9477 MB / 0.5234 GB, free: 78.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.054e-05/0.6073, allocations: 304.9 kB / 0.5237 GB, free: 78.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.6092, allocations: 1.535 MB / 0.5252 GB, free: 78.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002776/0.612, allocations: 4.129 MB / 0.5293 GB, free: 74.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004704/0.6167, allocations: 6.096 MB / 0.5352 GB, free: 67.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.885e-05/0.6167, allocations: 31.94 kB / 0.5352 GB, free: 67.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.008259/0.625, allocations: 6.068 MB / 0.5412 GB, free: 61.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.902e-05/0.6251, allocations: 44.97 kB / 0.5412 GB, free: 61.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.77e-05/0.6252, allocations: 92 kB / 0.5413 GB, free: 61.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.6263, allocations: 0.5767 MB / 0.5419 GB, free: 61.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002514/0.6289, allocations: 1.025 MB / 0.5429 GB, free: 60.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007692/0.6366, allocations: 9.314 MB / 0.552 GB, free: 50.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003238/0.6398, allocations: 251.9 kB / 0.5522 GB, free: 50.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003485/0.6402, allocations: 276 kB / 0.5525 GB, free: 49.91 MB / 382.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.002107/0.6423, allocations: 1.728 MB / 0.5542 GB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003181/0.6426, allocations: 268.5 kB / 0.5544 GB, free: 47.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003768/0.6464, allocations: 2.913 MB / 0.5573 GB, free: 44.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.555e-05/0.6465, allocations: 31.98 kB / 0.5573 GB, free: 44.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.6465, allocations: 4.375 kB / 0.5573 GB, free: 44.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.6465, allocations: 11.95 kB / 0.5573 GB, free: 44.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/0.6601, allocations: 9.259 MB / 0.5663 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.6601, allocations: 8.422 kB / 0.5663 GB, free: 35.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006787/0.6608, allocations: 215.6 kB / 0.5666 GB, free: 35.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/0.6621, allocations: 0.603 MB / 0.5671 GB, free: 34.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.742e-05/0.6622, allocations: 35.98 kB / 0.5672 GB, free: 34.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008281/0.6705, allocations: 9.492 MB / 0.5764 GB, free: 24.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004993/0.6755, allocations: 5.918 MB / 0.5822 GB, free: 18.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005376/0.6809, allocations: 4.235 MB / 0.5864 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.6821, allocations: 341.7 kB / 0.5867 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003192/0.6824, allocations: 36 kB / 0.5867 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008963/0.6833, allocations: 83.89 kB / 0.5868 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/0.6836, allocations: 133 kB / 0.5869 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.6837, allocations: 59.98 kB / 0.587 GB, free: 13.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002288/0.686, allocations: 1.94 MB / 0.5889 GB, free: 11.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.686, allocations: 0 / 0.5889 GB, free: 11.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004945/0.691, allocations: 0.8962 MB / 0.5898 GB, free: 10.79 MB / 382.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.0004953/0.6915, allocations: 176.4 kB / 0.5899 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00602/0.6975, allocations: 4.231 MB / 0.5941 GB, free: 6.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.6975, allocations: 0 / 0.5941 GB, free: 6.363 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00214/0.6997, allocations: 1.748 MB / 0.5958 GB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/0.7018, allocations: 453.6 kB / 0.5962 GB, free: 4.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.7139, allocations: 7.533 MB / 0.6036 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003215/0.7171, allocations: 2.837 MB / 0.6063 GB, free: 9.688 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003062/0.7202, allocations: 1.31 MB / 0.6076 GB, free: 8.371 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005347/0.7208, allocations: 203.4 kB / 0.6078 GB, free: 8.172 MB / 398.1 MB Notification: Performance of SimCode: time 1.051e-06/0.7208, allocations: 0 / 0.6078 GB, free: 8.172 MB / 398.1 MB Notification: Performance of Templates: time 0.06046/0.7812, allocations: 30.78 MB / 0.6379 GB, free: 9.66 MB / 430.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)