Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 173.2 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000931/0.000931, allocations: 90.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000531/0.0005312, allocations: 20 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2427, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.0136/0.2564, allocations: 16.1 MB / 391.2 MB, free: 32.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.2665, allocations: 4.682 MB / 395.9 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003044/0.2695, allocations: 71.81 kB / 395.9 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002191/0.2718, allocations: 0.7815 MB / 396.7 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006217/0.278, allocations: 2.689 MB / 399.4 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.2794, allocations: 407.3 kB / 399.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003113/0.2825, allocations: 2.89 MB / 402.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002595/0.2851, allocations: 1.969 MB / 404.7 MB, free: 19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.2863, allocations: 0.7355 MB / 405.4 MB, free: 18.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/0.2879, allocations: 1.211 MB / 406.6 MB, free: 17.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004635/0.2883, allocations: 88 kB / 406.7 MB, free: 16.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.2902, allocations: 0.9867 MB / 407.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001021/0.2912, allocations: 1.021 MB / 408.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.2926, allocations: 1.167 MB / 409.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002531/0.2952, allocations: 3.282 MB / 413.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2952, allocations: 0 / 413.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2952, allocations: 0 / 413.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001025/0.2953, allocations: 0 / 413.2 MB, free: 10.48 MB / 298.7 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.004259/0.2996, allocations: 2.536 MB / 415.7 MB, free: 7.891 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.2996, allocations: 8.031 kB / 415.7 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005369/0.305, allocations: 1.783 MB / 417.5 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.3072, allocations: 1.449 MB / 418.9 MB, free: 4.598 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.904e-05/0.3073, allocations: 139.3 kB / 419.1 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005232/0.3078, allocations: 247.7 kB / 419.3 MB, free: 4.219 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008719/0.3165, allocations: 6.672 MB / 426 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.811e-05/0.3166, allocations: 31.66 kB / 426 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/0.3169, allocations: 83.89 kB / 426.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002015/0.3189, allocations: 1.363 MB / 427.5 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01125/0.3301, allocations: 6.009 MB / 433.5 MB, free: 5.598 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03145/0.3617, allocations: 25.62 MB / 459.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0064/0.3681, allocations: 2.669 MB / 461.8 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.3695, allocations: 1.03 MB / 462.8 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005521/0.3751, allocations: 3.9 MB / 466.7 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.3751, allocations: 47.06 kB / 466.7 MB, free: 3.137 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 2.595e-06/0.3751, allocations: 0 / 466.7 MB, free: 3.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.02545/0.4006, allocations: 10.32 MB / 477.1 MB, free: 8.656 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001357/0.402, allocations: 1.584 MB / 478.6 MB, free: 6.902 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/0.4059, allocations: 2.722 MB / 481.4 MB, free: 4.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002759/0.4062, allocations: 45.7 kB / 481.4 MB, free: 4.109 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001487/0.4077, allocations: 2.083 MB / 483.5 MB, free: 1.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005944/0.4083, allocations: 0.5132 MB / 484 MB, free: 1.473 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.4085, allocations: 88 kB / 484.1 MB, free: 1.387 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002887/0.4088, allocations: 0.4961 MB / 484.6 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002455/0.4113, allocations: 1.633 MB / 486.2 MB, free: 15.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003991/0.4153, allocations: 4.429 MB / 490.7 MB, free: 9.406 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007491/0.4228, allocations: 6.535 MB / 497.2 MB, free: 1.477 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.595e-05/0.4228, allocations: 39.88 kB / 497.2 MB, free: 1.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01919/0.442, allocations: 7.954 MB / 0.4933 GB, free: 9.461 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.744e-05/0.4422, allocations: 48 kB / 0.4934 GB, free: 9.414 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01087/0.453, allocations: 3.489 MB / 0.4968 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/0.4643, allocations: 2.588 MB / 0.4993 GB, free: 3.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003729/0.4681, allocations: 1.002 MB / 0.5003 GB, free: 2.316 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2357/0.7038, allocations: 8.868 MB / 0.509 GB, free: 114.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/0.7078, allocations: 322 kB / 0.5093 GB, free: 114.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006554/0.7085, allocations: 283.5 kB / 0.5095 GB, free: 114.8 MB / 394.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002528/0.711, allocations: 1.428 MB / 0.5109 GB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006263/0.7116, allocations: 228.3 kB / 0.5111 GB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006753/0.7184, allocations: 2.846 MB / 0.5139 GB, free: 113.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005529/0.724, allocations: 2.517 MB / 0.5164 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/0.724, allocations: 3.969 kB / 0.5164 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.724, allocations: 7.734 kB / 0.5164 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.7362, allocations: 6.866 MB / 0.5231 GB, free: 109.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.7363, allocations: 2.672 kB / 0.5231 GB, free: 109.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008673/0.7372, allocations: 179.1 kB / 0.5233 GB, free: 109.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00431/0.7415, allocations: 1.429 MB / 0.5247 GB, free: 109 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001752/0.7417, allocations: 38.97 kB / 0.5247 GB, free: 109 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008317/0.75, allocations: 7.319 MB / 0.5319 GB, free: 102.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000761/0.7508, allocations: 1.468 MB / 0.5333 GB, free: 101 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007564/0.7584, allocations: 4.843 MB / 0.538 GB, free: 96.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000776/0.7592, allocations: 298.1 kB / 0.5383 GB, free: 95.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002501/0.7595, allocations: 33.34 kB / 0.5383 GB, free: 95.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.7605, allocations: 115.8 kB / 0.5384 GB, free: 95.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/0.7608, allocations: 80.38 kB / 0.5385 GB, free: 95.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.806e-05/0.7609, allocations: 41.06 kB / 0.5386 GB, free: 95.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002368/0.7632, allocations: 1.689 MB / 0.5402 GB, free: 94.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7632, allocations: 0 / 0.5402 GB, free: 94.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003679/0.7669, allocations: 0.7884 MB / 0.541 GB, free: 93.23 MB / 394.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003937/0.7673, allocations: 156 kB / 0.5411 GB, free: 93.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006473/0.7738, allocations: 4.415 MB / 0.5454 GB, free: 88.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.7739, allocations: 0 / 0.5454 GB, free: 88.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00267/0.7765, allocations: 1.718 MB / 0.5471 GB, free: 86.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.7787, allocations: 262 kB / 0.5474 GB, free: 86.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.7893, allocations: 8.004 MB / 0.5552 GB, free: 78.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001851/0.7913, allocations: 2.293 MB / 0.5574 GB, free: 76.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007431/0.792, allocations: 207.4 kB / 0.5576 GB, free: 76.12 MB / 394.7 MB Notification: Performance of SimCode: time 1.402e-06/0.792, allocations: 0 / 0.5576 GB, free: 76.12 MB / 394.7 MB Notification: Performance of Templates: time 0.08029/0.8723, allocations: 75.32 MB / 0.6312 GB, free: 0.6953 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches