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.007645/0.007645, allocations: 101 kB / 15.73 MB, free: 6.441 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.001416/0.001416, allocations: 195.9 kB / 16.68 MB, free: 6.355 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1875/0.1875, allocations: 9.112 MB / 299.6 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 59.91 kB / 414.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3247, allocations: 51.42 MB / 466.1 MB, free: 18.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01016/0.3349, allocations: 9.732 MB / 475.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007401/0.3423, allocations: 2.837 MB / 478.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.3446, allocations: 40.16 kB / 478.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001644/0.3463, allocations: 420.2 kB / 479.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004351/0.3507, allocations: 1.527 MB / 480.6 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007384/0.3515, allocations: 188 kB / 480.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004133/0.3556, allocations: 2.865 MB / 483.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.3569, allocations: 1.071 MB / 484.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001354/0.3582, allocations: 1.033 MB / 485.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001573/0.3598, allocations: 1.463 MB / 487.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003928/0.3602, allocations: 260.3 kB / 487.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.3617, allocations: 0.8574 MB / 488.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009982/0.3627, allocations: 1.357 MB / 489.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001332/0.3641, allocations: 1.761 MB / 491.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005881/0.37, allocations: 5.467 MB / 496.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.37, allocations: 0 / 496.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.37, allocations: 3.938 kB / 496.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001273/0.3701, allocations: 0 / 496.9 MB, free: 13.21 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.01158/0.3817, allocations: 5.17 MB / 0.4903 GB, free: 7.977 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3818, allocations: 8.031 kB / 0.4903 GB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006153/0.3879, allocations: 1.809 MB / 0.4921 GB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.3904, allocations: 1.506 MB / 0.4936 GB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.3906, allocations: 180.3 kB / 0.4938 GB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004211/0.391, allocations: 231.8 kB / 0.494 GB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01348/0.4045, allocations: 8.948 MB / 0.5027 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.499e-05/0.4046, allocations: 31.66 kB / 0.5027 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003232/0.4049, allocations: 111.8 kB / 0.5029 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002999/0.4079, allocations: 2.017 MB / 0.5048 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/0.4235, allocations: 7.963 MB / 0.5126 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03632/0.4598, allocations: 28.47 MB / 0.5404 GB, free: 3.566 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006961/0.4668, allocations: 2.812 MB / 0.5431 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.4683, allocations: 0.986 MB / 0.5441 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009644/0.4779, allocations: 6.465 MB / 0.5504 GB, free: 8.555 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/0.478, allocations: 51.88 kB / 0.5505 GB, free: 8.496 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 5.961e-06/0.4781, allocations: 3.938 kB / 0.5505 GB, free: 8.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.02267/0.5007, allocations: 9.754 MB / 0.56 GB, free: 14.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00806/0.5088, allocations: 6.778 MB / 0.5666 GB, free: 7.527 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004952/0.5138, allocations: 3.023 MB / 0.5696 GB, free: 4.492 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003499/0.5142, allocations: 61.69 kB / 0.5696 GB, free: 4.426 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001715/0.5159, allocations: 2.361 MB / 0.5719 GB, free: 2.031 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008353/0.5168, allocations: 0.7169 MB / 0.5726 GB, free: 1.305 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001245/0.518, allocations: 0.9407 MB / 0.5736 GB, free: 360 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.5181, allocations: 301.1 kB / 0.5738 GB, free: 56 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002488/0.5206, allocations: 1.54 MB / 0.5753 GB, free: 14.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004107/0.5248, allocations: 4.126 MB / 0.5794 GB, free: 9.105 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007249/0.532, allocations: 6.109 MB / 0.5853 GB, free: 1.738 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.158e-05/0.5321, allocations: 27.98 kB / 0.5854 GB, free: 1.711 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.2686/0.8007, allocations: 6.053 MB / 0.5913 GB, free: 107.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.319e-05/0.8008, allocations: 43.41 kB / 0.5913 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/0.801, allocations: 89.56 kB / 0.5914 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.8025, allocations: 0.5795 MB / 0.592 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003386/0.8059, allocations: 1.021 MB / 0.593 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/0.8162, allocations: 9.312 MB / 0.6021 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003665/0.8199, allocations: 246.2 kB / 0.6023 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006723/0.8206, allocations: 282.1 kB / 0.6026 GB, free: 101.1 MB / 462.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.002847/0.8234, allocations: 1.726 MB / 0.6042 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004234/0.8239, allocations: 269.5 kB / 0.6045 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004561/0.8284, allocations: 2.911 MB / 0.6074 GB, free: 99.18 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/0.8286, allocations: 30.89 kB / 0.6074 GB, free: 99.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.8286, allocations: 5.031 kB / 0.6074 GB, free: 99.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.8286, allocations: 8.609 kB / 0.6074 GB, free: 99.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.8434, allocations: 9.267 MB / 0.6164 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.8435, allocations: 3.469 kB / 0.6164 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006983/0.8442, allocations: 215 kB / 0.6167 GB, free: 95.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/0.8455, allocations: 0.6005 MB / 0.6172 GB, free: 95.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.89e-05/0.8456, allocations: 41.81 kB / 0.6173 GB, free: 95.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008403/0.854, allocations: 9.492 MB / 0.6265 GB, free: 88.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004858/0.8589, allocations: 5.92 MB / 0.6323 GB, free: 84.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005664/0.8646, allocations: 4.23 MB / 0.6365 GB, free: 80.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008915/0.8655, allocations: 341.7 kB / 0.6368 GB, free: 80.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002682/0.8657, allocations: 35.98 kB / 0.6368 GB, free: 80.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008754/0.8666, allocations: 91.95 kB / 0.6369 GB, free: 79.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.8669, allocations: 132.4 kB / 0.637 GB, free: 79.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.392e-05/0.867, allocations: 55.98 kB / 0.6371 GB, free: 79.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002443/0.8694, allocations: 1.94 MB / 0.639 GB, free: 77.81 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8695, allocations: 0 / 0.639 GB, free: 77.81 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003991/0.8734, allocations: 0.901 MB / 0.6399 GB, free: 76.91 MB / 462.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.0003586/0.8738, allocations: 168.7 kB / 0.64 GB, free: 76.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006381/0.8802, allocations: 4.23 MB / 0.6442 GB, free: 72.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/0.8803, allocations: 0 / 0.6442 GB, free: 72.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002491/0.8828, allocations: 1.752 MB / 0.6459 GB, free: 70.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/0.8851, allocations: 441.9 kB / 0.6463 GB, free: 70.29 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/0.8967, allocations: 7.53 MB / 0.6536 GB, free: 62.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003244/0.9, allocations: 2.838 MB / 0.6564 GB, free: 59.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002831/0.9029, allocations: 1.317 MB / 0.6577 GB, free: 58.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004542/0.9034, allocations: 195.4 kB / 0.6579 GB, free: 58.31 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.9034, allocations: 1.969 kB / 0.6579 GB, free: 58.31 MB / 462.1 MB Notification: Performance of Templates: time 0.05521/0.9586, allocations: 32.57 MB / 0.6897 GB, free: 25.96 MB / 462.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)