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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008839/0.000884, allocations: 91.84 kB / 16.65 MB, free: 6.586 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.001072/0.001072, allocations: 181.1 kB / 17.56 MB, free: 6.203 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.29/1.29, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.0002541, allocations: 4 kB / 301.5 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09404, allocations: 50.42 MB / 352 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01556/0.1096, allocations: 17.25 MB / 369.2 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2082/0.3178, allocations: 4.971 MB / 374.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00345/0.3213, allocations: 69.72 kB / 374.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.3225, allocations: 276.6 kB / 374.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004328/0.3268, allocations: 1.281 MB / 375.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.3283, allocations: 422.4 kB / 376.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005721/0.3341, allocations: 3.61 MB / 379.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003738/0.3378, allocations: 2.039 MB / 381.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001716/0.3396, allocations: 0.6629 MB / 382.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002294/0.3419, allocations: 1.22 MB / 383.7 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004122/0.3423, allocations: 86.16 kB / 383.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002096/0.3444, allocations: 1.013 MB / 384.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.3455, allocations: 1.042 MB / 385.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.3467, allocations: 1.242 MB / 387.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003956/0.3506, allocations: 4.072 MB / 391.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3507, allocations: 0 / 391.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3507, allocations: 0 / 391.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.161e-05/0.3507, allocations: 0 / 391.2 MB, free: 3.426 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.005062/0.3558, allocations: 2.546 MB / 393.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.3559, allocations: 8.25 kB / 393.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000529/0.3564, allocations: 473.2 kB / 394.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006554/0.363, allocations: 1.789 MB / 396 MB, free: 400 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003104/0.3661, allocations: 1.695 MB / 397.7 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.3662, allocations: 140.4 kB / 397.8 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006508/0.3669, allocations: 260.4 kB / 398.1 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01048/0.3774, allocations: 6.666 MB / 404.8 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.025e-05/0.3775, allocations: 27.72 kB / 404.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002632/0.3777, allocations: 88.52 kB / 404.9 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002121/0.3799, allocations: 1.363 MB / 406.2 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/0.3911, allocations: 6.052 MB / 412.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03225/0.4234, allocations: 25.57 MB / 437.9 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007257/0.4307, allocations: 2.68 MB / 440.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001525/0.4323, allocations: 1.04 MB / 441.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006002/0.4383, allocations: 3.865 MB / 445.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.4384, allocations: 47.06 kB / 445.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 4.528e-06/0.4384, allocations: 0 / 445.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02856/0.467, allocations: 10.31 MB / 455.8 MB, free: 4.754 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001312/0.4683, allocations: 1.588 MB / 457.4 MB, free: 2.992 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004773/0.4731, allocations: 2.738 MB / 460.1 MB, free: 240 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000223/0.4734, allocations: 41.7 kB / 460.2 MB, free: 192 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0016/0.475, allocations: 2.089 MB / 462.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006632/0.4756, allocations: 0.498 MB / 462.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006736/0.4763, allocations: 398.8 kB / 463.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.4764, allocations: 301.1 kB / 463.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002682/0.4791, allocations: 1.625 MB / 465.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004391/0.4835, allocations: 4.421 MB / 469.5 MB, free: 5.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007325/0.4909, allocations: 6.49 MB / 476 MB, free: 13.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-05/0.491, allocations: 28 kB / 476 MB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01434/0.5053, allocations: 7.038 MB / 483 MB, free: 6.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.5055, allocations: 50.34 kB / 483.1 MB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006251/0.5118, allocations: 2.543 MB / 485.6 MB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005216/0.517, allocations: 1.489 MB / 487.1 MB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00334/0.5204, allocations: 1.006 MB / 488.1 MB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009766/0.5301, allocations: 7.203 MB / 495.3 MB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003898/0.5341, allocations: 323.5 kB / 495.6 MB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008173/0.5349, allocations: 290.9 kB / 495.9 MB, free: 9.324 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 (543): * Single equations (assignments): 535 * 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.00296/0.5379, allocations: 1.419 MB / 497.3 MB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005431/0.5384, allocations: 229 kB / 497.6 MB, free: 7.664 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007029/0.5455, allocations: 2.848 MB / 0.4887 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005985/0.5515, allocations: 2.513 MB / 0.4911 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/0.5515, allocations: 8.062 kB / 0.4912 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.5516, allocations: 11.98 kB / 0.4912 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/0.5661, allocations: 6.868 MB / 0.4979 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/0.5662, allocations: 0 / 0.4979 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009321/0.5671, allocations: 175.7 kB / 0.498 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005064/0.5722, allocations: 1.434 MB / 0.4994 GB, free: 9.688 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002285/0.5725, allocations: 33.92 kB / 0.4995 GB, free: 9.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/0.5826, allocations: 7.323 MB / 0.5066 GB, free: 2.062 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001177/0.5839, allocations: 1.462 MB / 0.508 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009194/0.5931, allocations: 4.863 MB / 0.5128 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007659/0.5939, allocations: 294 kB / 0.5131 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005117/0.5944, allocations: 27.98 kB / 0.5131 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.5959, allocations: 119.8 kB / 0.5132 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.5961, allocations: 84.31 kB / 0.5133 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.5963, allocations: 31.98 kB / 0.5133 GB, free: 10.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003192/0.5995, allocations: 1.697 MB / 0.515 GB, free: 9.277 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5995, allocations: 4 kB / 0.515 GB, free: 9.273 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004174/0.6037, allocations: 0.7571 MB / 0.5157 GB, free: 8.52 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.009337/0.613, allocations: 5.506 MB / 0.5211 GB, free: 2.969 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1923/0.8053, allocations: 4.323 MB / 0.5253 GB, free: 153.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.8054, allocations: 0 / 0.5253 GB, free: 153.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003981/0.8093, allocations: 1.72 MB / 0.527 GB, free: 153.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002577/0.8119, allocations: 258.2 kB / 0.5273 GB, free: 153 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05285/0.8648, allocations: 37.25 MB / 0.5636 GB, free: 127.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001835/0.8667, allocations: 2.303 MB / 0.5659 GB, free: 125.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003074/0.8698, allocations: 1.4 MB / 0.5672 GB, free: 123.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/0.8709, allocations: 1.116 MB / 0.5683 GB, free: 122.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.933e-06/0.871, allocations: 3.938 kB / 0.5683 GB, free: 122.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06134/0.9323, allocations: 49.58 MB / 0.6168 GB, free: 73.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.9325, allocations: 249.2 kB / 0.617 GB, free: 73.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.288/4.221, allocations: 6.562 kB / 0.617 GB, free: 73.22 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > 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