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.001274/0.001274, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001255/0.001255, allocations: 192 kB / 18.62 MB, free: 4.41 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.412/1.412, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 46.81 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1253, allocations: 49.44 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009185/0.1345, allocations: 7.436 MB / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006055/0.1406, allocations: 3.242 MB / 362.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008982/0.1416, allocations: 31.94 kB / 362.2 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.1436, allocations: 1.027 MB / 363.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002711/0.1464, allocations: 1.373 MB / 364.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008883/0.1473, allocations: 455.1 kB / 365 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002993/0.1503, allocations: 2.63 MB / 367.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.1519, allocations: 1.527 MB / 369.2 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009688/0.1529, allocations: 0.8408 MB / 370 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1801/0.333, allocations: 1.221 MB / 371.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001191/0.3342, allocations: 172.4 kB / 371.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003465/0.3377, allocations: 1.033 MB / 372.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002224/0.34, allocations: 1.112 MB / 373.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00444/0.3444, allocations: 1.304 MB / 374.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008208/0.3527, allocations: 4.365 MB / 379.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.3527, allocations: 3.625 kB / 379.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3527, allocations: 0 / 379.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001589/0.3529, allocations: 1.531 kB / 379.3 MB, free: 10.95 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.008961/0.3619, allocations: 3.051 MB / 382.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/0.362, allocations: 10 kB / 382.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006705/0.3687, allocations: 1.732 MB / 384 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004065/0.3728, allocations: 1.402 MB / 385.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.3729, allocations: 138.1 kB / 385.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008271/0.3738, allocations: 261 kB / 385.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/0.3855, allocations: 6.648 MB / 392.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.682e-05/0.3856, allocations: 30.59 kB / 392.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003034/0.3859, allocations: 91.53 kB / 392.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00187/0.3878, allocations: 1.36 MB / 394 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01057/0.3984, allocations: 6.034 MB / 400 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03457/0.433, allocations: 25.53 MB / 425.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006697/0.4397, allocations: 2.666 MB / 428.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001472/0.4412, allocations: 1.035 MB / 429.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006981/0.4482, allocations: 3.895 MB / 433.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.4483, allocations: 39.12 kB / 433.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 4.588e-06/0.4483, allocations: 4 kB / 433.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02565/0.4739, allocations: 10.29 MB / 443.5 MB, free: 5.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001383/0.4754, allocations: 1.68 MB / 445.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004211/0.4796, allocations: 2.718 MB / 447.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004443/0.48, allocations: 44.36 kB / 447.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/0.4816, allocations: 2.081 MB / 450 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007016/0.4824, allocations: 0.5078 MB / 450.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.4836, allocations: 0.9195 MB / 451.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.4837, allocations: 305.1 kB / 451.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002437/0.4862, allocations: 1.656 MB / 453.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004218/0.4904, allocations: 4.452 MB / 457.8 MB, free: 5.219 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00784/0.4983, allocations: 6.552 MB / 464.4 MB, free: 13.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.77e-05/0.4984, allocations: 28 kB / 464.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02126/0.5196, allocations: 7.99 MB / 472.4 MB, free: 5.527 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.4e-05/0.5198, allocations: 52.03 kB / 472.4 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01168/0.5315, allocations: 3.492 MB / 475.9 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01167/0.5432, allocations: 2.58 MB / 478.5 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003558/0.5468, allocations: 1.01 MB / 479.5 MB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01435/0.5612, allocations: 9.692 MB / 489.2 MB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003648/0.5648, allocations: 331.5 kB / 489.5 MB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005087/0.5654, allocations: 291.1 kB / 489.8 MB, free: 3.801 MB / 398.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.002459/0.5678, allocations: 1.423 MB / 491.2 MB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004327/0.5683, allocations: 229 kB / 491.5 MB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006371/0.5746, allocations: 2.833 MB / 494.3 MB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005585/0.5803, allocations: 2.513 MB / 496.8 MB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.5803, allocations: 7.938 kB / 496.8 MB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.5803, allocations: 15.84 kB / 496.8 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/0.5944, allocations: 6.865 MB / 0.4919 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.5944, allocations: 0 / 0.4919 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008715/0.5953, allocations: 175.7 kB / 0.4921 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004729/0.6, allocations: 1.434 MB / 0.4935 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001743/0.6002, allocations: 36.69 kB / 0.4935 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01031/0.6105, allocations: 7.917 MB / 0.5012 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001093/0.6117, allocations: 1.549 MB / 0.5027 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008924/0.6206, allocations: 4.848 MB / 0.5075 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009254/0.6215, allocations: 298 kB / 0.5078 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/0.6218, allocations: 27.98 kB / 0.5078 GB, free: 5.039 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.623, allocations: 108.1 kB / 0.5079 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.6233, allocations: 76.44 kB / 0.508 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.6234, allocations: 47.92 kB / 0.508 GB, free: 4.812 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002703/0.6261, allocations: 1.689 MB / 0.5097 GB, free: 3.113 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6261, allocations: 4 kB / 0.5097 GB, free: 3.109 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004124/0.6302, allocations: 0.7848 MB / 0.5104 GB, free: 2.328 MB / 430.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.0004607/0.6307, allocations: 179.8 kB / 0.5106 GB, free: 2.145 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00749/0.6382, allocations: 4.439 MB / 0.5149 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.6382, allocations: 0 / 0.5149 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003886/0.6421, allocations: 1.727 MB / 0.5166 GB, free: 11.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.6445, allocations: 278.3 kB / 0.5169 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.6595, allocations: 6.532 MB / 0.5233 GB, free: 5.059 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/0.6621, allocations: 2.297 MB / 0.5255 GB, free: 2.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002979/0.6651, allocations: 1.408 MB / 0.5269 GB, free: 1.316 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003928/0.6655, allocations: 167.4 kB / 0.527 GB, free: 1.152 MB / 446.1 MB Notification: Performance of SimCode: time 1.273e-06/0.6655, allocations: 0 / 0.527 GB, free: 1.152 MB / 446.1 MB Notification: Performance of Templates: time 0.2222/0.8877, allocations: 27.05 MB / 0.5535 GB, free: 142 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/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