Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009042/0.0009042, allocations: 88.39 kB / 16.31 MB, free: 6.453 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.0009011/0.0009011, allocations: 183.1 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.4 MB / 223.4 MB, free: 5.578 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004372, allocations: 12 kB / 280.2 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2704, allocations: 47.58 MB / 327.7 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04061/0.3111, allocations: 42.54 MB / 370.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02271/0.3339, allocations: 9.442 MB / 379.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01085/0.3448, allocations: 199.5 kB / 379.9 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007633/0.3524, allocations: 2.185 MB / 382.1 MB, free: 13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02006/0.3725, allocations: 6.595 MB / 388.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003806/0.3764, allocations: 0.6982 MB / 389.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007433/0.3838, allocations: 5.213 MB / 394.6 MB, free: 456 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007679/0.3915, allocations: 4.52 MB / 399.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003119/0.3947, allocations: 1.405 MB / 400.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003704/0.3984, allocations: 2.189 MB / 402.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001214/0.3996, allocations: 164 kB / 402.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/0.4025, allocations: 0.983 MB / 403.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00279/0.4053, allocations: 1.874 MB / 405.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.4069, allocations: 0.8972 MB / 406.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006212/0.4131, allocations: 5.709 MB / 412.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.4131, allocations: 0 / 412.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4132, allocations: 0 / 412.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002867/0.4135, allocations: 0 / 412.3 MB, free: 14.61 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.009943/0.4234, allocations: 4.392 MB / 416.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4235, allocations: 16.02 kB / 416.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008256/0.4317, allocations: 2.158 MB / 418.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005997/0.4378, allocations: 2.54 MB / 421.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003149/0.4381, allocations: 274.8 kB / 421.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/0.4397, allocations: 431.5 kB / 422.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02772/0.4674, allocations: 12.22 MB / 434.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000251/0.4677, allocations: 47.53 kB / 434.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001402/0.4691, allocations: 175.8 kB / 434.6 MB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003614/0.4727, allocations: 2.162 MB / 436.7 MB, free: 5.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02313/0.4959, allocations: 10.19 MB / 446.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.246/0.742, allocations: 44.28 MB / 491.2 MB, free: 79.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009962/0.752, allocations: 4.616 MB / 495.8 MB, free: 77.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002424/0.7545, allocations: 1.716 MB / 497.5 MB, free: 76.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01162/0.7661, allocations: 8.235 MB / 0.4939 GB, free: 70.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.7662, allocations: 55.75 kB / 0.494 GB, free: 70.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 6.171e-06/0.7662, allocations: 0 / 0.494 GB, free: 70.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03458/0.8008, allocations: 15.95 MB / 0.5095 GB, free: 54.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009083/0.8018, allocations: 1.605 MB / 0.5111 GB, free: 52.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004922/0.8067, allocations: 4.189 MB / 0.5152 GB, free: 48.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004685/0.8072, allocations: 55.81 kB / 0.5153 GB, free: 48.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.8088, allocations: 3.409 MB / 0.5186 GB, free: 45.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006241/0.8094, allocations: 0.8037 MB / 0.5194 GB, free: 44.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002553/0.8097, allocations: 140.1 kB / 0.5195 GB, free: 44.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002433/0.8099, allocations: 0.5953 MB / 0.5201 GB, free: 43.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002691/0.8126, allocations: 2.235 MB / 0.5223 GB, free: 41.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004425/0.817, allocations: 6.371 MB / 0.5285 GB, free: 32.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00421/0.8213, allocations: 3.655 MB / 0.5321 GB, free: 29.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.542e-05/0.8213, allocations: 40 kB / 0.5321 GB, free: 29.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.0184/0.8398, allocations: 10.01 MB / 0.5419 GB, free: 19.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.414e-05/0.8399, allocations: 68.25 kB / 0.5419 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008918/0.8488, allocations: 3.781 MB / 0.5456 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008354/0.8572, allocations: 2.195 MB / 0.5478 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005241/0.8625, allocations: 1.583 MB / 0.5493 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006633/0.8691, allocations: 6.044 MB / 0.5552 GB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004996/0.8741, allocations: 435.5 kB / 0.5556 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006353/0.8748, allocations: 416 kB / 0.556 GB, free: 4.406 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003223/0.878, allocations: 2.212 MB / 0.5582 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00053/0.8786, allocations: 383.1 kB / 0.5586 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005662/0.8842, allocations: 3.282 MB / 0.5618 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004937/0.8892, allocations: 2.746 MB / 0.5644 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.8892, allocations: 0 / 0.5644 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-05/0.8893, allocations: 11.97 kB / 0.5645 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/0.9075, allocations: 10.34 MB / 0.5746 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.78e-05/0.9076, allocations: 16 kB / 0.5746 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/0.909, allocations: 363.4 kB / 0.5749 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002697/0.9117, allocations: 0.9828 MB / 0.5759 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.9119, allocations: 67.97 kB / 0.5759 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004981/0.9169, allocations: 4.59 MB / 0.5804 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001083/0.918, allocations: 1.486 MB / 0.5819 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008926/0.9269, allocations: 5.891 MB / 0.5876 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/0.9288, allocations: 0.66 MB / 0.5883 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004174/0.9293, allocations: 67.42 kB / 0.5883 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.9308, allocations: 143.8 kB / 0.5885 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003334/0.9311, allocations: 172.5 kB / 0.5886 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.9313, allocations: 79.98 kB / 0.5887 GB, free: 1.984 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004523/0.9358, allocations: 2.586 MB / 0.5912 GB, free: 15.39 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.9358, allocations: 0 / 0.5912 GB, free: 15.39 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006609/0.9424, allocations: 1.161 MB / 0.5924 GB, free: 14.23 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005811/0.9431, allocations: 219.8 kB / 0.5926 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01089/0.954, allocations: 5.929 MB / 0.5984 GB, free: 8.051 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/0.954, allocations: 8 kB / 0.5984 GB, free: 8.043 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004383/0.9584, allocations: 2.174 MB / 0.6005 GB, free: 5.797 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/0.9619, allocations: 495 kB / 0.601 GB, free: 5.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2187/1.181, allocations: 12.63 MB / 0.6133 GB, free: 141.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003347/1.184, allocations: 3.462 MB / 0.6167 GB, free: 140.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005147/1.189, allocations: 2.024 MB / 0.6187 GB, free: 140.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006389/1.19, allocations: 274.4 kB / 0.6189 GB, free: 140.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/1.19, allocations: 0 / 0.6189 GB, free: 140.5 MB / 430.1 MB Notification: Performance of Templates: time 0.06038/1.25, allocations: 39.42 MB / 0.6574 GB, free: 107.8 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)