Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 106.6 kB / 16.92 MB, free: 5.777 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.002386/0.002386, allocations: 187.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.436/2.436, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 47.3 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2086, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.02209/0.2308, allocations: 10.73 MB / 360.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.2459, allocations: 3.931 MB / 364.8 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003042/0.249, allocations: 59.81 kB / 364.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008478/0.2576, allocations: 2.589 MB / 367.5 MB, free: 2.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008093/0.2658, allocations: 1.753 MB / 369.2 MB, free: 1.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003083/0.2689, allocations: 0.6902 MB / 369.9 MB, free: 496 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.387/0.6559, allocations: 3.675 MB / 373.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007723/0.6637, allocations: 3.56 MB / 377.2 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004814/0.6686, allocations: 1.482 MB / 378.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006077/0.6747, allocations: 1.956 MB / 380.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002798/0.6776, allocations: 313.8 kB / 380.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005962/0.6836, allocations: 1.168 MB / 382.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004478/0.6882, allocations: 1.814 MB / 383.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005576/0.6938, allocations: 2.142 MB / 386 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01243/0.7063, allocations: 6.473 MB / 392.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.7064, allocations: 0 / 392.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.7064, allocations: 1.406 kB / 392.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003412/0.7067, allocations: 0 / 392.5 MB, free: 4.055 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01428/0.721, allocations: 4.581 MB / 397.1 MB, free: 0.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.45e-05/0.7211, allocations: 11.97 kB / 397.1 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002428/0.7236, allocations: 0.7228 MB / 397.8 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01344/0.737, allocations: 1.887 MB / 399.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.7479, allocations: 2.289 MB / 402 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006135/0.7486, allocations: 254.9 kB / 402.2 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003272/0.7519, allocations: 391.3 kB / 402.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03699/0.7889, allocations: 10.06 MB / 412.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002721/0.7893, allocations: 49.67 kB / 412.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001735/0.791, allocations: 164.4 kB / 412.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005018/0.7961, allocations: 1.853 MB / 414.7 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03137/0.8275, allocations: 8.328 MB / 423.1 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0904/0.918, allocations: 39.36 MB / 462.4 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01683/0.9349, allocations: 3.983 MB / 466.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003667/0.9386, allocations: 1.428 MB / 467.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0205/0.9591, allocations: 7.604 MB / 475.5 MB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.045e-05/0.9593, allocations: 51.5 kB / 475.5 MB, free: 2.496 MB / 382.1 MB Notification: Performance of pre-optimization done (n=152): time 1.047e-05/0.9593, allocations: 0 / 475.5 MB, free: 2.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=159): time 0.05889/1.018, allocations: 12.38 MB / 487.9 MB, free: 5.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003005/1.021, allocations: 1.679 MB / 489.6 MB, free: 4.082 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0132/1.035, allocations: 3.816 MB / 493.4 MB, free: 276 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005904/1.035, allocations: 49.64 kB / 493.4 MB, free: 220 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00418/1.039, allocations: 3.113 MB / 496.5 MB, free: 13.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001628/1.041, allocations: 0.6485 MB / 497.2 MB, free: 12.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005406/1.047, allocations: 1.253 MB / 498.4 MB, free: 11.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/1.047, allocations: 305.1 kB / 498.7 MB, free: 10.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006374/1.053, allocations: 2.011 MB / 0.489 GB, free: 8.883 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01056/1.064, allocations: 5.936 MB / 0.4948 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01647/1.08, allocations: 8.575 MB / 0.5032 GB, free: 6.473 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002145/1.081, allocations: 40 kB / 0.5032 GB, free: 6.434 MB / 430.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.03494/1.115, allocations: 8.772 MB / 0.5118 GB, free: 13.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003422/1.116, allocations: 71.94 kB / 0.5119 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01201/1.128, allocations: 2.792 MB / 0.5146 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009794/1.138, allocations: 1.534 MB / 0.5161 GB, free: 9.223 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008023/1.146, allocations: 1.364 MB / 0.5174 GB, free: 7.855 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01207/1.158, allocations: 5.813 MB / 0.5231 GB, free: 1.742 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009727/1.168, allocations: 387.4 kB / 0.5235 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001805/1.17, allocations: 388 kB / 0.5238 GB, free: 0.9844 MB / 446.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.3536/1.523, allocations: 2.009 MB / 0.5258 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001849/1.525, allocations: 330.1 kB / 0.5261 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01405/1.539, allocations: 3.123 MB / 0.5292 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01191/1.551, allocations: 2.684 MB / 0.5318 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-05/1.551, allocations: 2.781 kB / 0.5318 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.358e-05/1.551, allocations: 7.5 kB / 0.5318 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03796/1.589, allocations: 8.56 MB / 0.5401 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.642e-05/1.59, allocations: 0 / 0.5401 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001857/1.591, allocations: 192.2 kB / 0.5403 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008713/1.6, allocations: 1.442 MB / 0.5417 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005813/1.601, allocations: 44.28 kB / 0.5418 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/1.611, allocations: 6.012 MB / 0.5477 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001415/1.613, allocations: 1.547 MB / 0.5492 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01711/1.63, allocations: 5.306 MB / 0.5543 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/1.632, allocations: 373 kB / 0.5547 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001835/1.634, allocations: 36.03 kB / 0.5547 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003613/1.637, allocations: 120.3 kB / 0.5549 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007047/1.638, allocations: 90.31 kB / 0.5549 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003504/1.638, allocations: 50.02 kB / 0.555 GB, free: 122.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007689/1.646, allocations: 2.342 MB / 0.5573 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.494e-06/1.646, allocations: 0 / 0.5573 GB, free: 121.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01165/1.658, allocations: 1.006 MB / 0.5583 GB, free: 121.3 MB / 446.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.01635/1.674, allocations: 5.773 MB / 0.5639 GB, free: 117.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01685/1.691, allocations: 5.93 MB / 0.5697 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.691, allocations: 0 / 0.5697 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006461/1.698, allocations: 2.041 MB / 0.5717 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007958/1.706, allocations: 389.2 kB / 0.572 GB, free: 109.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1241/1.83, allocations: 50.28 MB / 0.6212 GB, free: 51.47 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006132/1.836, allocations: 3.107 MB / 0.6242 GB, free: 48.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007816/1.844, allocations: 1.8 MB / 0.6259 GB, free: 46.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004487/1.849, allocations: 1.768 MB / 0.6277 GB, free: 44.75 MB / 446.1 MB Notification: Performance of SimCode: time 2.114e-06/1.849, allocations: 0 / 0.6277 GB, free: 44.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.286/2.135, allocations: 69.7 MB / 0.6957 GB, free: 7.453 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.93/24.07, allocations: 4 kB / 0.6957 GB, free: 7.449 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches