Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00141/0.00141, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001689/0.001689, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 69 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09288/0.09432, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01283/0.1072, allocations: 11.96 MB / 369.6 MB, free: 1.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1668/0.274, allocations: 4.2 MB / 373.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002499/0.2766, allocations: 71.06 kB / 373.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005784/0.2824, allocations: 2.75 MB / 376.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005702/0.2882, allocations: 1.932 MB / 378.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002494/0.2907, allocations: 0.8106 MB / 379.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007555/0.2983, allocations: 4.681 MB / 384 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004945/0.3033, allocations: 3.545 MB / 387.5 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.3065, allocations: 1.679 MB / 389.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003961/0.3105, allocations: 2.334 MB / 391.6 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001418/0.3119, allocations: 351.9 kB / 391.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.315, allocations: 1.256 MB / 393.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002466/0.3175, allocations: 2.082 MB / 395.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004613/0.3221, allocations: 2.408 MB / 397.6 MB, free: 320 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.333, allocations: 7.211 MB / 404.9 MB, free: 9.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.121e-05/0.3331, allocations: 0 / 404.9 MB, free: 9.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3331, allocations: 0 / 404.9 MB, free: 9.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000307/0.3334, allocations: 4 kB / 404.9 MB, free: 9.902 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01808/0.3515, allocations: 5.261 MB / 410.1 MB, free: 4.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/0.3516, allocations: 8.031 kB / 410.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002602/0.3542, allocations: 0.799 MB / 410.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01291/0.3671, allocations: 2.197 MB / 413.1 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006495/0.3737, allocations: 2.879 MB / 416 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000277/0.374, allocations: 274.2 kB / 416.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001616/0.3756, allocations: 434.2 kB / 416.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02453/0.4002, allocations: 12.26 MB / 429 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.4004, allocations: 51.47 kB / 429 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005594/0.4009, allocations: 176.1 kB / 429.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003208/0.4042, allocations: 2.165 MB / 431.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02219/0.4264, allocations: 10.25 MB / 441.6 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0516/0.478, allocations: 44.28 MB / 485.9 MB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/0.49, allocations: 4.648 MB / 490.5 MB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002643/0.4927, allocations: 1.726 MB / 492.2 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/0.5062, allocations: 8.27 MB / 0.4888 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/0.5063, allocations: 51.88 kB / 0.4888 GB, free: 8.082 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 5.089e-06/0.5063, allocations: 0 / 0.4888 GB, free: 8.082 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.04142/0.5477, allocations: 16.09 MB / 0.5045 GB, free: 7.828 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001596/0.5494, allocations: 1.696 MB / 0.5062 GB, free: 5.953 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007583/0.557, allocations: 4.203 MB / 0.5103 GB, free: 1.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003953/0.5574, allocations: 53.7 kB / 0.5104 GB, free: 1.672 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002559/0.56, allocations: 3.395 MB / 0.5137 GB, free: 14.28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001009/0.561, allocations: 0.8072 MB / 0.5145 GB, free: 13.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002523/0.5636, allocations: 1.341 MB / 0.5158 GB, free: 12.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.942e-05/0.5637, allocations: 309.2 kB / 0.5161 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003793/0.5675, allocations: 2.25 MB / 0.5183 GB, free: 9.566 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006593/0.5741, allocations: 6.366 MB / 0.5245 GB, free: 1.152 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1902/0.7643, allocations: 9.284 MB / 0.5335 GB, free: 129.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/0.7645, allocations: 42.31 kB / 0.5336 GB, free: 129.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01752/0.782, allocations: 9.109 MB / 0.5425 GB, free: 126.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001833/0.7823, allocations: 67.91 kB / 0.5425 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006194/0.7885, allocations: 2.881 MB / 0.5454 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003547/0.792, allocations: 1.085 MB / 0.5464 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004749/0.7968, allocations: 1.574 MB / 0.5479 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003956/0.8008, allocations: 4.682 MB / 0.5525 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/0.8056, allocations: 434.5 kB / 0.5529 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008754/0.8065, allocations: 421.4 kB / 0.5533 GB, free: 121.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003119/0.8096, allocations: 2.207 MB / 0.5555 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005938/0.8102, allocations: 379.6 kB / 0.5559 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005737/0.8159, allocations: 3.31 MB / 0.5591 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004579/0.8205, allocations: 2.783 MB / 0.5618 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.8206, allocations: 3.812 kB / 0.5618 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/0.8206, allocations: 7.641 kB / 0.5618 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01353/0.8341, allocations: 10.38 MB / 0.5719 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.8342, allocations: 15.98 kB / 0.572 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.8355, allocations: 375.4 kB / 0.5723 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002513/0.838, allocations: 0.9831 MB / 0.5733 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/0.8381, allocations: 63.97 kB / 0.5733 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003635/0.8418, allocations: 4.904 MB / 0.5781 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006325/0.8424, allocations: 1.559 MB / 0.5797 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00694/0.8494, allocations: 5.975 MB / 0.5855 GB, free: 96.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007728/0.8502, allocations: 436 kB / 0.5859 GB, free: 95.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003885/0.8506, allocations: 55.98 kB / 0.586 GB, free: 95.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.8521, allocations: 159.5 kB / 0.5861 GB, free: 95.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.8524, allocations: 172.5 kB / 0.5863 GB, free: 95.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.8525, allocations: 82.5 kB / 0.5864 GB, free: 95.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003251/0.8558, allocations: 2.598 MB / 0.5889 GB, free: 92.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8558, allocations: 0 / 0.5889 GB, free: 92.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005255/0.8611, allocations: 1.113 MB / 0.59 GB, free: 91.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008389/0.8695, allocations: 6.652 MB / 0.5965 GB, free: 84.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01046/0.88, allocations: 6.604 MB / 0.6029 GB, free: 78.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.746e-05/0.88, allocations: 4 kB / 0.6029 GB, free: 78.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003668/0.8837, allocations: 2.213 MB / 0.6051 GB, free: 76.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003054/0.8868, allocations: 0.502 MB / 0.6056 GB, free: 75.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05903/0.9458, allocations: 57.19 MB / 0.6614 GB, free: 9.414 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00327/0.9492, allocations: 3.458 MB / 0.6648 GB, free: 5.922 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004416/0.9536, allocations: 2.014 MB / 0.6668 GB, free: 3.902 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/0.9559, allocations: 2.096 MB / 0.6688 GB, free: 1.805 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.9559, allocations: 0 / 0.6688 GB, free: 1.805 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.31/1.266, allocations: 77.07 MB / 0.7441 GB, free: 144.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.85, allocations: 20.58 kB / 0.7441 GB, free: 144.3 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_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_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches