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.0009024/0.0009023, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009167/0.0009167, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1869/0.1869, allocations: 9.08 MB / 300.1 MB, free: 2.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003551, allocations: 8 kB / 363 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.0985, allocations: 52.42 MB / 415.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2271/0.3256, allocations: 33.79 MB / 449.2 MB, free: 24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01653/0.3422, allocations: 8.451 MB / 457.7 MB, free: 18.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007235/0.3495, allocations: 150.5 kB / 457.8 MB, free: 18.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005019/0.3545, allocations: 1.677 MB / 459.5 MB, free: 17.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01596/0.3705, allocations: 5.043 MB / 464.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.3727, allocations: 169.4 kB / 464.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002796/0.3755, allocations: 1.632 MB / 466.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001188/0.3767, allocations: 0.9419 MB / 467.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008874/0.3776, allocations: 0.7718 MB / 468 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.3787, allocations: 1.099 MB / 469.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002796/0.3789, allocations: 147.1 kB / 469.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.38, allocations: 0.6733 MB / 470 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007508/0.3808, allocations: 1.149 MB / 471.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004723/0.3813, allocations: 0.7105 MB / 471.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003293/0.3846, allocations: 3.995 MB / 475.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.3846, allocations: 0 / 475.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3846, allocations: 1.031 kB / 475.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001074/0.3847, allocations: 0 / 475.8 MB, free: 11.14 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.01215/0.3969, allocations: 4.605 MB / 480.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3969, allocations: 9.656 kB / 480.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008895/0.4058, allocations: 2.212 MB / 482.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004762/0.4106, allocations: 1.476 MB / 484.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.4108, allocations: 170.2 kB / 484.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006612/0.4114, allocations: 235.8 kB / 484.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01699/0.4285, allocations: 8.982 MB / 493.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/0.4286, allocations: 32.61 kB / 493.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004563/0.4291, allocations: 106.3 kB / 493.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00317/0.4322, allocations: 2.017 MB / 495.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01855/0.4508, allocations: 8.002 MB / 0.4918 GB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05129/0.5022, allocations: 28.5 MB / 0.5197 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007311/0.5095, allocations: 2.807 MB / 0.5224 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002498/0.5121, allocations: 2.398 MB / 0.5248 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.18e-05/0.5121, allocations: 47.88 kB / 0.5248 GB, free: 8.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 8.035e-06/0.5122, allocations: 3.984 kB / 0.5248 GB, free: 8.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=225): time 0.02879/0.541, allocations: 11.26 MB / 0.5358 GB, free: 12.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01144/0.5524, allocations: 9.022 MB / 0.5446 GB, free: 3.332 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/0.5567, allocations: 2.906 MB / 0.5475 GB, free: 420 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002947/0.557, allocations: 57.7 kB / 0.5475 GB, free: 356 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001561/0.5585, allocations: 2.273 MB / 0.5497 GB, free: 14.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009091/0.5595, allocations: 0.8131 MB / 0.5505 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.5597, allocations: 92 kB / 0.5506 GB, free: 13.13 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003087/0.56, allocations: 0.5045 MB / 0.5511 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002598/0.5626, allocations: 1.544 MB / 0.5526 GB, free: 11.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004206/0.5668, allocations: 4.098 MB / 0.5566 GB, free: 5.695 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003566/0.5704, allocations: 2.528 MB / 0.5591 GB, free: 3.172 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.383e-05/0.5704, allocations: 24 kB / 0.5591 GB, free: 3.148 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01009/0.5805, allocations: 6.066 MB / 0.565 GB, free: 13.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.017e-05/0.5806, allocations: 44 kB / 0.5651 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.88e-05/0.5807, allocations: 88 kB / 0.5652 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.5823, allocations: 0.6308 MB / 0.5658 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003253/0.5856, allocations: 1.025 MB / 0.5668 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.5962, allocations: 8.652 MB / 0.5752 GB, free: 2.199 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003901/0.6002, allocations: 251.9 kB / 0.5755 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006307/0.6008, allocations: 279.9 kB / 0.5757 GB, free: 1.68 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 409 * 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 (560): * Single equations (assignments): 553 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.2212/0.822, allocations: 1.725 MB / 0.5774 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005815/0.8226, allocations: 268.1 kB / 0.5777 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005157/0.8278, allocations: 3.331 MB / 0.5809 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-05/0.8279, allocations: 37.25 kB / 0.581 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.8279, allocations: 6.5 kB / 0.581 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.966e-05/0.8279, allocations: 9.938 kB / 0.581 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01564/0.8436, allocations: 10.1 MB / 0.5908 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.8436, allocations: 7.375 kB / 0.5908 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008479/0.8445, allocations: 253.9 kB / 0.5911 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.846, allocations: 0.6432 MB / 0.5917 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.984e-05/0.8461, allocations: 50.42 kB / 0.5918 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008153/0.8542, allocations: 8.828 MB / 0.6004 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005588/0.8599, allocations: 5.821 MB / 0.6061 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006517/0.8664, allocations: 5.312 MB / 0.6113 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.8677, allocations: 368.6 kB / 0.6116 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003454/0.868, allocations: 43.25 kB / 0.6117 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.8691, allocations: 93.86 kB / 0.6117 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003321/0.8694, allocations: 167.5 kB / 0.6119 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.8696, allocations: 69.73 kB / 0.612 GB, free: 104.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003437/0.873, allocations: 1.866 MB / 0.6138 GB, free: 104 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.873, allocations: 0 / 0.6138 GB, free: 104 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005083/0.8781, allocations: 0.9047 MB / 0.6147 GB, free: 103.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (150): * Single equations (assignments): 143 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 17,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004476/0.8786, allocations: 179.3 kB / 0.6148 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007431/0.886, allocations: 4.241 MB / 0.619 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/0.8861, allocations: 1.938 kB / 0.619 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00284/0.8889, allocations: 1.782 MB / 0.6207 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.8912, allocations: 407.1 kB / 0.6211 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/0.905, allocations: 9.178 MB / 0.6301 GB, free: 96.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003636/0.9087, allocations: 2.918 MB / 0.6329 GB, free: 94.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003205/0.9119, allocations: 1.382 MB / 0.6343 GB, free: 94.72 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007471/0.9127, allocations: 205.6 kB / 0.6345 GB, free: 94.7 MB / 446.1 MB Notification: Performance of SimCode: time 2.074e-06/0.9127, allocations: 0 / 0.6345 GB, free: 94.7 MB / 446.1 MB Notification: Performance of Templates: time 0.05457/0.9673, allocations: 32.66 MB / 0.6664 GB, free: 67.7 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)