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.001702/0.001702, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001901/0.001901, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.456/1.456, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 51.91 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2469, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01365/0.2606, allocations: 12 MB / 412.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008265/0.2689, allocations: 4.2 MB / 416.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.2704, allocations: 67.81 kB / 416.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005458/0.2759, allocations: 2.756 MB / 419.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005054/0.281, allocations: 1.975 MB / 421.2 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001974/0.283, allocations: 0.8112 MB / 422.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006514/0.2896, allocations: 4.599 MB / 426.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004924/0.2945, allocations: 3.543 MB / 430.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002819/0.2973, allocations: 1.682 MB / 431.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003731/0.3011, allocations: 2.332 MB / 434.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001094/0.3022, allocations: 355.9 kB / 434.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003005/0.3052, allocations: 1.287 MB / 435.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002609/0.3079, allocations: 2.1 MB / 438 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003916/0.3118, allocations: 2.435 MB / 440.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009948/0.3217, allocations: 7.578 MB / 448 MB, free: 8.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3218, allocations: 4 kB / 448 MB, free: 8.871 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3218, allocations: 0 / 448 MB, free: 8.871 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001732/0.322, allocations: 0 / 448 MB, free: 8.871 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.01094/0.3329, allocations: 5.429 MB / 453.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.333, allocations: 8.031 kB / 453.4 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001284/0.3343, allocations: 0.806 MB / 454.2 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008582/0.3429, allocations: 2.162 MB / 456.4 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005972/0.3489, allocations: 3.149 MB / 459.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002405/0.3491, allocations: 274.8 kB / 459.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001131/0.3503, allocations: 431.6 kB / 460.2 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02286/0.3732, allocations: 12.23 MB / 472.4 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/0.3733, allocations: 47.58 kB / 472.5 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005224/0.3738, allocations: 171.8 kB / 472.7 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003621/0.3775, allocations: 2.17 MB / 474.8 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02251/0.4, allocations: 10.2 MB / 485 MB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05514/0.4552, allocations: 44.16 MB / 0.5168 GB, free: 5.426 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/0.467, allocations: 4.614 MB / 0.5213 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002604/0.4697, allocations: 1.724 MB / 0.523 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01261/0.4823, allocations: 8.197 MB / 0.531 GB, free: 6.297 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.059e-05/0.4824, allocations: 59.81 kB / 0.531 GB, free: 6.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.248e-06/0.4824, allocations: 3.938 kB / 0.531 GB, free: 6.227 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2334/0.7158, allocations: 16.16 MB / 0.5468 GB, free: 127.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009844/0.7168, allocations: 1.701 MB / 0.5485 GB, free: 125.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004899/0.7217, allocations: 4.227 MB / 0.5526 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003581/0.7221, allocations: 58.19 kB / 0.5527 GB, free: 124.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/0.7237, allocations: 3.542 MB / 0.5561 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000712/0.7244, allocations: 0.841 MB / 0.5569 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/0.7258, allocations: 1.361 MB / 0.5583 GB, free: 120.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.7258, allocations: 301.1 kB / 0.5586 GB, free: 120.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/0.7286, allocations: 2.23 MB / 0.5607 GB, free: 119.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004019/0.7326, allocations: 6.354 MB / 0.5669 GB, free: 111.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007403/0.74, allocations: 9.254 MB / 0.576 GB, free: 100.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.967e-05/0.7402, allocations: 40 kB / 0.576 GB, free: 100.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01448/0.7547, allocations: 9.104 MB / 0.5849 GB, free: 91.64 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.835e-05/0.7548, allocations: 68 kB / 0.585 GB, free: 91.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004655/0.7595, allocations: 2.844 MB / 0.5877 GB, free: 88.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002896/0.7624, allocations: 1.069 MB / 0.5888 GB, free: 87.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/0.767, allocations: 1.568 MB / 0.5903 GB, free: 86.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/0.7706, allocations: 4.686 MB / 0.5949 GB, free: 81.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005502/0.7761, allocations: 419.5 kB / 0.5953 GB, free: 80.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009626/0.7771, allocations: 423.3 kB / 0.5957 GB, free: 80.29 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.003281/0.7804, allocations: 2.209 MB / 0.5979 GB, free: 78.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007474/0.7812, allocations: 395.4 kB / 0.5982 GB, free: 77.69 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005533/0.7867, allocations: 3.286 MB / 0.6014 GB, free: 74.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004254/0.791, allocations: 2.742 MB / 0.6041 GB, free: 71.61 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.791, allocations: 4 kB / 0.6041 GB, free: 71.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/0.7911, allocations: 15.91 kB / 0.6041 GB, free: 71.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/0.8054, allocations: 10.33 MB / 0.6142 GB, free: 61.03 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/0.8055, allocations: 12.22 kB / 0.6142 GB, free: 61.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001331/0.8068, allocations: 375.4 kB / 0.6146 GB, free: 60.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002602/0.8094, allocations: 0.9863 MB / 0.6156 GB, free: 59.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/0.8096, allocations: 59.97 kB / 0.6156 GB, free: 59.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003843/0.8134, allocations: 4.904 MB / 0.6204 GB, free: 54.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006866/0.8141, allocations: 1.549 MB / 0.6219 GB, free: 52.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007372/0.8215, allocations: 5.94 MB / 0.6277 GB, free: 46.58 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.8226, allocations: 470.2 kB / 0.6282 GB, free: 46.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004628/0.8231, allocations: 63.97 kB / 0.6282 GB, free: 46.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/0.8246, allocations: 139.8 kB / 0.6284 GB, free: 45.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002908/0.8249, allocations: 172.4 kB / 0.6285 GB, free: 45.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.8251, allocations: 75.98 kB / 0.6286 GB, free: 45.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0031/0.8282, allocations: 2.602 MB / 0.6311 GB, free: 43.05 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8282, allocations: 0 / 0.6311 GB, free: 43.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004777/0.833, allocations: 1.137 MB / 0.6323 GB, free: 41.91 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.007498/0.8405, allocations: 6.641 MB / 0.6387 GB, free: 35.06 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008646/0.8492, allocations: 5.925 MB / 0.6445 GB, free: 29.09 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/0.8492, allocations: 4 kB / 0.6445 GB, free: 29.09 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003308/0.8526, allocations: 2.2 MB / 0.6467 GB, free: 26.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003079/0.8557, allocations: 0.4974 MB / 0.6472 GB, free: 26.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06806/0.9237, allocations: 50.65 MB / 0.6966 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004263/0.928, allocations: 3.458 MB / 0.7 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004581/0.9326, allocations: 2.022 MB / 0.702 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002857/0.9355, allocations: 2.093 MB / 0.704 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of SimCode: time 9.22e-07/0.9355, allocations: 3.938 kB / 0.704 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3355/1.271, allocations: 73.12 MB / 0.7754 GB, free: 145.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 58.89/60.16, allocations: 16.28 kB / 0.7754 GB, free: 145.7 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