Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001817/0.001817, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001973/0.001973, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.816/1.816, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3941, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.02389/0.418, allocations: 10.7 MB / 419.5 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01397/0.432, allocations: 3.947 MB / 423.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002358/0.4344, allocations: 63.75 kB / 423.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.4447, allocations: 2.577 MB / 426.1 MB, free: 184 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.4553, allocations: 1.72 MB / 427.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003459/0.4588, allocations: 0.6863 MB / 428.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01092/0.4697, allocations: 3.72 MB / 432.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009576/0.4793, allocations: 3.553 MB / 435.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003724/0.4832, allocations: 1.468 MB / 437.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003725/0.4869, allocations: 1.947 MB / 439.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002189/0.4891, allocations: 316 kB / 439.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004769/0.4939, allocations: 1.143 MB / 440.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003345/0.4973, allocations: 1.792 MB / 442.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004881/0.5022, allocations: 2.124 MB / 444.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01242/0.5146, allocations: 6.676 MB / 451.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.5147, allocations: 0 / 451.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.5147, allocations: 8 kB / 451.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000676/0.5154, allocations: 0 / 451.2 MB, free: 6.898 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01627/0.5317, allocations: 4.671 MB / 455.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001465/0.5319, allocations: 8.031 kB / 455.9 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002499/0.5344, allocations: 0.7275 MB / 456.6 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009625/0.544, allocations: 1.967 MB / 458.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006768/0.5508, allocations: 2.224 MB / 460.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.5512, allocations: 250.2 kB / 461 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002121/0.5533, allocations: 395.7 kB / 461.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02783/0.5812, allocations: 10.11 MB / 471.5 MB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001899/0.5814, allocations: 39.62 kB / 471.6 MB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001701/0.5831, allocations: 159.9 kB / 471.7 MB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003573/0.5867, allocations: 1.857 MB / 473.6 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02234/0.6091, allocations: 8.37 MB / 482 MB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06458/0.6737, allocations: 39.27 MB / 0.509 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01184/0.6856, allocations: 4.039 MB / 0.513 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002471/0.6881, allocations: 1.424 MB / 0.5143 GB, free: 9.242 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01407/0.7022, allocations: 7.703 MB / 0.5219 GB, free: 1.039 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/0.7023, allocations: 47.5 kB / 0.5219 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 4.529e-06/0.7023, allocations: 0 / 0.5219 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.03789/0.7402, allocations: 12.72 MB / 0.5343 GB, free: 4.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00153/0.7418, allocations: 1.683 MB / 0.536 GB, free: 2.227 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3106/1.052, allocations: 3.816 MB / 0.5397 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006865/1.053, allocations: 47.05 kB / 0.5398 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/1.055, allocations: 3.243 MB / 0.5429 GB, free: 122.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/1.056, allocations: 0.6794 MB / 0.5436 GB, free: 122.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002289/1.059, allocations: 1.268 MB / 0.5448 GB, free: 121.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.518e-05/1.059, allocations: 301.1 kB / 0.5451 GB, free: 121.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002978/1.062, allocations: 2.019 MB / 0.5471 GB, free: 120.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005843/1.068, allocations: 5.958 MB / 0.5529 GB, free: 114.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008405/1.076, allocations: 8.594 MB / 0.5613 GB, free: 107.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001061/1.076, allocations: 40.03 kB / 0.5613 GB, free: 107.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01602/1.092, allocations: 8.832 MB / 0.57 GB, free: 101.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.502e-05/1.092, allocations: 71.94 kB / 0.57 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005775/1.098, allocations: 2.846 MB / 0.5728 GB, free: 98.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005274/1.103, allocations: 1.56 MB / 0.5743 GB, free: 97.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004144/1.107, allocations: 1.361 MB / 0.5757 GB, free: 95.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/1.12, allocations: 9.634 MB / 0.5851 GB, free: 85.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006023/1.126, allocations: 395.5 kB / 0.5854 GB, free: 85.47 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/1.127, allocations: 394.2 kB / 0.5858 GB, free: 85.09 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of prepare postOptimizeDAE: time 0.004308/1.132, allocations: 2.013 MB / 0.5878 GB, free: 83.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006668/1.132, allocations: 341.7 kB / 0.5881 GB, free: 82.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007216/1.133, allocations: 432.5 kB / 0.5885 GB, free: 82.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005856/1.139, allocations: 2.73 MB / 0.5912 GB, free: 79.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/1.139, allocations: 10 kB / 0.5912 GB, free: 79.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/1.139, allocations: 7.969 kB / 0.5912 GB, free: 79.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02164/1.161, allocations: 8.611 MB / 0.5996 GB, free: 70.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-05/1.161, allocations: 0 / 0.5996 GB, free: 70.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/1.162, allocations: 195.5 kB / 0.5998 GB, free: 70.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007926/1.17, allocations: 1.467 MB / 0.6012 GB, free: 69.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008718/1.171, allocations: 27.98 kB / 0.6013 GB, free: 69.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01861/1.19, allocations: 9.819 MB / 0.6108 GB, free: 58.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001034/1.191, allocations: 1.543 MB / 0.6124 GB, free: 57.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/1.204, allocations: 5.394 MB / 0.6176 GB, free: 51.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/1.205, allocations: 390.6 kB / 0.618 GB, free: 51.42 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001354/1.207, allocations: 36.11 kB / 0.618 GB, free: 51.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002262/1.209, allocations: 123.8 kB / 0.6181 GB, free: 51.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006376/1.21, allocations: 112.8 kB / 0.6183 GB, free: 51.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005502/1.21, allocations: 52.11 kB / 0.6183 GB, free: 51.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004891/1.215, allocations: 2.337 MB / 0.6206 GB, free: 48.78 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.034e-06/1.215, allocations: 4 kB / 0.6206 GB, free: 48.78 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01008/1.225, allocations: 1.051 MB / 0.6216 GB, free: 47.73 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009362/1.235, allocations: 6.033 MB / 0.6275 GB, free: 41.65 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009759/1.245, allocations: 5.742 MB / 0.6331 GB, free: 35.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.245, allocations: 0 / 0.6331 GB, free: 35.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00393/1.249, allocations: 2.328 MB / 0.6354 GB, free: 33.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002951/1.252, allocations: 397.8 kB / 0.6358 GB, free: 33.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07556/1.327, allocations: 45.52 MB / 0.6802 GB, free: 13.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005313/1.332, allocations: 3.123 MB / 0.6833 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00485/1.337, allocations: 1.803 MB / 0.685 GB, free: 8.402 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004052/1.342, allocations: 1.765 MB / 0.6868 GB, free: 6.637 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/1.342, allocations: 4 kB / 0.6868 GB, free: 6.633 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.483/1.824, allocations: 69.66 MB / 0.7548 GB, free: 187.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.39/25.22, allocations: 6.5 kB / 0.7548 GB, free: 187.6 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches