Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 113.9 kB / 17.07 MB, free: 6.012 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.001204/0.001204, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009648/0.0009648, allocations: 39.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2681, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01229/0.2805, allocations: 12.01 MB / 412.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008417/0.2889, allocations: 4.192 MB / 416.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.2909, allocations: 71.81 kB / 416.5 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004859/0.2958, allocations: 2.76 MB / 419.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004933/0.3008, allocations: 2.015 MB / 421.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001725/0.3025, allocations: 0.8073 MB / 422.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005646/0.3082, allocations: 4.606 MB / 426.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003871/0.312, allocations: 3.539 MB / 430.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.3145, allocations: 1.69 MB / 431.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00272/0.3172, allocations: 2.336 MB / 434.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008653/0.3181, allocations: 352 kB / 434.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002603/0.3207, allocations: 1.295 MB / 435.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002177/0.3229, allocations: 2.112 MB / 438 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002749/0.3257, allocations: 2.427 MB / 440.4 MB, free: 440 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008572/0.3343, allocations: 7.586 MB / 448 MB, free: 8.812 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3343, allocations: 0 / 448 MB, free: 8.812 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3343, allocations: 0 / 448 MB, free: 8.812 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001907/0.3345, allocations: 0 / 448 MB, free: 8.812 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01038/0.3449, allocations: 5.439 MB / 453.5 MB, free: 3.297 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.345, allocations: 8.031 kB / 453.5 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001037/0.346, allocations: 0.8021 MB / 454.3 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008196/0.3542, allocations: 2.166 MB / 456.4 MB, free: 312 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006458/0.3607, allocations: 3.149 MB / 459.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.3609, allocations: 270.9 kB / 459.9 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001098/0.362, allocations: 431.6 kB / 460.3 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02229/0.3843, allocations: 12.22 MB / 472.5 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.3845, allocations: 47.58 kB / 472.5 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004503/0.385, allocations: 175.8 kB / 472.7 MB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003202/0.3882, allocations: 2.166 MB / 474.9 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02147/0.4097, allocations: 10.2 MB / 485.1 MB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05194/0.4616, allocations: 44.17 MB / 0.5169 GB, free: 5.359 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01165/0.4733, allocations: 4.618 MB / 0.5214 GB, free: 0.543 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002426/0.4758, allocations: 1.716 MB / 0.523 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01253/0.4884, allocations: 8.197 MB / 0.531 GB, free: 6.234 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/0.4884, allocations: 55.81 kB / 0.5311 GB, free: 6.172 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.959e-06/0.4885, allocations: 3.938 kB / 0.5311 GB, free: 6.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2318/0.7202, allocations: 16.17 MB / 0.5469 GB, free: 127.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009868/0.7212, allocations: 1.697 MB / 0.5486 GB, free: 125.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004607/0.7259, allocations: 4.22 MB / 0.5527 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003884/0.7263, allocations: 57.33 kB / 0.5527 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00211/0.7284, allocations: 3.541 MB / 0.5562 GB, free: 122 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/0.7295, allocations: 0.8469 MB / 0.557 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001769/0.7313, allocations: 1.356 MB / 0.5583 GB, free: 120.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.711e-05/0.7313, allocations: 308.8 kB / 0.5586 GB, free: 120.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002722/0.7341, allocations: 2.225 MB / 0.5608 GB, free: 119.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003673/0.7378, allocations: 6.35 MB / 0.567 GB, free: 111.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007012/0.7448, allocations: 9.257 MB / 0.576 GB, free: 100.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.626e-05/0.7449, allocations: 40 kB / 0.5761 GB, free: 100.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01225/0.7571, allocations: 9.107 MB / 0.585 GB, free: 91.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.752e-05/0.7572, allocations: 74.95 kB / 0.5851 GB, free: 91.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004373/0.7616, allocations: 2.829 MB / 0.5878 GB, free: 88.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00288/0.7645, allocations: 1.08 MB / 0.5889 GB, free: 87.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004084/0.7686, allocations: 1.564 MB / 0.5904 GB, free: 86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003571/0.7722, allocations: 4.683 MB / 0.595 GB, free: 81.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00469/0.7769, allocations: 428.1 kB / 0.5954 GB, free: 80.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005076/0.7774, allocations: 416 kB / 0.5958 GB, free: 80.22 MB / 462.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.002668/0.7801, allocations: 2.211 MB / 0.5979 GB, free: 78 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005953/0.7807, allocations: 403.4 kB / 0.5983 GB, free: 77.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005156/0.7858, allocations: 3.282 MB / 0.6015 GB, free: 74.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004174/0.79, allocations: 2.746 MB / 0.6042 GB, free: 71.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.7901, allocations: 4 kB / 0.6042 GB, free: 71.53 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.7901, allocations: 15.89 kB / 0.6042 GB, free: 71.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/0.8047, allocations: 10.33 MB / 0.6143 GB, free: 60.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/0.8048, allocations: 12 kB / 0.6143 GB, free: 60.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/0.8061, allocations: 367.6 kB / 0.6147 GB, free: 60.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002564/0.8087, allocations: 0.9979 MB / 0.6156 GB, free: 59.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/0.8089, allocations: 59.97 kB / 0.6157 GB, free: 59.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003809/0.8127, allocations: 4.892 MB / 0.6205 GB, free: 54.34 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006835/0.8134, allocations: 1.565 MB / 0.622 GB, free: 52.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007179/0.8206, allocations: 5.937 MB / 0.6278 GB, free: 46.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.8216, allocations: 470.2 kB / 0.6283 GB, free: 46.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004326/0.8221, allocations: 51.98 kB / 0.6283 GB, free: 45.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/0.8236, allocations: 143.8 kB / 0.6284 GB, free: 45.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002733/0.8239, allocations: 172.4 kB / 0.6286 GB, free: 45.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.824, allocations: 83.97 kB / 0.6287 GB, free: 45.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003095/0.8271, allocations: 2.594 MB / 0.6312 GB, free: 42.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8271, allocations: 0 / 0.6312 GB, free: 42.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004659/0.8318, allocations: 1.144 MB / 0.6323 GB, free: 41.83 MB / 462.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.007365/0.8392, allocations: 6.633 MB / 0.6388 GB, free: 34.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008165/0.8474, allocations: 5.926 MB / 0.6446 GB, free: 29.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.8474, allocations: 0 / 0.6446 GB, free: 29.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003539/0.8509, allocations: 2.204 MB / 0.6468 GB, free: 26.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.8539, allocations: 496.5 kB / 0.6472 GB, free: 26.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06269/0.9166, allocations: 50.66 MB / 0.6967 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00404/0.9207, allocations: 3.462 MB / 0.7001 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004295/0.925, allocations: 2.019 MB / 0.7021 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002887/0.9279, allocations: 2.096 MB / 0.7041 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of SimCode: time 1.132e-06/0.9279, allocations: 0 / 0.7041 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3168/1.245, allocations: 73.11 MB / 0.7755 GB, free: 145.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 58.3/59.55, allocations: 11.97 kB / 0.7755 GB, free: 145.6 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches