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.001204/0.001204, allocations: 102.5 kB / 17.59 MB, free: 5.43 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.001197/0.001197, allocations: 191.6 kB / 18.52 MB, free: 4.504 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.363/1.363, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 47.3 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.1009, allocations: 49.45 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01261/0.1136, allocations: 12 MB / 362.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008526/0.1221, allocations: 4.203 MB / 366.9 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.1238, allocations: 67.81 kB / 367 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005039/0.1289, allocations: 2.752 MB / 369.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1668/0.2958, allocations: 1.96 MB / 371.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002182/0.298, allocations: 0.8129 MB / 372.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007381/0.3054, allocations: 4.595 MB / 377.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005704/0.3111, allocations: 3.552 MB / 380.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003831/0.315, allocations: 1.69 MB / 382.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00422/0.3193, allocations: 2.342 MB / 384.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001365/0.3206, allocations: 353.7 kB / 385.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.3239, allocations: 1.281 MB / 386.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002355/0.3263, allocations: 2.1 MB / 388.4 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002746/0.3291, allocations: 2.418 MB / 390.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007146/0.3362, allocations: 7.263 MB / 398.1 MB, free: 1.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.3363, allocations: 4 kB / 398.1 MB, free: 1.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3363, allocations: 4 kB / 398.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002044/0.3365, allocations: 0 / 398.1 MB, free: 1.152 MB / 302.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.01051/0.347, allocations: 5.269 MB / 403.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3471, allocations: 15.22 kB / 403.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008249/0.3553, allocations: 2.108 MB / 405.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004993/0.3604, allocations: 2.489 MB / 408 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/0.3606, allocations: 285.8 kB / 408.3 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.3618, allocations: 427.2 kB / 408.7 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02371/0.3856, allocations: 12.22 MB / 420.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001179/0.3857, allocations: 47.53 kB / 421 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005013/0.3862, allocations: 175.5 kB / 421.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003338/0.3896, allocations: 2.171 MB / 423.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02306/0.4127, allocations: 10.19 MB / 433.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05579/0.4685, allocations: 44.31 MB / 477.8 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/0.4806, allocations: 4.604 MB / 482.4 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002867/0.4835, allocations: 1.724 MB / 484.2 MB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01271/0.4962, allocations: 8.224 MB / 492.4 MB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.282e-05/0.4963, allocations: 59.75 kB / 492.4 MB, free: 1.777 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 4.779e-06/0.4963, allocations: 0 / 492.4 MB, free: 1.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=205): time 0.04226/0.5386, allocations: 15.92 MB / 0.4964 GB, free: 1.707 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001321/0.5399, allocations: 1.692 MB / 0.4981 GB, free: 15.83 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005627/0.5456, allocations: 4.202 MB / 0.5022 GB, free: 11.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003821/0.546, allocations: 53.7 kB / 0.5022 GB, free: 11.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002154/0.5481, allocations: 3.395 MB / 0.5056 GB, free: 8.156 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001088/0.5492, allocations: 0.8024 MB / 0.5063 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001859/0.5511, allocations: 1.364 MB / 0.5077 GB, free: 5.988 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.5512, allocations: 301.1 kB / 0.508 GB, free: 5.691 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003494/0.5547, allocations: 2.266 MB / 0.5102 GB, free: 3.422 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005937/0.5607, allocations: 6.392 MB / 0.5164 GB, free: 10.99 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1773/0.738, allocations: 9.333 MB / 0.5255 GB, free: 141.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001401/0.7381, allocations: 41.72 kB / 0.5256 GB, free: 141.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02618/0.7643, allocations: 10.06 MB / 0.5354 GB, free: 139.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.7645, allocations: 68.38 kB / 0.5355 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01237/0.7769, allocations: 3.803 MB / 0.5392 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01065/0.7876, allocations: 2.158 MB / 0.5413 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005218/0.7928, allocations: 1.588 MB / 0.5428 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008181/0.801, allocations: 6.605 MB / 0.5493 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00515/0.8062, allocations: 423.5 kB / 0.5497 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008249/0.8071, allocations: 420.8 kB / 0.5501 GB, free: 134.1 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.00307/0.8102, allocations: 2.21 MB / 0.5522 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006082/0.8108, allocations: 380 kB / 0.5526 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005691/0.8165, allocations: 3.284 MB / 0.5558 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004721/0.8212, allocations: 2.749 MB / 0.5585 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.8213, allocations: 3.812 kB / 0.5585 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.666e-05/0.8213, allocations: 7.969 kB / 0.5585 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0167/0.838, allocations: 10.34 MB / 0.5686 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.814e-05/0.8381, allocations: 19.19 kB / 0.5686 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/0.8395, allocations: 363.5 kB / 0.569 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002779/0.8423, allocations: 0.9908 MB / 0.5699 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002946/0.8426, allocations: 59.97 kB / 0.57 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004303/0.847, allocations: 4.9 MB / 0.5748 GB, free: 115.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000781/0.8478, allocations: 1.567 MB / 0.5763 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00789/0.8557, allocations: 5.912 MB / 0.5821 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.8567, allocations: 436.1 kB / 0.5825 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004877/0.8572, allocations: 59.98 kB / 0.5826 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/0.8589, allocations: 147.8 kB / 0.5827 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002908/0.8592, allocations: 172.4 kB / 0.5829 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/0.8594, allocations: 79.97 kB / 0.5829 GB, free: 107.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003573/0.863, allocations: 2.588 MB / 0.5855 GB, free: 104.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.863, allocations: 0 / 0.5855 GB, free: 104.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005301/0.8683, allocations: 1.173 MB / 0.5866 GB, free: 103.4 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.0004648/0.8688, allocations: 227.6 kB / 0.5868 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01017/0.8789, allocations: 6.673 MB / 0.5933 GB, free: 96.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/0.879, allocations: 4 kB / 0.5933 GB, free: 96.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003524/0.8825, allocations: 2.192 MB / 0.5955 GB, free: 94.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003038/0.8856, allocations: 0.5022 MB / 0.596 GB, free: 93.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01491/0.9005, allocations: 11.21 MB / 0.6069 GB, free: 82.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003006/0.9036, allocations: 3.459 MB / 0.6103 GB, free: 78.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/0.9046, allocations: 323.4 kB / 0.6106 GB, free: 78.51 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.9046, allocations: 0 / 0.6106 GB, free: 78.51 MB / 446.1 MB Notification: Performance of Templates: time 0.3335/1.238, allocations: 141.2 MB / 0.7485 GB, free: 96.29 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