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.001245/0.001245, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001303/0.001303, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3009, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01174/0.3126, allocations: 10.71 MB / 419.5 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008798/0.3215, allocations: 3.947 MB / 423.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.3238, allocations: 63.81 kB / 423.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005441/0.3293, allocations: 2.57 MB / 426 MB, free: 200 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005229/0.3345, allocations: 1.774 MB / 427.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.3364, allocations: 0.6863 MB / 428.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005707/0.3421, allocations: 3.709 MB / 432.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005331/0.3475, allocations: 3.565 MB / 435.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003162/0.3507, allocations: 1.464 MB / 437.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003201/0.3539, allocations: 1.951 MB / 439.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001253/0.3552, allocations: 312 kB / 439.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002893/0.3581, allocations: 1.143 MB / 440.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002487/0.3606, allocations: 1.816 MB / 442.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003868/0.3645, allocations: 2.124 MB / 444.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01063/0.3752, allocations: 6.68 MB / 451.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3752, allocations: 0 / 451.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3753, allocations: 0 / 451.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002765/0.3755, allocations: 0 / 451.3 MB, free: 6.84 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.01214/0.3877, allocations: 4.671 MB / 455.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.3878, allocations: 8.031 kB / 455.9 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001893/0.3897, allocations: 0.7197 MB / 456.7 MB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007902/0.3976, allocations: 1.971 MB / 458.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006028/0.4037, allocations: 2.232 MB / 460.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003279/0.404, allocations: 250.2 kB / 461.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00157/0.4056, allocations: 387.7 kB / 461.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02186/0.4275, allocations: 10.11 MB / 471.6 MB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002001/0.4277, allocations: 39.62 kB / 471.6 MB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001143/0.4289, allocations: 155.9 kB / 471.8 MB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002982/0.4319, allocations: 1.861 MB / 473.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01838/0.4503, allocations: 8.363 MB / 482 MB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05224/0.5026, allocations: 39.28 MB / 0.5091 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/0.5139, allocations: 4.027 MB / 0.513 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002261/0.5162, allocations: 1.431 MB / 0.5144 GB, free: 9.184 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/0.528, allocations: 7.7 MB / 0.5219 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.5281, allocations: 47.56 kB / 0.522 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 5.019e-06/0.5281, allocations: 0 / 0.522 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.03638/0.5645, allocations: 12.71 MB / 0.5344 GB, free: 4.039 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001564/0.5661, allocations: 1.687 MB / 0.536 GB, free: 2.172 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2371/0.8032, allocations: 3.818 MB / 0.5398 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003815/0.8037, allocations: 51.25 kB / 0.5398 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/0.8059, allocations: 3.243 MB / 0.543 GB, free: 122.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007979/0.8067, allocations: 0.675 MB / 0.5436 GB, free: 122.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001674/0.8084, allocations: 1.263 MB / 0.5449 GB, free: 121.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.636e-05/0.8084, allocations: 304.3 kB / 0.5452 GB, free: 121.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002606/0.8111, allocations: 2.024 MB / 0.5471 GB, free: 120.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00423/0.8153, allocations: 5.948 MB / 0.5529 GB, free: 115 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006804/0.8221, allocations: 8.602 MB / 0.5613 GB, free: 107.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.606e-05/0.8223, allocations: 43.09 kB / 0.5614 GB, free: 107.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01462/0.8369, allocations: 8.835 MB / 0.57 GB, free: 101.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.8371, allocations: 74.69 kB / 0.5701 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005858/0.8429, allocations: 2.839 MB / 0.5729 GB, free: 98.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004724/0.8477, allocations: 1.553 MB / 0.5744 GB, free: 97.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004172/0.8519, allocations: 1.369 MB / 0.5757 GB, free: 95.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/0.8627, allocations: 9.64 MB / 0.5851 GB, free: 85.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005064/0.8678, allocations: 403 kB / 0.5855 GB, free: 85.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000958/0.8688, allocations: 392 kB / 0.5859 GB, free: 85.07 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.003517/0.8723, allocations: 2.005 MB / 0.5878 GB, free: 83.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007875/0.8731, allocations: 345.8 kB / 0.5882 GB, free: 82.71 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009492/0.8741, allocations: 433.5 kB / 0.5886 GB, free: 82.28 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005435/0.8795, allocations: 2.733 MB / 0.5913 GB, free: 79.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-05/0.8795, allocations: 7.938 kB / 0.5913 GB, free: 79.51 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.8796, allocations: 7.969 kB / 0.5913 GB, free: 79.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01667/0.8962, allocations: 8.607 MB / 0.5997 GB, free: 70.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/0.8963, allocations: 0 / 0.5997 GB, free: 70.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008676/0.8972, allocations: 191.7 kB / 0.5999 GB, free: 70.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004234/0.9014, allocations: 1.467 MB / 0.6013 GB, free: 69.17 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002143/0.9017, allocations: 27.98 kB / 0.6013 GB, free: 69.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.9125, allocations: 9.817 MB / 0.6109 GB, free: 58.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000807/0.9133, allocations: 1.547 MB / 0.6124 GB, free: 57.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00842/0.9218, allocations: 5.392 MB / 0.6177 GB, free: 51.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.923, allocations: 386.8 kB / 0.6181 GB, free: 51.39 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008384/0.9238, allocations: 35.92 kB / 0.6181 GB, free: 51.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/0.9256, allocations: 127.8 kB / 0.6182 GB, free: 51.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003276/0.9259, allocations: 112.8 kB / 0.6183 GB, free: 51.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.926, allocations: 43.98 kB / 0.6184 GB, free: 51.08 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003017/0.929, allocations: 2.341 MB / 0.6206 GB, free: 48.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.42e-07/0.9291, allocations: 4 kB / 0.6206 GB, free: 48.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006116/0.9352, allocations: 1.052 MB / 0.6217 GB, free: 47.7 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.008208/0.9434, allocations: 6.033 MB / 0.6276 GB, free: 41.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009582/0.953, allocations: 5.735 MB / 0.6332 GB, free: 35.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.9531, allocations: 0 / 0.6332 GB, free: 35.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003878/0.957, allocations: 2.339 MB / 0.6355 GB, free: 33.42 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.9597, allocations: 400.2 kB / 0.6358 GB, free: 33.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0721/1.032, allocations: 45.51 MB / 0.6803 GB, free: 13.35 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005337/1.037, allocations: 3.119 MB / 0.6833 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00486/1.042, allocations: 1.815 MB / 0.6851 GB, free: 8.375 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002876/1.045, allocations: 1.761 MB / 0.6868 GB, free: 6.613 MB / 494.1 MB Notification: Performance of SimCode: time 1.553e-06/1.045, allocations: 0 / 0.6868 GB, free: 6.613 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3582/1.403, allocations: 69.66 MB / 0.7548 GB, free: 187.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.66/23.06, allocations: 14.75 kB / 0.7549 GB, free: 187.5 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.0.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