Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_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.001665/0.001665, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001736/0.001736, allocations: 183.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 59.91 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1042, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2157/0.32, allocations: 7.441 MB / 382.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006147/0.3262, allocations: 3.24 MB / 385.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.3273, allocations: 37.72 kB / 385.4 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002095/0.3294, allocations: 1.017 MB / 386.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003629/0.3331, allocations: 1.372 MB / 387.8 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.3343, allocations: 457.4 kB / 388.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004031/0.3384, allocations: 2.645 MB / 390.9 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001919/0.3403, allocations: 1.523 MB / 392.4 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.3417, allocations: 0.8493 MB / 393.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001715/0.3434, allocations: 1.224 MB / 394.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004428/0.3439, allocations: 170.1 kB / 394.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002438/0.3463, allocations: 1.022 MB / 395.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001328/0.3477, allocations: 1.112 MB / 396.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.349, allocations: 1.314 MB / 398.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005518/0.3546, allocations: 4.399 MB / 402.5 MB, free: 72 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3546, allocations: 0 / 402.5 MB, free: 72 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3546, allocations: 0 / 402.5 MB, free: 72 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.208e-05/0.3547, allocations: 1.188 kB / 402.5 MB, free: 72 kB / 318.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.008436/0.3631, allocations: 3.152 MB / 405.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/0.3632, allocations: 9.719 kB / 405.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008452/0.3641, allocations: 479.4 kB / 406.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007513/0.3716, allocations: 1.761 MB / 407.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004286/0.3759, allocations: 1.861 MB / 409.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.3761, allocations: 134.1 kB / 409.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007891/0.3769, allocations: 252.6 kB / 410.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01496/0.3919, allocations: 6.659 MB / 416.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001442/0.3921, allocations: 27.75 kB / 416.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008197/0.3929, allocations: 87.89 kB / 416.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002669/0.3956, allocations: 1.37 MB / 418.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/0.4101, allocations: 6.029 MB / 424.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04071/0.4509, allocations: 25.56 MB / 449.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008064/0.459, allocations: 2.671 MB / 452.5 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/0.461, allocations: 1.044 MB / 453.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007695/0.4687, allocations: 3.865 MB / 457.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.778e-05/0.4688, allocations: 39.12 kB / 457.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.288e-06/0.4688, allocations: 3.938 kB / 457.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.03154/0.5003, allocations: 10.48 MB / 467.9 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001751/0.5021, allocations: 1.675 MB / 469.6 MB, free: 14.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005609/0.5078, allocations: 2.758 MB / 472.4 MB, free: 12.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004568/0.5082, allocations: 41.69 kB / 472.4 MB, free: 11.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/0.5105, allocations: 2.175 MB / 474.6 MB, free: 9.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001058/0.5116, allocations: 0.5273 MB / 475.1 MB, free: 9.234 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002599/0.5142, allocations: 0.921 MB / 476 MB, free: 8.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5144, allocations: 305.1 kB / 476.3 MB, free: 8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003339/0.5177, allocations: 1.629 MB / 477.9 MB, free: 6.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005846/0.5236, allocations: 4.425 MB / 482.4 MB, free: 0.5273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009402/0.533, allocations: 6.506 MB / 488.9 MB, free: 8.633 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/0.5332, allocations: 28 kB / 488.9 MB, free: 8.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01664/0.5498, allocations: 7.036 MB / 495.9 MB, free: 1.547 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/0.55, allocations: 48.19 kB / 496 MB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006794/0.5568, allocations: 2.547 MB / 498.5 MB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005588/0.5625, allocations: 1.489 MB / 0.4883 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003411/0.5659, allocations: 0.9981 MB / 0.4893 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/0.5779, allocations: 7.782 MB / 0.4969 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003869/0.5818, allocations: 323.6 kB / 0.4972 GB, free: 4.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009504/0.5828, allocations: 284 kB / 0.4975 GB, free: 3.789 MB / 430.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.003576/0.5864, allocations: 1.419 MB / 0.4988 GB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007304/0.5871, allocations: 250.4 kB / 0.4991 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007999/0.5951, allocations: 2.839 MB / 0.5019 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006773/0.6019, allocations: 2.509 MB / 0.5043 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.438e-05/0.602, allocations: 4 kB / 0.5043 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.917e-05/0.602, allocations: 11.92 kB / 0.5043 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01738/0.6194, allocations: 6.879 MB / 0.511 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-05/0.6195, allocations: 0 / 0.511 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009442/0.6204, allocations: 179.7 kB / 0.5112 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005312/0.6257, allocations: 1.434 MB / 0.5126 GB, free: 4.105 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002473/0.626, allocations: 35.97 kB / 0.5126 GB, free: 4.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.6383, allocations: 7.92 MB / 0.5204 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001389/0.6398, allocations: 1.549 MB / 0.5219 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/0.6501, allocations: 4.867 MB / 0.5266 GB, free: 5.273 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008703/0.651, allocations: 307.3 kB / 0.5269 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006586/0.6517, allocations: 35.98 kB / 0.527 GB, free: 4.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/0.6533, allocations: 111.8 kB / 0.5271 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003284/0.6536, allocations: 76.44 kB / 0.5272 GB, free: 4.734 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/0.6538, allocations: 39.92 kB / 0.5272 GB, free: 4.695 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003897/0.6577, allocations: 1.709 MB / 0.5289 GB, free: 2.977 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6577, allocations: 0 / 0.5289 GB, free: 2.977 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004937/0.6627, allocations: 0.7616 MB / 0.5296 GB, free: 2.215 MB / 462.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.01131/0.674, allocations: 5.508 MB / 0.535 GB, free: 12.64 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008731/0.6828, allocations: 4.356 MB / 0.5392 GB, free: 8.262 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.6828, allocations: 3.938 kB / 0.5392 GB, free: 8.258 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00368/0.6865, allocations: 1.721 MB / 0.5409 GB, free: 6.488 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.689, allocations: 283.9 kB / 0.5412 GB, free: 6.211 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.248/0.937, allocations: 33.84 MB / 0.5742 GB, free: 138.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00215/0.9392, allocations: 2.298 MB / 0.5765 GB, free: 137.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00261/0.9418, allocations: 1.404 MB / 0.5779 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/0.9429, allocations: 1.118 MB / 0.5789 GB, free: 136.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.32e-07/0.943, allocations: 4 kB / 0.5789 GB, free: 136.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08711/1.03, allocations: 48.77 MB / 0.6266 GB, free: 92 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.63/19.66, allocations: 10.91 kB / 0.6266 GB, free: 92 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches