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.001078/0.001078, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001193/0.001194, allocations: 194.8 kB / 18.01 MB, free: 5.055 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.437/1.437, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.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.001235/0.001236, allocations: 47.94 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09339/0.09463, allocations: 46.61 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2457/0.3404, allocations: 12.04 MB / 386.5 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.3505, allocations: 4.192 MB / 390.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002794/0.3534, allocations: 72.81 kB / 390.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005196/0.3587, allocations: 2.753 MB / 393.5 MB, free: 2.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007231/0.3659, allocations: 1.977 MB / 395.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002357/0.3683, allocations: 0.801 MB / 396.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.3783, allocations: 4.632 MB / 401 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00741/0.3858, allocations: 3.56 MB / 404.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004452/0.3902, allocations: 1.702 MB / 406.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005414/0.3957, allocations: 2.343 MB / 408.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002309/0.398, allocations: 351.3 kB / 408.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004694/0.4027, allocations: 1.269 MB / 410.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003787/0.4065, allocations: 2.104 MB / 412.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004234/0.4108, allocations: 2.43 MB / 414.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009737/0.4205, allocations: 7.575 MB / 422.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4206, allocations: 0 / 422.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4206, allocations: 4 kB / 422.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002091/0.4208, allocations: 0 / 422.3 MB, free: 15.59 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.01068/0.4315, allocations: 5.413 MB / 427.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.4316, allocations: 12.03 kB / 427.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008327/0.4399, allocations: 2.139 MB / 429.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006214/0.4462, allocations: 2.646 MB / 432.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002628/0.4465, allocations: 282.8 kB / 432.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/0.4479, allocations: 431.6 kB / 433.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02554/0.4735, allocations: 12.22 MB / 445.4 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001597/0.4737, allocations: 47.58 kB / 445.5 MB, free: 7.465 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006755/0.4744, allocations: 175.8 kB / 445.6 MB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003648/0.478, allocations: 2.166 MB / 447.8 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02223/0.5003, allocations: 10.2 MB / 458 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05444/0.5548, allocations: 44.22 MB / 0.4904 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/0.5663, allocations: 4.609 MB / 0.4949 GB, free: 8.637 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00258/0.5689, allocations: 1.72 MB / 0.4966 GB, free: 6.906 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0124/0.5813, allocations: 8.241 MB / 0.5047 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.407e-05/0.5814, allocations: 55.81 kB / 0.5047 GB, free: 14.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.54e-06/0.5814, allocations: 0 / 0.5047 GB, free: 14.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04065/0.6221, allocations: 16.21 MB / 0.5206 GB, free: 13.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00134/0.6235, allocations: 1.703 MB / 0.5222 GB, free: 11.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005662/0.6292, allocations: 4.224 MB / 0.5263 GB, free: 7.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003911/0.6296, allocations: 53.7 kB / 0.5264 GB, free: 7.672 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002252/0.6318, allocations: 3.54 MB / 0.5299 GB, free: 4.098 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000917/0.6328, allocations: 0.849 MB / 0.5307 GB, free: 3.242 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001668/0.6344, allocations: 1.37 MB / 0.532 GB, free: 1.863 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.849e-05/0.6345, allocations: 301.1 kB / 0.5323 GB, free: 1.566 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003317/0.6379, allocations: 2.262 MB / 0.5345 GB, free: 15.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005883/0.6438, allocations: 6.398 MB / 0.5408 GB, free: 6.852 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2407/0.8845, allocations: 9.318 MB / 0.5499 GB, free: 139.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001691/0.8847, allocations: 42.19 kB / 0.5499 GB, free: 139.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02678/0.9115, allocations: 10.08 MB / 0.5597 GB, free: 137.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000148/0.9117, allocations: 72.95 kB / 0.5598 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01201/0.9237, allocations: 3.789 MB / 0.5635 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01026/0.934, allocations: 2.166 MB / 0.5656 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005467/0.9395, allocations: 1.585 MB / 0.5672 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008221/0.9477, allocations: 6.604 MB / 0.5736 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005506/0.9533, allocations: 422.9 kB / 0.574 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009262/0.9542, allocations: 422.5 kB / 0.5744 GB, free: 132.4 MB / 478.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 (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003478/0.9577, allocations: 2.213 MB / 0.5766 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007083/0.9584, allocations: 395.1 kB / 0.577 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005667/0.9641, allocations: 3.292 MB / 0.5802 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004417/0.9685, allocations: 2.742 MB / 0.5829 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.9685, allocations: 0 / 0.5829 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/0.9686, allocations: 13.5 kB / 0.5829 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.983, allocations: 10.34 MB / 0.593 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/0.983, allocations: 19.94 kB / 0.593 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.9843, allocations: 367.5 kB / 0.5933 GB, free: 121.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002496/0.9869, allocations: 0.9902 MB / 0.5943 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/0.987, allocations: 61.66 kB / 0.5944 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00385/0.9909, allocations: 4.902 MB / 0.5992 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006927/0.9916, allocations: 1.556 MB / 0.6007 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007553/0.9992, allocations: 5.93 MB / 0.6065 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/1.001, allocations: 0.6748 MB / 0.6071 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004272/1.002, allocations: 63.98 kB / 0.6072 GB, free: 106.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/1.003, allocations: 143.8 kB / 0.6073 GB, free: 106.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/1.003, allocations: 172.4 kB / 0.6075 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.004, allocations: 75.5 kB / 0.6076 GB, free: 106.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003598/1.007, allocations: 2.613 MB / 0.6101 GB, free: 103.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.007, allocations: 0 / 0.6101 GB, free: 103.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005297/1.012, allocations: 1.161 MB / 0.6112 GB, free: 102.3 MB / 478.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 (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004551/1.013, allocations: 238.5 kB / 0.6115 GB, free: 102.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008643/1.022, allocations: 6.038 MB / 0.6174 GB, free: 96.06 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.624e-05/1.022, allocations: 4 kB / 0.6174 GB, free: 96.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003453/1.025, allocations: 2.192 MB / 0.6195 GB, free: 93.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/1.028, allocations: 0.4994 MB / 0.62 GB, free: 93.32 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/1.043, allocations: 10.79 MB / 0.6305 GB, free: 82.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002811/1.046, allocations: 3.467 MB / 0.6339 GB, free: 78.84 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003901/1.049, allocations: 2.024 MB / 0.6359 GB, free: 76.81 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006316/1.05, allocations: 271.4 kB / 0.6362 GB, free: 76.55 MB / 478.1 MB Notification: Performance of SimCode: time 1.162e-06/1.05, allocations: 4 kB / 0.6362 GB, free: 76.54 MB / 478.1 MB Notification: Performance of Templates: time 0.05719/1.107, allocations: 38.45 MB / 0.6737 GB, free: 38.15 MB / 478.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)