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.00108/0.00108, allocations: 177.6 kB / 16.41 MB, free: 5.707 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.45/1.45, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007778/0.0007779, allocations: 94.3 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002776/0.0002777, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2037, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01139/0.2152, allocations: 16.1 MB / 390.7 MB, free: 32.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00878/0.224, allocations: 4.682 MB / 395.3 MB, free: 28.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003098/0.2271, allocations: 67.81 kB / 395.4 MB, free: 27.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002215/0.2294, allocations: 0.7893 MB / 396.2 MB, free: 27.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006047/0.2354, allocations: 2.654 MB / 398.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.2366, allocations: 375.4 kB / 399.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00265/0.2393, allocations: 2.871 MB / 402.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00238/0.2417, allocations: 1.861 MB / 404 MB, free: 19.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.2428, allocations: 0.7355 MB / 404.7 MB, free: 18.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001446/0.2442, allocations: 1.207 MB / 405.9 MB, free: 17.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004572/0.2447, allocations: 88 kB / 406 MB, free: 17.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.2463, allocations: 0.8619 MB / 406.8 MB, free: 16.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000936/0.2473, allocations: 1.017 MB / 407.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005837/0.2479, allocations: 0.5118 MB / 408.4 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002511/0.2504, allocations: 3.278 MB / 411.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2504, allocations: 4 kB / 411.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2504, allocations: 0 / 411.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001239/0.2505, allocations: 0 / 411.7 MB, free: 11.61 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.004244/0.2548, allocations: 2.571 MB / 414.2 MB, free: 8.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2548, allocations: 8.031 kB / 414.2 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005904/0.2607, allocations: 1.782 MB / 416 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/0.2631, allocations: 1.413 MB / 417.4 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.449e-05/0.2632, allocations: 135.3 kB / 417.6 MB, free: 5.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007081/0.2639, allocations: 255.6 kB / 417.8 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009341/0.2732, allocations: 6.664 MB / 424.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.641e-05/0.2733, allocations: 27.72 kB / 424.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003267/0.2737, allocations: 91.88 kB / 424.6 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002068/0.2758, allocations: 1.363 MB / 426 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01053/0.2863, allocations: 6.013 MB / 432 MB, free: 6.719 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02898/0.3153, allocations: 25.62 MB / 457.6 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006764/0.3221, allocations: 2.665 MB / 460.2 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001523/0.3237, allocations: 1.032 MB / 461.3 MB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006018/0.3297, allocations: 3.904 MB / 465.2 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/0.3298, allocations: 47.06 kB / 465.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 4.338e-06/0.3298, allocations: 0 / 465.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.02536/0.3552, allocations: 10.32 MB / 475.6 MB, free: 9.781 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001206/0.3564, allocations: 1.58 MB / 477.1 MB, free: 8.027 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003446/0.3599, allocations: 2.722 MB / 479.9 MB, free: 5.285 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002091/0.3601, allocations: 45.69 kB / 479.9 MB, free: 5.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001361/0.3615, allocations: 2.087 MB / 482 MB, free: 3.113 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004869/0.362, allocations: 0.5015 MB / 482.5 MB, free: 2.605 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3622, allocations: 87.98 kB / 482.6 MB, free: 2.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002695/0.3624, allocations: 0.5001 MB / 483.1 MB, free: 2.012 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002349/0.3648, allocations: 1.637 MB / 484.7 MB, free: 376 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004206/0.369, allocations: 4.437 MB / 489.1 MB, free: 10.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003768/0.3728, allocations: 2.633 MB / 491.8 MB, free: 7.891 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.699e-05/0.3728, allocations: 32 kB / 491.8 MB, free: 7.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01882/0.3917, allocations: 7.963 MB / 499.8 MB, free: 15.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.899e-05/0.3918, allocations: 48 kB / 499.8 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01082/0.4026, allocations: 3.481 MB / 0.4915 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01129/0.4139, allocations: 2.6 MB / 0.494 GB, free: 9.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00311/0.4171, allocations: 1.01 MB / 0.495 GB, free: 8.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1655/0.5826, allocations: 8.872 MB / 0.5037 GB, free: 116.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003314/0.586, allocations: 324.9 kB / 0.504 GB, free: 116.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/0.5863, allocations: 282.9 kB / 0.5043 GB, free: 116.3 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.001699/0.588, allocations: 1.422 MB / 0.5057 GB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002722/0.5883, allocations: 232.1 kB / 0.5059 GB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00632/0.5946, allocations: 2.844 MB / 0.5087 GB, free: 115.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005325/0.5999, allocations: 2.512 MB / 0.5111 GB, free: 115.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.6, allocations: 4.656 kB / 0.5111 GB, free: 115.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.6, allocations: 9.766 kB / 0.5111 GB, free: 115.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.6112, allocations: 6.866 MB / 0.5178 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.6113, allocations: 7.266 kB / 0.5178 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007322/0.612, allocations: 175.5 kB / 0.518 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00422/0.6163, allocations: 1.434 MB / 0.5194 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-05/0.6164, allocations: 33.06 kB / 0.5194 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007804/0.6242, allocations: 7.324 MB / 0.5266 GB, free: 107.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006705/0.6249, allocations: 1.448 MB / 0.528 GB, free: 106 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007579/0.6325, allocations: 4.844 MB / 0.5327 GB, free: 102.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005303/0.633, allocations: 312.3 kB / 0.533 GB, free: 102.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/0.6333, allocations: 26.09 kB / 0.5331 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.6343, allocations: 111.6 kB / 0.5332 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.6345, allocations: 83.28 kB / 0.5332 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.461e-05/0.6346, allocations: 35.98 kB / 0.5333 GB, free: 101.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001961/0.6365, allocations: 1.689 MB / 0.5349 GB, free: 100.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6365, allocations: 0 / 0.5349 GB, free: 100.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002918/0.6395, allocations: 0.7851 MB / 0.5357 GB, free: 99.44 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.0003136/0.6398, allocations: 169.1 kB / 0.5359 GB, free: 99.28 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005668/0.6455, allocations: 4.401 MB / 0.5402 GB, free: 94.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.6455, allocations: 0 / 0.5402 GB, free: 94.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/0.6481, allocations: 1.72 MB / 0.5418 GB, free: 93.13 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.6495, allocations: 256.5 kB / 0.5421 GB, free: 92.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008235/0.6578, allocations: 7.996 MB / 0.5499 GB, free: 84.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/0.6593, allocations: 2.293 MB / 0.5521 GB, free: 82.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005057/0.6598, allocations: 203.4 kB / 0.5523 GB, free: 82.36 MB / 394.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6598, allocations: 0 / 0.5523 GB, free: 82.36 MB / 394.7 MB Notification: Performance of Templates: time 0.06621/0.726, allocations: 75.37 MB / 0.6259 GB, free: 6.891 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