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.001356/0.001356, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001411/0.001411, allocations: 187 kB / 17.34 MB, free: 5.762 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04268/0.04268, allocations: 9.117 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.89 kB / 415.3 MB, free: 21.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09354, allocations: 51.44 MB / 466.7 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.009821/0.1034, allocations: 9.723 MB / 476.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005636/0.1091, allocations: 2.842 MB / 479.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.1105, allocations: 39.94 kB / 479.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.1118, allocations: 413.1 kB / 479.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003765/0.1156, allocations: 1.54 MB / 481.3 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006737/0.1163, allocations: 183.7 kB / 481.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003848/0.1202, allocations: 2.852 MB / 484.3 MB, free: 52 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.122, allocations: 1.079 MB / 485.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.1237, allocations: 1.035 MB / 486.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002274/0.126, allocations: 1.463 MB / 487.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006966/0.1267, allocations: 260 kB / 488.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001949/0.1286, allocations: 0.866 MB / 489 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001432/0.1301, allocations: 1.344 MB / 490.4 MB, free: 9.965 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001826/0.1319, allocations: 1.763 MB / 492.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005553/0.1375, allocations: 5.473 MB / 497.6 MB, free: 2.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1375, allocations: 0 / 497.6 MB, free: 2.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1375, allocations: 0 / 497.6 MB, free: 2.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001162/0.1377, allocations: 0 / 497.6 MB, free: 2.699 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.01165/0.1493, allocations: 5.174 MB / 0.491 GB, free: 13.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.1494, allocations: 8.031 kB / 0.491 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00661/0.156, allocations: 1.809 MB / 0.4928 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/0.159, allocations: 1.506 MB / 0.4942 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.1592, allocations: 172.3 kB / 0.4944 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007932/0.16, allocations: 231.8 kB / 0.4946 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01545/0.1755, allocations: 8.948 MB / 0.5034 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001248/0.1756, allocations: 35.64 kB / 0.5034 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007256/0.1764, allocations: 111.9 kB / 0.5035 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2097/0.3861, allocations: 2.006 MB / 0.5055 GB, free: 41.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01662/0.4028, allocations: 7.964 MB / 0.5132 GB, free: 38.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03383/0.4367, allocations: 28.47 MB / 0.541 GB, free: 17.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006172/0.4429, allocations: 2.823 MB / 0.5438 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.4442, allocations: 0.9933 MB / 0.5448 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00691/0.4511, allocations: 6.45 MB / 0.5511 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.4512, allocations: 47.81 kB / 0.5511 GB, free: 6.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 4.078e-06/0.4512, allocations: 0 / 0.5511 GB, free: 6.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.02069/0.4719, allocations: 9.747 MB / 0.5606 GB, free: 12.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007892/0.4798, allocations: 6.788 MB / 0.5673 GB, free: 5.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005022/0.4849, allocations: 3.031 MB / 0.5702 GB, free: 2.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003141/0.4852, allocations: 49.7 kB / 0.5703 GB, free: 2.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001656/0.4869, allocations: 2.353 MB / 0.5726 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008301/0.4877, allocations: 0.7258 MB / 0.5733 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/0.4894, allocations: 0.9369 MB / 0.5742 GB, free: 14.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.875e-05/0.4895, allocations: 305.1 kB / 0.5745 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002608/0.4921, allocations: 1.54 MB / 0.576 GB, free: 12.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004326/0.4965, allocations: 4.122 MB / 0.58 GB, free: 7.035 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007266/0.5038, allocations: 6.105 MB / 0.586 GB, free: 15.67 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.903e-05/0.5039, allocations: 31.94 kB / 0.586 GB, free: 15.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01172/0.5156, allocations: 6.065 MB / 0.5919 GB, free: 9.566 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.5157, allocations: 44.97 kB / 0.592 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000163/0.5159, allocations: 98.06 kB / 0.5921 GB, free: 9.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.5174, allocations: 0.5763 MB / 0.5926 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003441/0.5209, allocations: 1.014 MB / 0.5936 GB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/0.5321, allocations: 9.319 MB / 0.6027 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003728/0.5359, allocations: 247.9 kB / 0.6029 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008399/0.5368, allocations: 282 kB / 0.6032 GB, free: 13.59 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.003617/0.5404, allocations: 1.723 MB / 0.6049 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006332/0.541, allocations: 268.5 kB / 0.6052 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005499/0.5466, allocations: 2.923 MB / 0.608 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/0.5467, allocations: 34.02 kB / 0.608 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.263e-05/0.5467, allocations: 4 kB / 0.608 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/0.5468, allocations: 7.969 kB / 0.6081 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0187/0.5655, allocations: 9.265 MB / 0.6171 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/0.5655, allocations: 4.438 kB / 0.6171 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008351/0.5664, allocations: 215.7 kB / 0.6173 GB, free: 14.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.568, allocations: 0.6012 MB / 0.6179 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.5681, allocations: 35.98 kB / 0.6179 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.5793, allocations: 9.489 MB / 0.6272 GB, free: 4.434 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006516/0.5858, allocations: 5.919 MB / 0.633 GB, free: 14.22 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007023/0.5929, allocations: 4.231 MB / 0.6371 GB, free: 9.914 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009306/0.5939, allocations: 341.7 kB / 0.6374 GB, free: 9.559 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006515/0.5945, allocations: 39.98 kB / 0.6375 GB, free: 9.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.5959, allocations: 83.89 kB / 0.6376 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003457/0.5963, allocations: 133 kB / 0.6377 GB, free: 9.309 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.5964, allocations: 59.98 kB / 0.6377 GB, free: 9.25 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003719/0.6002, allocations: 1.94 MB / 0.6396 GB, free: 7.305 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6002, allocations: 0 / 0.6396 GB, free: 7.305 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00477/0.605, allocations: 0.9048 MB / 0.6405 GB, free: 6.402 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.0005509/0.6055, allocations: 172.5 kB / 0.6407 GB, free: 6.23 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007523/0.6131, allocations: 4.227 MB / 0.6448 GB, free: 1.992 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/0.6131, allocations: 0 / 0.6448 GB, free: 1.992 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002945/0.6161, allocations: 1.745 MB / 0.6465 GB, free: 204 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/0.6192, allocations: 454.8 kB / 0.6469 GB, free: 15.76 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01577/0.635, allocations: 7.921 MB / 0.6547 GB, free: 7.754 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004959/0.64, allocations: 2.845 MB / 0.6575 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.6412, allocations: 239.4 kB / 0.6577 GB, free: 4.648 MB / 494.1 MB Notification: Performance of SimCode: time 1.563e-06/0.6412, allocations: 4 kB / 0.6577 GB, free: 4.645 MB / 494.1 MB Notification: Performance of Templates: time 0.3148/0.956, allocations: 99.44 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)