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.001055/0.001055, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001216/0.001216, allocations: 172.7 kB / 15.95 MB, free: 208 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.405/1.405, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2061/0.2061, allocations: 9.11 MB / 300.2 MB, free: 2.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004119/0.000412, allocations: 8 kB / 363.1 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1164, allocations: 52.44 MB / 415.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2451/0.3615, allocations: 35.93 MB / 451.5 MB, free: 22.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01894/0.3805, allocations: 8.071 MB / 459.5 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008483/0.3891, allocations: 152.8 kB / 459.7 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006301/0.3954, allocations: 1.783 MB / 461.5 MB, free: 16.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02075/0.4162, allocations: 6.198 MB / 467.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002138/0.4184, allocations: 178.4 kB / 467.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004135/0.4225, allocations: 3.142 MB / 471 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.4242, allocations: 0.9431 MB / 471.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.4257, allocations: 0.915 MB / 472.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001775/0.4275, allocations: 1.444 MB / 474.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00034/0.4279, allocations: 147.4 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001339/0.4292, allocations: 0.6819 MB / 475.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.4304, allocations: 1.228 MB / 476.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007181/0.4311, allocations: 0.7099 MB / 477.1 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00554/0.4367, allocations: 4.004 MB / 481.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.4367, allocations: 0 / 481.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4367, allocations: 1.219 kB / 481.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001875/0.4369, allocations: 0 / 481.1 MB, free: 8.793 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.01303/0.45, allocations: 4.485 MB / 485.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.45, allocations: 9.625 kB / 485.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007202/0.4572, allocations: 1.852 MB / 487.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003717/0.461, allocations: 1.473 MB / 488.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.4612, allocations: 179.5 kB / 489.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008134/0.462, allocations: 224.7 kB / 489.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02545/0.4875, allocations: 8.932 MB / 498.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003227/0.4879, allocations: 28.12 kB / 498.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001585/0.4895, allocations: 113.7 kB / 498.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004522/0.494, allocations: 2.013 MB / 0.4886 GB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0209/0.5149, allocations: 7.928 MB / 0.4964 GB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05154/0.5665, allocations: 28.55 MB / 0.5243 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008368/0.575, allocations: 2.807 MB / 0.527 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00253/0.5775, allocations: 0.9879 MB / 0.528 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01514/0.5927, allocations: 6.463 MB / 0.5343 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.058e-05/0.5928, allocations: 47.88 kB / 0.5343 GB, free: 14.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 8.015e-06/0.5929, allocations: 0 / 0.5343 GB, free: 14.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.03334/0.6262, allocations: 9.734 MB / 0.5438 GB, free: 4.625 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01195/0.6382, allocations: 6.458 MB / 0.5501 GB, free: 13.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005752/0.644, allocations: 3.007 MB / 0.5531 GB, free: 10.85 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003707/0.6444, allocations: 53.64 kB / 0.5531 GB, free: 10.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002091/0.6465, allocations: 2.358 MB / 0.5554 GB, free: 8.398 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001377/0.6479, allocations: 0.7208 MB / 0.5561 GB, free: 7.668 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002985/0.6482, allocations: 96 kB / 0.5562 GB, free: 7.574 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003511/0.6486, allocations: 0.4967 MB / 0.5567 GB, free: 7.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002786/0.6514, allocations: 1.524 MB / 0.5582 GB, free: 5.535 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00435/0.6558, allocations: 4.106 MB / 0.5622 GB, free: 156 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003946/0.6597, allocations: 2.49 MB / 0.5646 GB, free: 13.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.252e-05/0.6598, allocations: 28 kB / 0.5647 GB, free: 13.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01023/0.67, allocations: 6.022 MB / 0.5705 GB, free: 7.594 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.165e-05/0.6701, allocations: 44.97 kB / 0.5706 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.754e-05/0.6702, allocations: 88 kB / 0.5707 GB, free: 7.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.6716, allocations: 0.589 MB / 0.5712 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003022/0.6747, allocations: 1.025 MB / 0.5722 GB, free: 5.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2408/0.9155, allocations: 8.497 MB / 0.5805 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00394/0.9194, allocations: 257.4 kB / 0.5808 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/0.9206, allocations: 279.6 kB / 0.5811 GB, free: 117.7 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 (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 {(5,56.0%) 19,(2,100.0%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.004669/0.9253, allocations: 1.73 MB / 0.5827 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005318/0.9258, allocations: 261.5 kB / 0.583 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004992/0.9308, allocations: 2.893 MB / 0.5858 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.905e-05/0.9309, allocations: 33.02 kB / 0.5859 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.9309, allocations: 6.953 kB / 0.5859 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.931, allocations: 6.609 kB / 0.5859 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01579/0.9468, allocations: 9.321 MB / 0.595 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.9468, allocations: 8.453 kB / 0.595 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007738/0.9476, allocations: 217.7 kB / 0.5952 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/0.949, allocations: 0.6088 MB / 0.5958 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.9492, allocations: 40.41 kB / 0.5958 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008752/0.9579, allocations: 8.71 MB / 0.6043 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005413/0.9634, allocations: 5.669 MB / 0.6099 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006057/0.9695, allocations: 4.216 MB / 0.614 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.9711, allocations: 357.9 kB / 0.6143 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003281/0.9715, allocations: 37.55 kB / 0.6144 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009656/0.9725, allocations: 88.91 kB / 0.6144 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003722/0.9728, allocations: 133.8 kB / 0.6146 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/0.973, allocations: 52.16 kB / 0.6146 GB, free: 103 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004143/0.9771, allocations: 1.919 MB / 0.6165 GB, free: 102.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9772, allocations: 4.875 kB / 0.6165 GB, free: 102.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005789/0.983, allocations: 0.8988 MB / 0.6174 GB, free: 102.2 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 (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 {(5,56.0%) 15,(3,100.0%) 10} * Non-linear torn systems: 1 {3 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005561/0.9835, allocations: 163.8 kB / 0.6175 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008552/0.9921, allocations: 4.194 MB / 0.6216 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.9922, allocations: 1.25 kB / 0.6216 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003491/0.9956, allocations: 1.735 MB / 0.6233 GB, free: 99.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/0.999, allocations: 419.8 kB / 0.6237 GB, free: 99.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/1.016, allocations: 8.96 MB / 0.6325 GB, free: 94.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00375/1.02, allocations: 2.828 MB / 0.6352 GB, free: 93.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003872/1.024, allocations: 1.326 MB / 0.6365 GB, free: 93.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005934/1.025, allocations: 210.9 kB / 0.6367 GB, free: 93.29 MB / 446.1 MB Notification: Performance of SimCode: time 1.363e-06/1.025, allocations: 0 / 0.6367 GB, free: 93.29 MB / 446.1 MB Notification: Performance of Templates: time 0.05942/1.084, allocations: 32.47 MB / 0.6684 GB, free: 66.51 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)