Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 101.5 kB / 16.5 MB, free: 6.645 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.001223/0.001223, allocations: 195.1 kB / 17.42 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.294/1.294, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009708/0.0009708, allocations: 46.41 kB / 300 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08725, allocations: 49.45 MB / 349.4 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01591/0.1032, allocations: 17.91 MB / 367.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1754/0.2786, allocations: 5.031 MB / 372.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002776/0.2815, allocations: 69.44 kB / 372.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002291/0.2838, allocations: 0.9974 MB / 373.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003329/0.2872, allocations: 1.271 MB / 374.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.2882, allocations: 429.7 kB / 375.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004829/0.2931, allocations: 3.609 MB / 378.7 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002495/0.2956, allocations: 1.509 MB / 380.2 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001473/0.2971, allocations: 0.7318 MB / 381 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.2992, allocations: 1.299 MB / 382.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000606/0.2999, allocations: 114.1 kB / 382.4 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.3021, allocations: 1.035 MB / 383.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001396/0.3035, allocations: 1.077 MB / 384.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002104/0.3057, allocations: 1.264 MB / 385.7 MB, free: 6.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005926/0.3116, allocations: 4.16 MB / 389.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.3116, allocations: 0 / 389.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3116, allocations: 0 / 389.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001505/0.3118, allocations: 0 / 389.9 MB, free: 4.016 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.006029/0.3178, allocations: 3.051 MB / 393 MB, free: 1.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3179, allocations: 8.25 kB / 393 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006098/0.324, allocations: 1.737 MB / 394.7 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002641/0.3267, allocations: 1.389 MB / 396.1 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.738e-05/0.3268, allocations: 134.4 kB / 396.2 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006216/0.3274, allocations: 261.3 kB / 396.5 MB, free: 0 / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0104/0.3378, allocations: 6.661 MB / 403.1 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.298e-05/0.3379, allocations: 31.66 kB / 403.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002575/0.3382, allocations: 96.39 kB / 403.3 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002068/0.3402, allocations: 1.362 MB / 404.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.3513, allocations: 6.031 MB / 410.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03057/0.3819, allocations: 25.62 MB / 436.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006853/0.3888, allocations: 2.662 MB / 438.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001511/0.3904, allocations: 1.04 MB / 440 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006475/0.3969, allocations: 3.897 MB / 443.9 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.3969, allocations: 43.12 kB / 443.9 MB, free: 92 kB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 4.148e-06/0.397, allocations: 0 / 443.9 MB, free: 92 kB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02458/0.4215, allocations: 10.29 MB / 454.2 MB, free: 5.648 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001174/0.4228, allocations: 1.584 MB / 455.8 MB, free: 3.891 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003544/0.4263, allocations: 2.725 MB / 458.5 MB, free: 1.145 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002358/0.4266, allocations: 41.7 kB / 458.6 MB, free: 1.098 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.4279, allocations: 2.083 MB / 460.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005695/0.4284, allocations: 0.5099 MB / 461.2 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/0.4296, allocations: 0.9195 MB / 462.1 MB, free: 13.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.358e-05/0.4297, allocations: 301.1 kB / 462.4 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002314/0.432, allocations: 1.652 MB / 464 MB, free: 11.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00383/0.4358, allocations: 4.452 MB / 468.5 MB, free: 5.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006681/0.4425, allocations: 6.546 MB / 475 MB, free: 13.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.037e-05/0.4426, allocations: 28 kB / 475 MB, free: 13.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01904/0.4617, allocations: 8.001 MB / 483 MB, free: 5.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.846e-05/0.4618, allocations: 48 kB / 483.1 MB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01046/0.4722, allocations: 3.496 MB / 486.6 MB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01097/0.4832, allocations: 2.585 MB / 489.2 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002999/0.4863, allocations: 1.01 MB / 490.2 MB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01322/0.4995, allocations: 8.876 MB / 499.1 MB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003782/0.5033, allocations: 331.5 kB / 499.4 MB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007465/0.5041, allocations: 283.9 kB / 499.7 MB, free: 4.887 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002766/0.5068, allocations: 1.417 MB / 0.4893 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005343/0.5074, allocations: 229 kB / 0.4896 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00637/0.5138, allocations: 2.847 MB / 0.4923 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005599/0.5194, allocations: 2.517 MB / 0.4948 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.5194, allocations: 4 kB / 0.4948 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.5194, allocations: 7.984 kB / 0.4948 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/0.5323, allocations: 6.855 MB / 0.5015 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.5324, allocations: 96 / 0.5015 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008518/0.5332, allocations: 183.7 kB / 0.5017 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004728/0.538, allocations: 1.43 MB / 0.5031 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.5382, allocations: 38.25 kB / 0.5031 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009352/0.5475, allocations: 7.326 MB / 0.5103 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000956/0.5485, allocations: 1.47 MB / 0.5117 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008932/0.5574, allocations: 4.847 MB / 0.5164 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000786/0.5582, allocations: 286.1 kB / 0.5167 GB, free: 6.844 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007295/0.559, allocations: 30.58 kB / 0.5167 GB, free: 6.816 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.5604, allocations: 111.8 kB / 0.5168 GB, free: 6.707 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000279/0.5607, allocations: 76.44 kB / 0.5169 GB, free: 6.633 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.5608, allocations: 36.09 kB / 0.5169 GB, free: 6.598 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002521/0.5633, allocations: 1.697 MB / 0.5186 GB, free: 4.891 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5633, allocations: 0 / 0.5186 GB, free: 4.891 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003653/0.567, allocations: 0.7916 MB / 0.5194 GB, free: 4.102 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003596/0.5674, allocations: 161.1 kB / 0.5195 GB, free: 3.938 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1651/0.7325, allocations: 4.424 MB / 0.5238 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.7325, allocations: 2.375 kB / 0.5238 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003568/0.7361, allocations: 1.715 MB / 0.5255 GB, free: 150.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.7382, allocations: 261.6 kB / 0.5258 GB, free: 150.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/0.75, allocations: 7.798 MB / 0.5334 GB, free: 147.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001986/0.752, allocations: 2.294 MB / 0.5356 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003403/0.7555, allocations: 1.404 MB / 0.537 GB, free: 146.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000433/0.7559, allocations: 169.8 kB / 0.5372 GB, free: 146.5 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.7559, allocations: 1.25 kB / 0.5372 GB, free: 146.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04302/0.7989, allocations: 29.67 MB / 0.5661 GB, free: 128.3 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches