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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.05024/0.05024, allocations: 7.181 MB / 266.7 MB, free: 6.094 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 3.938 kB / 338.1 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.012e-05, allocations: 2.312 kB / 338.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.006602/0.006623, allocations: 8.582 MB / 346.7 MB, free: 1.945 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004743/0.01137, allocations: 2.766 MB / 349.5 MB, free: 15.17 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006549/0.01202, allocations: 47.81 kB / 349.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000933/0.01295, allocations: 436.9 kB / 349.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003421/0.01637, allocations: 1.66 MB / 351.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.01682, allocations: 183.5 kB / 351.8 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003621/0.02044, allocations: 2.938 MB / 354.7 MB, free: 9.902 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00134/0.02178, allocations: 0.9275 MB / 355.7 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.02402, allocations: 1.59 MB / 357.2 MB, free: 7.348 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002117/0.02613, allocations: 1.445 MB / 358.7 MB, free: 5.898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000413/0.02655, allocations: 260 kB / 358.9 MB, free: 5.645 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.02807, allocations: 0.8658 MB / 359.8 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001496/0.02956, allocations: 1.41 MB / 361.2 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001227/0.03079, allocations: 0.9421 MB / 362.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006967/0.03776, allocations: 5.454 MB / 367.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.03776, allocations: 3.984 kB / 367.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.03776, allocations: 4 kB / 367.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.158e-05/0.03784, allocations: 0 / 367.6 MB, free: 12.94 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1310 * Number of variables: 1310 Notification: Performance of Generate backend data structure: time 0.0138/0.05164, allocations: 5.252 MB / 372.9 MB, free: 7.629 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.05168, allocations: 16.62 kB / 372.9 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007852/0.05953, allocations: 2.354 MB / 375.2 MB, free: 5.254 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003017/0.06255, allocations: 1.462 MB / 376.7 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.06273, allocations: 176.7 kB / 376.9 MB, free: 3.586 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005106/0.06324, allocations: 235.9 kB / 377.1 MB, free: 3.355 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/0.07909, allocations: 8.969 MB / 386.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.938e-05/0.07918, allocations: 31.75 kB / 386.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003609/0.07954, allocations: 115.8 kB / 386.2 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00361/0.08315, allocations: 2.017 MB / 388.2 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01547/0.09862, allocations: 7.931 MB / 396.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1582/0.2568, allocations: 26.27 MB / 422.4 MB, free: 58.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00652/0.2633, allocations: 2.437 MB / 424.9 MB, free: 58.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.2646, allocations: 0.9275 MB / 425.8 MB, free: 58.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0067/0.2713, allocations: 4.013 MB / 429.8 MB, free: 57.2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.2713, allocations: 43.34 kB / 429.9 MB, free: 57.15 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.506e-06/0.2713, allocations: 0 / 429.9 MB, free: 57.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=197): time 0.01875/0.29, allocations: 9.757 MB / 439.6 MB, free: 53.06 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005998/0.296, allocations: 6.473 MB / 446.1 MB, free: 46.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/0.2987, allocations: 2.592 MB / 448.7 MB, free: 43.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.2988, allocations: 57.7 kB / 448.7 MB, free: 43.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007455/0.2996, allocations: 2.49 MB / 451.2 MB, free: 41.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003638/0.2999, allocations: 0.7503 MB / 452 MB, free: 40.65 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009251/0.3008, allocations: 0.9468 MB / 452.9 MB, free: 39.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.632e-05/0.3009, allocations: 353.9 kB / 453.3 MB, free: 39.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001868/0.3028, allocations: 1.548 MB / 454.8 MB, free: 37.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002594/0.3054, allocations: 4.138 MB / 459 MB, free: 32.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004636/0.31, allocations: 6.108 MB / 465.1 MB, free: 25.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-05/0.31, allocations: 35.94 kB / 465.1 MB, free: 25.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=629) (initialization): time 0.007643/0.3177, allocations: 6.295 MB / 471.4 MB, free: 18.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.3177, allocations: 44 kB / 471.4 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.847e-05/0.3178, allocations: 91.95 kB / 471.5 MB, free: 18.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/0.3195, allocations: 0.7304 MB / 472.3 MB, free: 17.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002545/0.322, allocations: 1.033 MB / 473.3 MB, free: 16.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00764/0.3297, allocations: 8.881 MB / 482.2 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/0.3324, allocations: 267.5 kB / 482.4 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002756/0.3326, allocations: 280 kB / 482.7 MB, free: 7.098 MB / 330.7 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 (562): * Single equations (assignments): 555 * 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.001725/0.3344, allocations: 1.724 MB / 484.4 MB, free: 5.359 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003303/0.3347, allocations: 290.5 kB / 484.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003868/0.3386, allocations: 2.831 MB / 487.5 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.561e-05/0.3386, allocations: 39.92 kB / 487.6 MB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3387, allocations: 4 kB / 487.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.3387, allocations: 7.969 kB / 487.6 MB, free: 2.172 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01471/0.3534, allocations: 8.23 MB / 495.8 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.3534, allocations: 4 kB / 495.8 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008621/0.3542, allocations: 211.7 kB / 496 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002462/0.3567, allocations: 0.7869 MB / 496.8 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.3568, allocations: 34.69 kB / 496.9 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/0.3703, allocations: 9.061 MB / 0.4941 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008055/0.3783, allocations: 5.66 MB / 0.4996 GB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008033/0.3864, allocations: 4.199 MB / 0.5037 GB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007498/0.3871, allocations: 226.4 kB / 0.5039 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.3874, allocations: 28 kB / 0.5039 GB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009511/0.3883, allocations: 99.47 kB / 0.504 GB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003487/0.3887, allocations: 140.8 kB / 0.5042 GB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.3888, allocations: 59.98 kB / 0.5042 GB, free: 4.762 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00246/0.3913, allocations: 1.501 MB / 0.5057 GB, free: 3.242 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3913, allocations: 0 / 0.5057 GB, free: 3.242 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003865/0.3951, allocations: 0.8788 MB / 0.5065 GB, free: 2.363 MB / 362.7 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.0004146/0.3956, allocations: 174.4 kB / 0.5067 GB, free: 2.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007509/0.4031, allocations: 4.096 MB / 0.5107 GB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4031, allocations: 0 / 0.5107 GB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002985/0.4061, allocations: 1.669 MB / 0.5123 GB, free: 12.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.4078, allocations: 333.6 kB / 0.5127 GB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.4214, allocations: 7.747 MB / 0.5202 GB, free: 4.195 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003457/0.4248, allocations: 2.287 MB / 0.5225 GB, free: 1.879 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003299/0.4281, allocations: 1.256 MB / 0.5237 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000493/0.4286, allocations: 176.5 kB / 0.5238 GB, free: 456 kB / 378.7 MB Notification: Performance of SimCode: time 1.423e-06/0.4286, allocations: 4 kB / 0.5239 GB, free: 452 kB / 378.7 MB Notification: Performance of Templates: time 0.05783/0.4864, allocations: 26.44 MB / 0.5497 GB, free: 6.414 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.1058641109848395]