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.001408/0.001408, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001796/0.001796, allocations: 192.7 kB / 16.25 MB, free: 6.621 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.429/1.429, allocations: 222.9 MB / 239.9 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1668/0.1668, allocations: 9.121 MB / 299.2 MB, free: 1.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 63.88 kB / 361.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1347, allocations: 51.44 MB / 412.9 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2398/0.3745, allocations: 39.68 MB / 452.6 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.3904, allocations: 8.385 MB / 461 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00899/0.3994, allocations: 148.2 kB / 461.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.4006, allocations: 350.5 kB / 461.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003624/0.4042, allocations: 1.421 MB / 462.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.4047, allocations: 162.2 kB / 463 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002947/0.4077, allocations: 2.859 MB / 465.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.4089, allocations: 1.102 MB / 467 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.4101, allocations: 1.035 MB / 468 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.4115, allocations: 1.58 MB / 469.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002868/0.4118, allocations: 258 kB / 469.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.413, allocations: 0.8681 MB / 470.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008035/0.4139, allocations: 1.372 MB / 472.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.4149, allocations: 1.776 MB / 473.9 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00527/0.4202, allocations: 5.226 MB / 479.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.4202, allocations: 0 / 479.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4202, allocations: 1.719 kB / 479.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001255/0.4203, allocations: 0 / 479.1 MB, free: 6.652 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.01463/0.435, allocations: 5.173 MB / 484.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.435, allocations: 8.25 kB / 484.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007057/0.4421, allocations: 1.808 MB / 486.1 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003124/0.4452, allocations: 1.496 MB / 487.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.4454, allocations: 175.4 kB / 487.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004953/0.4459, allocations: 233.2 kB / 488 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01521/0.4611, allocations: 8.952 MB / 496.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.636e-05/0.4613, allocations: 29.95 kB / 497 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003502/0.4616, allocations: 107 kB / 497.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003398/0.465, allocations: 2.023 MB / 499.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01747/0.4825, allocations: 7.964 MB / 0.4952 GB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05157/0.5341, allocations: 28.56 MB / 0.5231 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007487/0.5416, allocations: 2.814 MB / 0.5258 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.5433, allocations: 0.983 MB / 0.5268 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009092/0.5524, allocations: 6.472 MB / 0.5331 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.5525, allocations: 43.88 kB / 0.5331 GB, free: 13.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.186e-06/0.5525, allocations: 0 / 0.5331 GB, free: 13.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02245/0.5749, allocations: 9.759 MB / 0.5427 GB, free: 4.074 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008031/0.583, allocations: 6.786 MB / 0.5493 GB, free: 12.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004324/0.5873, allocations: 3.023 MB / 0.5522 GB, free: 9.941 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002439/0.5876, allocations: 49.7 kB / 0.5523 GB, free: 9.887 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.5891, allocations: 2.357 MB / 0.5546 GB, free: 7.496 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006724/0.5898, allocations: 0.7247 MB / 0.5553 GB, free: 6.762 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001239/0.5911, allocations: 0.9445 MB / 0.5562 GB, free: 5.805 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.5912, allocations: 305.2 kB / 0.5565 GB, free: 5.504 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002355/0.5935, allocations: 1.547 MB / 0.558 GB, free: 3.949 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004073/0.5976, allocations: 4.118 MB / 0.562 GB, free: 14.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007053/0.6047, allocations: 6.108 MB / 0.568 GB, free: 7.188 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.351e-05/0.6048, allocations: 24 kB / 0.568 GB, free: 7.164 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009963/0.6147, allocations: 6.061 MB / 0.5739 GB, free: 1.086 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.796e-05/0.6148, allocations: 40 kB / 0.574 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-05/0.6149, allocations: 92 kB / 0.5741 GB, free: 0.957 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001461/0.6164, allocations: 0.5939 MB / 0.5746 GB, free: 364 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1857/0.8021, allocations: 1.017 MB / 0.5756 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009387/0.8115, allocations: 9.31 MB / 0.5847 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004307/0.8159, allocations: 253.4 kB / 0.585 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005086/0.8164, allocations: 285.5 kB / 0.5852 GB, free: 119.5 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.003039/0.8194, allocations: 1.727 MB / 0.5869 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004478/0.8199, allocations: 270.8 kB / 0.5872 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004293/0.8242, allocations: 2.906 MB / 0.59 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001054/0.8243, allocations: 30.69 kB / 0.5901 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.8243, allocations: 7.281 kB / 0.5901 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.8244, allocations: 10.5 kB / 0.5901 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01391/0.8383, allocations: 9.345 MB / 0.5992 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.8383, allocations: 3.438 kB / 0.5992 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007549/0.8391, allocations: 209.9 kB / 0.5994 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/0.8405, allocations: 0.6087 MB / 0.6 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.53e-05/0.8407, allocations: 43.14 kB / 0.6 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009072/0.8497, allocations: 9.493 MB / 0.6093 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0056/0.8554, allocations: 5.939 MB / 0.6151 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007382/0.8628, allocations: 4.227 MB / 0.6192 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.8638, allocations: 340.9 kB / 0.6196 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003612/0.8642, allocations: 36.02 kB / 0.6196 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.8653, allocations: 89.61 kB / 0.6197 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003914/0.8657, allocations: 133.8 kB / 0.6198 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/0.8659, allocations: 61.95 kB / 0.6199 GB, free: 101.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003437/0.8693, allocations: 1.932 MB / 0.6218 GB, free: 101.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8693, allocations: 0 / 0.6218 GB, free: 101.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006875/0.8762, allocations: 0.8967 MB / 0.6226 GB, free: 101 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.0005261/0.8767, allocations: 178.9 kB / 0.6228 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01129/0.888, allocations: 5.744 MB / 0.6284 GB, free: 99.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/0.8881, allocations: 0 / 0.6284 GB, free: 99.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/0.8908, allocations: 1.745 MB / 0.6301 GB, free: 98.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.8935, allocations: 450.4 kB / 0.6305 GB, free: 98.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/0.9062, allocations: 9.334 MB / 0.6397 GB, free: 92.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002562/0.9087, allocations: 2.836 MB / 0.6424 GB, free: 90.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003282/0.912, allocations: 1.313 MB / 0.6437 GB, free: 89.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00049/0.9125, allocations: 202.5 kB / 0.6439 GB, free: 89.25 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.9126, allocations: 4 kB / 0.6439 GB, free: 89.25 MB / 446.1 MB Notification: Performance of Templates: time 0.05446/0.967, allocations: 35.02 MB / 0.6781 GB, free: 55.81 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)