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.0006721/0.0006721, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009011/0.001573, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006903/0.0006903, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008812/0.001572, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.062/1.062, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09375/1.156, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.03494/0.03494, allocations: 7.18 MB / 251.1 MB, free: 7.879 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.006647/0.04158, allocations: 2.549 MB / 253.7 MB, free: 5.324 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.643e-06/1.643e-06, allocations: 0 / 254.9 MB, free: 4.059 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.252e-05/2.416e-05, allocations: 2.312 kB / 255 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01594/0.01596, allocations: 9.396 MB / 264.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007477/0.02344, allocations: 2.95 MB / 267.3 MB, free: 7.652 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002118/0.02556, allocations: 47.81 kB / 267.3 MB, free: 7.605 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.02684, allocations: 468.9 kB / 267.8 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004797/0.03164, allocations: 1.621 MB / 269.4 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006645/0.0323, allocations: 179.5 kB / 269.6 MB, free: 5.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004401/0.03671, allocations: 2.949 MB / 272.5 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.0385, allocations: 0.9528 MB / 273.5 MB, free: 1.402 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1368/0.1753, allocations: 1.656 MB / 275.2 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002429/0.1778, allocations: 1.393 MB / 276.5 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006518/0.1784, allocations: 263.9 kB / 276.8 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.1799, allocations: 0.8649 MB / 277.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.181, allocations: 1.266 MB / 278.9 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001164/0.1822, allocations: 0.7835 MB / 279.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003639/0.1858, allocations: 3.393 MB / 283.1 MB, free: 2.688 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.597e-05/0.1858, allocations: 0 / 283.1 MB, free: 2.688 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1858, allocations: 1.531 kB / 283.1 MB, free: 2.688 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001463/0.186, allocations: 3.5 kB / 283.1 MB, free: 2.688 MB / 266.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.007793/0.1938, allocations: 4.914 MB / 288 MB, free: 1.062 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1938, allocations: 11.08 kB / 288 MB, free: 1.062 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00277/0.1966, allocations: 1.072 MB / 289.1 MB, free: 1.039 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.1981, allocations: 1.107 MB / 290.2 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-05/0.1982, allocations: 176.6 kB / 290.4 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/0.1984, allocations: 234.6 kB / 290.6 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004199/0.2026, allocations: 4.02 MB / 294.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.959e-05/0.2027, allocations: 34.78 kB / 294.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002141/0.2029, allocations: 110.9 kB / 294.8 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001542/0.2044, allocations: 1.837 MB / 296.6 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004219/0.2087, allocations: 2.252 MB / 298.9 MB, free: 12.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.2248, allocations: 21.47 MB / 320.3 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.2276, allocations: 1.335 MB / 321.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.228, allocations: 304 kB / 322 MB, free: 5.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003617/0.2316, allocations: 2.969 MB / 325 MB, free: 2.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.2316, allocations: 46.2 kB / 325 MB, free: 2.797 MB / 298.7 MB Notification: Performance of pre-optimization done (n=155): time 3.347e-06/0.2316, allocations: 0 / 325 MB, free: 2.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=197): time 0.01178/0.2434, allocations: 5.505 MB / 330.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003599/0.247, allocations: 4.712 MB / 335.2 MB, free: 8.551 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001749/0.2488, allocations: 2.045 MB / 337.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.734e-05/0.2488, allocations: 52.75 kB / 337.3 MB, free: 6.781 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009819/0.2498, allocations: 2.417 MB / 339.7 MB, free: 4.457 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003992/0.2502, allocations: 0.7515 MB / 340.5 MB, free: 3.746 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007946/0.251, allocations: 0.9091 MB / 341.4 MB, free: 2.934 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2511, allocations: 356.1 kB / 341.7 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009873/0.2521, allocations: 0.5707 MB / 342.3 MB, free: 2.023 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.2541, allocations: 3.096 MB / 345.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003268/0.2573, allocations: 4.206 MB / 349.6 MB, free: 8.484 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.973e-05/0.2574, allocations: 28 kB / 349.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=633) (initialization): time 0.00396/0.2613, allocations: 3.37 MB / 353 MB, free: 5.055 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/0.2614, allocations: 44 kB / 353 MB, free: 5.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.15e-05/0.2614, allocations: 95.94 kB / 353.1 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008565/0.2623, allocations: 485.8 kB / 353.6 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/0.2641, allocations: 1.131 MB / 354.7 MB, free: 3.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004679/0.2688, allocations: 6.21 MB / 361 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.2703, allocations: 184 kB / 361.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/0.2705, allocations: 244 kB / 361.4 MB, free: 12.47 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * 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 (566): * Single equations (assignments): 559 * 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.001373/0.2719, allocations: 497.1 kB / 361.9 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002277/0.2721, allocations: 179.8 kB / 362 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.2736, allocations: 1.206 MB / 363.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.546e-05/0.2737, allocations: 27.94 kB / 363.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.2737, allocations: 11.94 kB / 363.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.2737, allocations: 7.969 kB / 363.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006116/0.2798, allocations: 4.973 MB / 368.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.2798, allocations: 4 kB / 368.3 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.2803, allocations: 227.7 kB / 368.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.2805, allocations: 202.9 kB / 368.7 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009776/0.2815, allocations: 0.5274 MB / 369.2 MB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.91e-05/0.2815, allocations: 43.98 kB / 369.3 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004081/0.2856, allocations: 5.695 MB / 375 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002681/0.2883, allocations: 4.054 MB / 379 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.2901, allocations: 1.621 MB / 380.6 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.2902, allocations: 36 kB / 380.7 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003639/0.2906, allocations: 35.98 kB / 380.7 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.2908, allocations: 145 kB / 380.8 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.499e-05/0.2908, allocations: 47.97 kB / 380.9 MB, free: 8.516 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000646/0.2915, allocations: 0.7312 MB / 381.6 MB, free: 7.762 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2915, allocations: 0 / 381.6 MB, free: 7.762 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002309/0.2938, allocations: 0.8866 MB / 382.5 MB, free: 6.875 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.000278/0.2941, allocations: 152 kB / 382.7 MB, free: 6.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.2966, allocations: 2.497 MB / 385.1 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001195/0.2967, allocations: 67.31 kB / 385.2 MB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009482/0.2976, allocations: 1.083 MB / 386.3 MB, free: 2.992 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008736/0.2985, allocations: 0.5019 MB / 386.8 MB, free: 2.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009946/0.3085, allocations: 6.696 MB / 393.5 MB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.3095, allocations: 1.031 MB / 394.5 MB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008061/0.3103, allocations: 355.7 kB / 394.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005563/0.3109, allocations: 421.2 kB / 395.3 MB, free: 9.863 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3109, allocations: 0 / 395.3 MB, free: 9.863 MB / 378.7 MB Notification: Performance of Templates: time 0.1558/0.4667, allocations: 29.53 MB / 424.8 MB, free: 114.2 MB / 394.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=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.9518761290237308]