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.001478/0.001478, allocations: 102.5 kB / 16.35 MB, free: 5.879 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.001202/0.001202, allocations: 193.6 kB / 17.3 MB, free: 5.52 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.338/1.338, 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.04592/0.04592, allocations: 9.122 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 59.89 kB / 363.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2074, allocations: 51.43 MB / 414.8 MB, free: 24.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.007727/0.2152, allocations: 9.724 MB / 424.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005659/0.2209, allocations: 2.848 MB / 427.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.2224, allocations: 43.94 kB / 427.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000936/0.2234, allocations: 417.1 kB / 427.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003364/0.2268, allocations: 1.525 MB / 429.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004687/0.2273, allocations: 187.7 kB / 429.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002801/0.2301, allocations: 2.861 MB / 432.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.2312, allocations: 1.079 MB / 433.5 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.2322, allocations: 1.031 MB / 434.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001491/0.2337, allocations: 1.456 MB / 436 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003766/0.2341, allocations: 264 kB / 436.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.2354, allocations: 0.862 MB / 437.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008177/0.2362, allocations: 1.356 MB / 438.4 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00122/0.2374, allocations: 1.759 MB / 440.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004913/0.2423, allocations: 5.449 MB / 445.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2424, allocations: 0 / 445.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2424, allocations: 0 / 445.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.549e-05/0.2425, allocations: 4 kB / 445.6 MB, free: 9.891 MB / 318.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.01124/0.2537, allocations: 5.162 MB / 450.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.2538, allocations: 8.031 kB / 450.8 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0064/0.2602, allocations: 1.813 MB / 452.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00307/0.2632, allocations: 1.51 MB / 454.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.2634, allocations: 176.3 kB / 454.3 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004593/0.2639, allocations: 227.8 kB / 454.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.2784, allocations: 8.944 MB / 463.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.642e-05/0.2786, allocations: 35.66 kB / 463.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004076/0.279, allocations: 115.8 kB / 463.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003218/0.2822, allocations: 2.013 MB / 465.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0172/0.2994, allocations: 7.959 MB / 473.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03859/0.3381, allocations: 28.48 MB / 0.4903 GB, free: 248 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006779/0.3449, allocations: 2.812 MB / 0.4931 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.3464, allocations: 0.9912 MB / 0.494 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009209/0.3556, allocations: 6.457 MB / 0.5003 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.3557, allocations: 43.88 kB / 0.5004 GB, free: 5.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.447e-06/0.3557, allocations: 0 / 0.5004 GB, free: 5.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.1917/0.5473, allocations: 9.744 MB / 0.5099 GB, free: 87.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007681/0.5551, allocations: 6.773 MB / 0.5165 GB, free: 82.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003489/0.5586, allocations: 3.024 MB / 0.5195 GB, free: 81.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001843/0.5588, allocations: 52.27 kB / 0.5195 GB, free: 81.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009692/0.5598, allocations: 2.363 MB / 0.5218 GB, free: 79.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003983/0.5602, allocations: 0.7267 MB / 0.5225 GB, free: 79.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009047/0.5611, allocations: 0.9353 MB / 0.5234 GB, free: 78.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.618e-05/0.5611, allocations: 306.5 kB / 0.5237 GB, free: 78.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.563, allocations: 1.536 MB / 0.5252 GB, free: 78.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002589/0.5656, allocations: 4.127 MB / 0.5293 GB, free: 74.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004768/0.5704, allocations: 6.101 MB / 0.5352 GB, free: 67.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.292e-05/0.5705, allocations: 31.94 kB / 0.5352 GB, free: 67.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.008453/0.5789, allocations: 6.065 MB / 0.5412 GB, free: 61.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.958e-05/0.579, allocations: 44 kB / 0.5412 GB, free: 61.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.442e-05/0.5791, allocations: 95.98 kB / 0.5413 GB, free: 61.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.5803, allocations: 0.5814 MB / 0.5419 GB, free: 61.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002941/0.5832, allocations: 1.014 MB / 0.5429 GB, free: 60.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008038/0.5913, allocations: 9.324 MB / 0.552 GB, free: 50.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004243/0.5955, allocations: 251.9 kB / 0.5522 GB, free: 50.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006495/0.5962, allocations: 280 kB / 0.5525 GB, free: 49.91 MB / 382.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.002258/0.5985, allocations: 1.724 MB / 0.5542 GB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004049/0.5989, allocations: 272.5 kB / 0.5544 GB, free: 47.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00399/0.6029, allocations: 2.91 MB / 0.5573 GB, free: 44.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.335e-05/0.603, allocations: 35.98 kB / 0.5573 GB, free: 44.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.603, allocations: 4 kB / 0.5573 GB, free: 44.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.603, allocations: 7.969 kB / 0.5573 GB, free: 44.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.6152, allocations: 9.26 MB / 0.5663 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.719e-06/0.6152, allocations: 0 / 0.5663 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007551/0.616, allocations: 219.6 kB / 0.5666 GB, free: 35.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001309/0.6173, allocations: 0.5993 MB / 0.5671 GB, free: 34.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.499e-05/0.6174, allocations: 35.98 kB / 0.5672 GB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008436/0.6259, allocations: 9.499 MB / 0.5765 GB, free: 24.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004932/0.6308, allocations: 5.912 MB / 0.5822 GB, free: 18.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005312/0.6362, allocations: 4.231 MB / 0.5864 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000916/0.6371, allocations: 341.7 kB / 0.5867 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003089/0.6374, allocations: 40.11 kB / 0.5867 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009374/0.6384, allocations: 87.89 kB / 0.5868 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/0.6387, allocations: 133.1 kB / 0.5869 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.911e-05/0.6388, allocations: 59.98 kB / 0.587 GB, free: 13.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002334/0.6411, allocations: 1.936 MB / 0.5889 GB, free: 11.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6411, allocations: 0 / 0.5889 GB, free: 11.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003627/0.6447, allocations: 0.9007 MB / 0.5898 GB, free: 10.79 MB / 382.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.0003607/0.6451, allocations: 173.6 kB / 0.5899 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005629/0.6508, allocations: 4.23 MB / 0.5941 GB, free: 6.367 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.6508, allocations: 0 / 0.5941 GB, free: 6.367 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.6529, allocations: 1.749 MB / 0.5958 GB, free: 4.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/0.6549, allocations: 453.6 kB / 0.5962 GB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/0.6658, allocations: 7.533 MB / 0.6036 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002996/0.6688, allocations: 2.83 MB / 0.6063 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002925/0.6718, allocations: 1.314 MB / 0.6076 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004757/0.6722, allocations: 203.4 kB / 0.6078 GB, free: 8.18 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6723, allocations: 0 / 0.6078 GB, free: 8.18 MB / 398.1 MB Notification: Performance of Templates: time 0.0565/0.7288, allocations: 30.77 MB / 0.6378 GB, free: 9.68 MB / 430.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)