Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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",fileNamePrefix="Modelica_4.0.0_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.001519/0.001519, allocations: 110.3 kB / 17.28 MB, free: 6.219 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.00171/0.00171, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 46.08 kB / 300.8 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09353/0.09465, allocations: 49.45 MB / 350.2 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2003/0.295, allocations: 46.96 MB / 397.2 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0226/0.3176, allocations: 9.856 MB / 407.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01/0.3277, allocations: 200.5 kB / 407.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005311/0.3331, allocations: 2.64 MB / 409.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005673/0.3388, allocations: 1.832 MB / 411.7 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002059/0.3408, allocations: 0.7575 MB / 412.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006167/0.347, allocations: 4.632 MB / 417.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005106/0.3522, allocations: 3.752 MB / 420.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002808/0.355, allocations: 1.713 MB / 422.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003973/0.359, allocations: 2.582 MB / 425.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001644/0.3607, allocations: 356 kB / 425.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003749/0.3644, allocations: 1.295 MB / 426.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002742/0.3672, allocations: 2.135 MB / 428.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004064/0.3713, allocations: 2.458 MB / 431.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007243/0.3785, allocations: 5.882 MB / 437.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3786, allocations: 0 / 437.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3786, allocations: 0 / 437.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003237/0.3789, allocations: 4 kB / 437.3 MB, free: 13.66 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.01498/0.3939, allocations: 5.277 MB / 442.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.394, allocations: 8.031 kB / 442.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007971/0.4019, allocations: 2.116 MB / 444.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004752/0.4067, allocations: 2.493 MB / 447.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002375/0.407, allocations: 270.8 kB / 447.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/0.4083, allocations: 439.6 kB / 447.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/0.4299, allocations: 12.22 MB / 460.1 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001264/0.43, allocations: 51.47 kB / 460.1 MB, free: 5.844 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00055/0.4306, allocations: 171.8 kB / 460.3 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003027/0.4336, allocations: 2.158 MB / 462.5 MB, free: 3.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02173/0.4553, allocations: 10.22 MB / 472.7 MB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05725/0.5126, allocations: 44.3 MB / 0.5049 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/0.5241, allocations: 4.61 MB / 0.5094 GB, free: 6.922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002515/0.5267, allocations: 1.72 MB / 0.5111 GB, free: 5.191 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01217/0.5388, allocations: 8.23 MB / 0.5191 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/0.5389, allocations: 59.86 kB / 0.5192 GB, free: 12.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 7.134e-06/0.539, allocations: 0 / 0.5192 GB, free: 12.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2355/0.7744, allocations: 15.9 MB / 0.5347 GB, free: 151.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001204/0.7757, allocations: 1.698 MB / 0.5363 GB, free: 150.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007585/0.7833, allocations: 4.195 MB / 0.5404 GB, free: 148.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005238/0.7838, allocations: 57.7 kB / 0.5405 GB, free: 148.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00262/0.7865, allocations: 3.401 MB / 0.5438 GB, free: 146.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001177/0.7877, allocations: 0.8025 MB / 0.5446 GB, free: 145.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002005/0.7897, allocations: 1.364 MB / 0.5459 GB, free: 145 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.093e-05/0.7897, allocations: 304 kB / 0.5462 GB, free: 144.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003739/0.7935, allocations: 2.268 MB / 0.5484 GB, free: 144 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004992/0.7985, allocations: 6.39 MB / 0.5547 GB, free: 137.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00905/0.8076, allocations: 9.325 MB / 0.5638 GB, free: 129.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001956/0.8078, allocations: 44.31 kB / 0.5638 GB, free: 129.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02169/0.8295, allocations: 10.06 MB / 0.5736 GB, free: 126.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.809e-05/0.8296, allocations: 71.94 kB / 0.5737 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01005/0.8397, allocations: 3.786 MB / 0.5774 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009443/0.8492, allocations: 2.168 MB / 0.5795 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004971/0.8542, allocations: 1.583 MB / 0.5811 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007367/0.8616, allocations: 6.611 MB / 0.5875 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006081/0.8677, allocations: 435.3 kB / 0.5879 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/0.8689, allocations: 412 kB / 0.5883 GB, free: 110.9 MB / 446.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.003659/0.8726, allocations: 2.212 MB / 0.5905 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009342/0.8735, allocations: 367.2 kB / 0.5909 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005594/0.8791, allocations: 3.298 MB / 0.5941 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004259/0.8834, allocations: 2.745 MB / 0.5968 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/0.8834, allocations: 3.938 kB / 0.5968 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.369e-05/0.8835, allocations: 14.53 kB / 0.5968 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/0.9009, allocations: 10.33 MB / 0.6069 GB, free: 91.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-05/0.901, allocations: 16 kB / 0.6069 GB, free: 91.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.9024, allocations: 371.4 kB / 0.6072 GB, free: 91.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002554/0.905, allocations: 0.9942 MB / 0.6082 GB, free: 90.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.9052, allocations: 55.98 kB / 0.6082 GB, free: 90.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003869/0.909, allocations: 4.905 MB / 0.613 GB, free: 85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006945/0.9098, allocations: 1.554 MB / 0.6146 GB, free: 83.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008168/0.9179, allocations: 5.905 MB / 0.6203 GB, free: 77.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001692/0.9197, allocations: 444.1 kB / 0.6207 GB, free: 76.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006125/0.9203, allocations: 63.97 kB / 0.6208 GB, free: 76.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/0.9221, allocations: 139.8 kB / 0.6209 GB, free: 76.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/0.9224, allocations: 176.6 kB / 0.6211 GB, free: 76.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.9225, allocations: 83.97 kB / 0.6212 GB, free: 76.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00346/0.926, allocations: 2.589 MB / 0.6237 GB, free: 73.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.926, allocations: 0 / 0.6237 GB, free: 73.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006037/0.9321, allocations: 1.169 MB / 0.6249 GB, free: 72.52 MB / 446.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.0005428/0.9326, allocations: 227.7 kB / 0.6251 GB, free: 72.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01021/0.9429, allocations: 6.674 MB / 0.6316 GB, free: 65.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/0.9429, allocations: 7.938 kB / 0.6316 GB, free: 65.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/0.9464, allocations: 2.188 MB / 0.6337 GB, free: 63.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003355/0.9497, allocations: 0.4988 MB / 0.6342 GB, free: 62.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01661/0.9664, allocations: 13.38 MB / 0.6473 GB, free: 49.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002982/0.9694, allocations: 3.445 MB / 0.6507 GB, free: 45.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009649/0.9704, allocations: 327.4 kB / 0.651 GB, free: 45.46 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.9704, allocations: 0 / 0.651 GB, free: 45.46 MB / 446.1 MB Notification: Performance of Templates: time 0.2984/1.269, allocations: 141.2 MB / 0.7889 GB, free: 50.72 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches