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.001036/0.001036, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.0009515/0.0009515, allocations: 190 kB / 17.54 MB, free: 6.066 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.333/1.333, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009652/0.0009653, allocations: 45.23 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0851/0.08608, allocations: 49.45 MB / 349.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2014/0.2875, allocations: 46.96 MB / 396.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.3098, allocations: 9.854 MB / 406.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01109/0.321, allocations: 199.2 kB / 406.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005744/0.3268, allocations: 2.633 MB / 409.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005098/0.332, allocations: 1.836 MB / 411.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.3336, allocations: 0.7689 MB / 411.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00542/0.339, allocations: 4.619 MB / 416.4 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003987/0.343, allocations: 3.758 MB / 420.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002156/0.3452, allocations: 1.713 MB / 421.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002818/0.348, allocations: 2.582 MB / 424.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000589/0.3487, allocations: 352 kB / 424.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.3507, allocations: 1.303 MB / 426.1 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/0.3525, allocations: 2.139 MB / 428.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002128/0.3546, allocations: 2.447 MB / 430.7 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006729/0.3614, allocations: 7.313 MB / 438 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3614, allocations: 3.938 kB / 438 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3614, allocations: 0 / 438 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001604/0.3616, allocations: 0 / 438 MB, free: 12.22 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.008794/0.3704, allocations: 5.277 MB / 443.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.3704, allocations: 15.97 kB / 443.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007944/0.3784, allocations: 2.108 MB / 445.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005047/0.3835, allocations: 2.482 MB / 447.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/0.3837, allocations: 286.7 kB / 448.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009599/0.3847, allocations: 423.7 kB / 448.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02085/0.4055, allocations: 12.22 MB / 460.8 MB, free: 4.469 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.4057, allocations: 51.47 kB / 460.9 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000415/0.4061, allocations: 175.8 kB / 461.1 MB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.4091, allocations: 2.158 MB / 463.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/0.4295, allocations: 10.21 MB / 473.4 MB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0528/0.4823, allocations: 44.32 MB / 0.5056 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/0.4937, allocations: 4.601 MB / 0.5101 GB, free: 5.488 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002594/0.4964, allocations: 1.731 MB / 0.5118 GB, free: 3.746 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.5081, allocations: 8.227 MB / 0.5198 GB, free: 11.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.5082, allocations: 55.81 kB / 0.5199 GB, free: 11.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.599e-06/0.5082, allocations: 4 kB / 0.5199 GB, free: 11.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2064/0.7146, allocations: 15.91 MB / 0.5354 GB, free: 151.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001185/0.7159, allocations: 1.686 MB / 0.5371 GB, free: 149.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007692/0.7236, allocations: 4.196 MB / 0.5412 GB, free: 148.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004872/0.7241, allocations: 61.56 kB / 0.5412 GB, free: 148.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.7266, allocations: 3.401 MB / 0.5446 GB, free: 145.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001114/0.7278, allocations: 0.8031 MB / 0.5453 GB, free: 145 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00197/0.7297, allocations: 1.363 MB / 0.5467 GB, free: 144.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.376e-05/0.7298, allocations: 305.4 kB / 0.547 GB, free: 144.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003574/0.7334, allocations: 2.265 MB / 0.5492 GB, free: 143.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004762/0.7381, allocations: 6.389 MB / 0.5554 GB, free: 137.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009062/0.7472, allocations: 9.318 MB / 0.5645 GB, free: 129.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001704/0.7474, allocations: 41.97 kB / 0.5646 GB, free: 129.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02121/0.7686, allocations: 10.07 MB / 0.5744 GB, free: 125 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.7688, allocations: 68 kB / 0.5745 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009909/0.7788, allocations: 3.79 MB / 0.5782 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009023/0.7878, allocations: 2.174 MB / 0.5803 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004768/0.7926, allocations: 1.579 MB / 0.5818 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007425/0.8001, allocations: 6.615 MB / 0.5883 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00542/0.8055, allocations: 427.5 kB / 0.5887 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/0.8066, allocations: 416 kB / 0.5891 GB, free: 109.8 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.004057/0.8106, allocations: 2.215 MB / 0.5912 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009002/0.8115, allocations: 379.1 kB / 0.5916 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005498/0.817, allocations: 3.294 MB / 0.5948 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004136/0.8212, allocations: 2.734 MB / 0.5975 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.8212, allocations: 7.938 kB / 0.5975 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.8213, allocations: 7.969 kB / 0.5975 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01754/0.8388, allocations: 10.34 MB / 0.6076 GB, free: 90.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.203e-05/0.8389, allocations: 12 kB / 0.6076 GB, free: 90.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.8402, allocations: 367.4 kB / 0.608 GB, free: 90.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002575/0.8428, allocations: 0.9902 MB / 0.6089 GB, free: 89.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001998/0.843, allocations: 59.98 kB / 0.609 GB, free: 89.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003816/0.8469, allocations: 4.898 MB / 0.6138 GB, free: 83.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006791/0.8476, allocations: 1.563 MB / 0.6153 GB, free: 82.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007277/0.8549, allocations: 5.909 MB / 0.6211 GB, free: 76.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.856, allocations: 448 kB / 0.6215 GB, free: 75.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000874/0.8569, allocations: 55.98 kB / 0.6216 GB, free: 75.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/0.859, allocations: 139.8 kB / 0.6217 GB, free: 75.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003133/0.8593, allocations: 176.4 kB / 0.6219 GB, free: 75.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.8595, allocations: 83.91 kB / 0.6219 GB, free: 75.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003765/0.8633, allocations: 2.593 MB / 0.6245 GB, free: 72.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8633, allocations: 0 / 0.6245 GB, free: 72.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00584/0.8691, allocations: 1.167 MB / 0.6256 GB, free: 71.43 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.0005749/0.8697, allocations: 217.2 kB / 0.6258 GB, free: 71.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01043/0.8802, allocations: 6.678 MB / 0.6323 GB, free: 64.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.626e-05/0.8802, allocations: 8 kB / 0.6323 GB, free: 64.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0034/0.8836, allocations: 2.192 MB / 0.6345 GB, free: 62.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004129/0.8878, allocations: 0.4982 MB / 0.635 GB, free: 61.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01742/0.9052, allocations: 12.9 MB / 0.6476 GB, free: 48.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004306/0.9096, allocations: 3.453 MB / 0.6509 GB, free: 45.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004679/0.9143, allocations: 2.026 MB / 0.6529 GB, free: 43.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009156/0.9152, allocations: 271.3 kB / 0.6532 GB, free: 42.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.9152, allocations: 0 / 0.6532 GB, free: 42.88 MB / 446.1 MB Notification: Performance of Templates: time 0.237/1.152, allocations: 42.28 MB / 0.6945 GB, free: 135.9 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/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