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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 181.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009071/0.0009071, allocations: 105.1 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0407/0.0407, allocations: 8.942 MB / 349 MB, free: 44 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009781/0.0009782, allocations: 58.62 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09549/0.09648, allocations: 51.39 MB / 462.5 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2081/0.3046, allocations: 39.69 MB / 0.4904 GB, free: 7.445 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01686/0.3215, allocations: 8.421 MB / 0.4986 GB, free: 1.863 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006883/0.3284, allocations: 150.4 kB / 0.4988 GB, free: 1.844 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.3295, allocations: 347.9 kB / 0.4991 GB, free: 1.711 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003164/0.3327, allocations: 1.431 MB / 0.5005 GB, free: 1.043 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.3332, allocations: 156.1 kB / 0.5007 GB, free: 0.9531 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003599/0.3368, allocations: 3.939 MB / 0.5045 GB, free: 15.15 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.3381, allocations: 0.9875 MB / 0.5055 GB, free: 14.51 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.3395, allocations: 0.8899 MB / 0.5063 GB, free: 14.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001827/0.3414, allocations: 1.482 MB / 0.5078 GB, free: 13.16 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002813/0.3417, allocations: 158.8 kB / 0.5079 GB, free: 13.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.343, allocations: 0.795 MB / 0.5087 GB, free: 12.8 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009413/0.344, allocations: 1.269 MB / 0.51 GB, free: 12.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001361/0.3454, allocations: 1.673 MB / 0.5116 GB, free: 10.81 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004395/0.3498, allocations: 5.042 MB / 0.5165 GB, free: 5.914 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3498, allocations: 0 / 0.5165 GB, free: 5.914 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3498, allocations: 4 kB / 0.5165 GB, free: 5.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.671e-05/0.3499, allocations: 3.938 kB / 0.5165 GB, free: 5.906 MB / 330.7 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.01128/0.3612, allocations: 5.166 MB / 0.5216 GB, free: 0.6719 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.3612, allocations: 12.03 kB / 0.5216 GB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006199/0.3674, allocations: 1.805 MB / 0.5233 GB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002699/0.3701, allocations: 1.498 MB / 0.5248 GB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.3703, allocations: 180.2 kB / 0.525 GB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003794/0.3707, allocations: 235.7 kB / 0.5252 GB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.3823, allocations: 8.952 MB / 0.5339 GB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.679e-05/0.3824, allocations: 23.81 kB / 0.534 GB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002657/0.3827, allocations: 103.9 kB / 0.5341 GB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002841/0.3856, allocations: 2.009 MB / 0.536 GB, free: 1.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01285/0.3984, allocations: 7.967 MB / 0.5438 GB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03897/0.4374, allocations: 28.55 MB / 0.5717 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006779/0.4442, allocations: 2.825 MB / 0.5745 GB, free: 9.262 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/0.4459, allocations: 0.9863 MB / 0.5754 GB, free: 8.277 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009813/0.4557, allocations: 6.466 MB / 0.5817 GB, free: 1.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.4558, allocations: 51.86 kB / 0.5818 GB, free: 1.117 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 3.677e-06/0.4558, allocations: 0 / 0.5818 GB, free: 1.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=197): time 0.02125/0.4771, allocations: 9.747 MB / 0.5913 GB, free: 7.266 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007669/0.4848, allocations: 6.477 MB / 0.5976 GB, free: 492 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005237/0.4901, allocations: 3.023 MB / 0.6006 GB, free: 13.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002466/0.4903, allocations: 49.7 kB / 0.6006 GB, free: 13.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001833/0.4922, allocations: 2.354 MB / 0.6029 GB, free: 11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009323/0.4931, allocations: 0.7208 MB / 0.6036 GB, free: 10.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001834/0.495, allocations: 0.9485 MB / 0.6046 GB, free: 9.312 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.4951, allocations: 309.1 kB / 0.6049 GB, free: 9.008 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002827/0.4979, allocations: 1.54 MB / 0.6064 GB, free: 7.461 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004375/0.5023, allocations: 4.114 MB / 0.6104 GB, free: 2.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006721/0.509, allocations: 6.113 MB / 0.6163 GB, free: 10.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.029e-05/0.5091, allocations: 24 kB / 0.6164 GB, free: 10.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01021/0.5194, allocations: 6.072 MB / 0.6223 GB, free: 4.586 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.084e-05/0.5195, allocations: 43.94 kB / 0.6223 GB, free: 4.543 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001317/0.5196, allocations: 92 kB / 0.6224 GB, free: 4.453 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.5211, allocations: 0.5805 MB / 0.623 GB, free: 3.867 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/0.5241, allocations: 1.025 MB / 0.624 GB, free: 2.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009774/0.5339, allocations: 8.505 MB / 0.6323 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003568/0.5375, allocations: 247.9 kB / 0.6325 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008348/0.5383, allocations: 280 kB / 0.6328 GB, free: 9.395 MB / 458.7 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.003297/0.5416, allocations: 1.733 MB / 0.6345 GB, free: 7.652 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005758/0.5422, allocations: 268.6 kB / 0.6348 GB, free: 7.387 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005193/0.5474, allocations: 2.914 MB / 0.6376 GB, free: 4.445 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001102/0.5476, allocations: 35.98 kB / 0.6376 GB, free: 4.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.5476, allocations: 8 kB / 0.6376 GB, free: 4.402 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.5476, allocations: 7.969 kB / 0.6376 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2221/0.7697, allocations: 9.324 MB / 0.6468 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.7698, allocations: 4.25 kB / 0.6468 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007827/0.7706, allocations: 214.8 kB / 0.647 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001596/0.7722, allocations: 0.6126 MB / 0.6476 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.7723, allocations: 41.56 kB / 0.6476 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/0.7831, allocations: 8.709 MB / 0.6561 GB, free: 143.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005987/0.7891, allocations: 5.687 MB / 0.6617 GB, free: 139.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03246/0.8216, allocations: 24.4 MB / 0.6855 GB, free: 127.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005329/0.8222, allocations: 340.4 kB / 0.6858 GB, free: 126.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000287/0.8225, allocations: 37.72 kB / 0.6858 GB, free: 126.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009428/0.8234, allocations: 92.61 kB / 0.6859 GB, free: 126.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003351/0.8238, allocations: 135.5 kB / 0.6861 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.892e-05/0.8239, allocations: 58.09 kB / 0.6861 GB, free: 126.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002406/0.8263, allocations: 1.936 MB / 0.688 GB, free: 124.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8263, allocations: 0 / 0.688 GB, free: 124.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004242/0.8305, allocations: 1.169 MB / 0.6892 GB, free: 123.5 MB / 458.7 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.0003517/0.8309, allocations: 164.2 kB / 0.6893 GB, free: 123.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005171/0.8361, allocations: 4.206 MB / 0.6934 GB, free: 119.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.8361, allocations: 4 kB / 0.6934 GB, free: 119.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.8382, allocations: 1.742 MB / 0.6951 GB, free: 117.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.8401, allocations: 416.4 kB / 0.6955 GB, free: 117 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.8519, allocations: 11.25 MB / 0.7065 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/0.8545, allocations: 2.907 MB / 0.7093 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002929/0.8574, allocations: 1.326 MB / 0.7106 GB, free: 101.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004478/0.8579, allocations: 199.4 kB / 0.7108 GB, free: 101.2 MB / 458.7 MB Notification: Performance of SimCode: time 5.11e-07/0.8579, allocations: 0 / 0.7108 GB, free: 101.2 MB / 458.7 MB Notification: Performance of Templates: time 0.05397/0.9118, allocations: 39.73 MB / 0.7496 GB, free: 61.73 MB / 458.7 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)