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.001511/0.001511, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001586/0.001587, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04488/0.04488, allocations: 9.112 MB / 300.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 67.91 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09198/0.09318, allocations: 51.44 MB / 466.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01107/0.1043, allocations: 9.721 MB / 476.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006001/0.1103, allocations: 2.842 MB / 479.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.1119, allocations: 43.88 kB / 479.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.1132, allocations: 409.2 kB / 479.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004149/0.1174, allocations: 1.536 MB / 481.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007166/0.1181, allocations: 183.7 kB / 481.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003768/0.1219, allocations: 2.856 MB / 484.3 MB, free: 4 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.1236, allocations: 1.067 MB / 485.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.1255, allocations: 1.039 MB / 486.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002465/0.128, allocations: 1.463 MB / 487.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008828/0.1289, allocations: 260 kB / 488.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002081/0.131, allocations: 0.8621 MB / 489 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001664/0.1326, allocations: 1.352 MB / 490.4 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002588/0.1352, allocations: 1.759 MB / 492.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006797/0.142, allocations: 5.477 MB / 497.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.1421, allocations: 4 kB / 497.6 MB, free: 2.652 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1421, allocations: 0 / 497.6 MB, free: 2.652 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001988/0.1423, allocations: 0 / 497.6 MB, free: 2.652 MB / 366.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.01339/0.1557, allocations: 5.166 MB / 0.491 GB, free: 13.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.1558, allocations: 8.031 kB / 0.491 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006601/0.1624, allocations: 1.806 MB / 0.4928 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003349/0.1658, allocations: 1.51 MB / 0.4942 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.1659, allocations: 176.3 kB / 0.4944 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005552/0.1665, allocations: 231.8 kB / 0.4946 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01455/0.1811, allocations: 8.948 MB / 0.5034 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.662e-05/0.1812, allocations: 35.66 kB / 0.5034 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003747/0.1816, allocations: 111.8 kB / 0.5035 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2039/0.3855, allocations: 2.01 MB / 0.5055 GB, free: 41.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01742/0.4029, allocations: 7.961 MB / 0.5132 GB, free: 38.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0348/0.4378, allocations: 28.48 MB / 0.5411 GB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005904/0.4437, allocations: 2.816 MB / 0.5438 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.4449, allocations: 0.9922 MB / 0.5448 GB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007011/0.4519, allocations: 6.465 MB / 0.5511 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.452, allocations: 43.88 kB / 0.5511 GB, free: 6.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.506e-06/0.452, allocations: 0 / 0.5511 GB, free: 6.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.02013/0.4721, allocations: 9.75 MB / 0.5606 GB, free: 12.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007756/0.4799, allocations: 6.774 MB / 0.5673 GB, free: 5.328 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004202/0.4842, allocations: 3.023 MB / 0.5702 GB, free: 2.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002935/0.4845, allocations: 57.7 kB / 0.5703 GB, free: 2.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00148/0.486, allocations: 2.358 MB / 0.5726 GB, free: 15.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007529/0.4867, allocations: 0.7209 MB / 0.5733 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001178/0.4879, allocations: 0.931 MB / 0.5742 GB, free: 14.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.187e-05/0.488, allocations: 305.2 kB / 0.5745 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002275/0.4903, allocations: 1.544 MB / 0.576 GB, free: 12.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00392/0.4942, allocations: 4.12 MB / 0.58 GB, free: 6.961 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00675/0.501, allocations: 6.108 MB / 0.586 GB, free: 15.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.98e-05/0.5011, allocations: 27.94 kB / 0.586 GB, free: 15.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01034/0.5114, allocations: 6.072 MB / 0.5919 GB, free: 9.484 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-05/0.5115, allocations: 44 kB / 0.592 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/0.5117, allocations: 88 kB / 0.5921 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.513, allocations: 0.58 MB / 0.5926 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002993/0.516, allocations: 1.022 MB / 0.5936 GB, free: 7.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.5262, allocations: 9.315 MB / 0.6027 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003644/0.5299, allocations: 247.9 kB / 0.603 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006455/0.5305, allocations: 281.9 kB / 0.6032 GB, free: 13.52 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.002726/0.5333, allocations: 1.724 MB / 0.6049 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004619/0.5337, allocations: 264.5 kB / 0.6052 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004797/0.5385, allocations: 2.921 MB / 0.608 GB, free: 8.574 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/0.5387, allocations: 27.98 kB / 0.608 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.5387, allocations: 13.36 kB / 0.608 GB, free: 8.535 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.5387, allocations: 7.969 kB / 0.6081 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/0.5542, allocations: 9.26 MB / 0.6171 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.5542, allocations: 4 kB / 0.6171 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008056/0.555, allocations: 212.1 kB / 0.6173 GB, free: 14.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.5565, allocations: 0.6021 MB / 0.6179 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.5567, allocations: 47.98 kB / 0.6179 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/0.5681, allocations: 9.483 MB / 0.6272 GB, free: 4.355 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00639/0.5745, allocations: 5.919 MB / 0.633 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006375/0.5809, allocations: 4.235 MB / 0.6371 GB, free: 9.84 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008767/0.5818, allocations: 345.7 kB / 0.6374 GB, free: 9.48 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000307/0.5821, allocations: 35.94 kB / 0.6375 GB, free: 9.445 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009729/0.5831, allocations: 87.95 kB / 0.6376 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.5834, allocations: 141 kB / 0.6377 GB, free: 9.223 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5835, allocations: 51.98 kB / 0.6377 GB, free: 9.172 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002842/0.5864, allocations: 1.936 MB / 0.6396 GB, free: 7.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5864, allocations: 4 kB / 0.6396 GB, free: 7.227 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003987/0.5904, allocations: 0.9051 MB / 0.6405 GB, free: 6.324 MB / 478.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.0004168/0.5908, allocations: 169.5 kB / 0.6407 GB, free: 6.152 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006612/0.5974, allocations: 4.229 MB / 0.6448 GB, free: 1.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.5975, allocations: 0 / 0.6448 GB, free: 1.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002601/0.6001, allocations: 1.742 MB / 0.6465 GB, free: 124 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.6024, allocations: 453 kB / 0.647 GB, free: 15.69 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01288/0.6153, allocations: 7.927 MB / 0.6547 GB, free: 7.676 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/0.6183, allocations: 2.837 MB / 0.6575 GB, free: 4.809 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008071/0.6191, allocations: 243.4 kB / 0.6577 GB, free: 4.57 MB / 494.1 MB Notification: Performance of SimCode: time 5.21e-07/0.6191, allocations: 0 / 0.6577 GB, free: 4.57 MB / 494.1 MB Notification: Performance of Templates: time 0.3295/0.9486, allocations: 99.45 MB / 0.7548 GB, free: 156 MB / 0.5294 GB 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)