Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 123 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 189.2 kB / 20.73 MB, free: 2.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 249.1 MB, free: 3.711 MB / 190.1 MB " [Timeout remaining time 178] 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.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 51.92 kB / 365.7 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1142, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01286/0.127, allocations: 10.74 MB / 428.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008312/0.1354, allocations: 3.896 MB / 432.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.1371, allocations: 75.62 kB / 432.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004431/0.1415, allocations: 2.273 MB / 434.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004974/0.1465, allocations: 1.864 MB / 436.6 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001664/0.1482, allocations: 0.7097 MB / 437.4 MB, free: 8.977 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00624/0.1544, allocations: 4.237 MB / 441.6 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00324/0.1576, allocations: 2.503 MB / 444.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.1601, allocations: 1.499 MB / 445.6 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2265/0.3866, allocations: 2.257 MB / 447.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009904/0.3876, allocations: 292.2 kB / 448.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002084/0.3897, allocations: 0.9713 MB / 449.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001998/0.3917, allocations: 1.872 MB / 451 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002808/0.3945, allocations: 2.105 MB / 453.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009506/0.404, allocations: 6.462 MB / 459.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.404, allocations: 1.531 kB / 459.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.404, allocations: 0 / 459.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002476/0.4042, allocations: 0 / 459.5 MB, free: 9.059 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01105/0.4153, allocations: 4.755 MB / 464.3 MB, free: 7.031 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.4153, allocations: 9.219 kB / 464.3 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001417/0.4168, allocations: 0.6912 MB / 465 MB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007755/0.4245, allocations: 1.971 MB / 467 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005748/0.4303, allocations: 2.902 MB / 469.9 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.4304, allocations: 232.3 kB / 470.1 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000603/0.431, allocations: 296 kB / 470.4 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/0.4467, allocations: 9.631 MB / 480 MB, free: 76 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001246/0.4468, allocations: 57.53 kB / 480.1 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004263/0.4472, allocations: 143.6 kB / 480.2 MB, free: 0 / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00304/0.4503, allocations: 1.918 MB / 482.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/0.4662, allocations: 7.629 MB / 489.8 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0513/0.5175, allocations: 37.66 MB / 0.5151 GB, free: 4.746 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007356/0.5249, allocations: 2.783 MB / 0.5178 GB, free: 1.836 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.5263, allocations: 0.7988 MB / 0.5186 GB, free: 1.027 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006866/0.5331, allocations: 3.768 MB / 0.5222 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.5332, allocations: 50.59 kB / 0.5223 GB, free: 13.04 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 5.17e-06/0.5332, allocations: 0.7031 kB / 0.5223 GB, free: 13.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02448/0.5577, allocations: 9.254 MB / 0.5313 GB, free: 3.715 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.5578, allocations: 145.5 kB / 0.5315 GB, free: 3.543 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006633/0.5644, allocations: 3.95 MB / 0.5353 GB, free: 15.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002703/0.5647, allocations: 45.7 kB / 0.5354 GB, free: 15.56 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002834/0.5675, allocations: 3.214 MB / 0.5385 GB, free: 12.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009588/0.5685, allocations: 0.6328 MB / 0.5391 GB, free: 11.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001948/0.5704, allocations: 1.165 MB / 0.5403 GB, free: 10.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5706, allocations: 305.1 kB / 0.5406 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00307/0.5736, allocations: 1.569 MB / 0.5421 GB, free: 8.691 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00638/0.58, allocations: 5.336 MB / 0.5473 GB, free: 1.527 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009987/0.59, allocations: 7.52 MB / 0.5546 GB, free: 8.637 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001104/0.5901, allocations: 36 kB / 0.5547 GB, free: 8.602 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01282/0.6029, allocations: 6.635 MB / 0.5612 GB, free: 1.973 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-05/0.603, allocations: 64 kB / 0.5612 GB, free: 1.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001495/0.6032, allocations: 132 kB / 0.5613 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001988/0.6034, allocations: 176.8 kB / 0.5615 GB, free: 1.609 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004291/0.6077, allocations: 1.376 MB / 0.5629 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003014/0.608, allocations: 263 kB / 0.5631 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004169/0.6121, allocations: 283.7 kB / 0.5634 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007829/0.6129, allocations: 360 kB / 0.5637 GB, free: 15.34 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00394/0.6169, allocations: 1.978 MB / 0.5657 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008298/0.6177, allocations: 354.6 kB / 0.566 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002843/0.6205, allocations: 1.254 MB / 0.5672 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.273e-05/0.6206, allocations: 18.34 kB / 0.5672 GB, free: 11.72 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.6206, allocations: 11.94 kB / 0.5672 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.6206, allocations: 3.984 kB / 0.5672 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.6313, allocations: 5.752 MB / 0.5729 GB, free: 5.664 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-05/0.6313, allocations: 23.88 kB / 0.5729 GB, free: 5.641 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.6323, allocations: 280.4 kB / 0.5732 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.676e-05/0.6324, allocations: 24 kB / 0.5732 GB, free: 5.344 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.6325, allocations: 55.98 kB / 0.5732 GB, free: 5.289 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-05/0.6325, allocations: 35.86 kB / 0.5733 GB, free: 5.254 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.143e-05/0.6325, allocations: 31.62 kB / 0.5733 GB, free: 5.227 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/0.6369, allocations: 3.233 MB / 0.5765 GB, free: 1.734 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.638, allocations: 434.5 kB / 0.5769 GB, free: 1.289 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003889/0.6384, allocations: 47.98 kB / 0.5769 GB, free: 1.242 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.6395, allocations: 54.78 kB / 0.577 GB, free: 1.191 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.6397, allocations: 151.4 kB / 0.5771 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.6398, allocations: 75.98 kB / 0.5772 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004522/0.6443, allocations: 2.439 MB / 0.5796 GB, free: 14.55 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6443, allocations: 0 / 0.5796 GB, free: 14.55 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005508/0.6498, allocations: 0.8593 MB / 0.5804 GB, free: 13.69 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005195/0.655, allocations: 3.917 MB / 0.5842 GB, free: 9.512 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0068/0.6618, allocations: 3.516 MB / 0.5877 GB, free: 6.043 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.581e-05/0.6618, allocations: 4 kB / 0.5877 GB, free: 6.039 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.663, allocations: 0.6776 MB / 0.5883 GB, free: 5.363 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00318/0.6662, allocations: 461.1 kB / 0.5888 GB, free: 4.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06613/0.7323, allocations: 40.39 MB / 0.6282 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004077/0.7364, allocations: 3.096 MB / 0.6312 GB, free: 3.121 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004099/0.7405, allocations: 1.772 MB / 0.633 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2169/0.9574, allocations: 1.792 MB / 0.6347 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/0.9574, allocations: 0 / 0.6347 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09974/1.057, allocations: 56.51 MB / 0.6899 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.47/19.53, allocations: 14.64 kB / 0.6899 GB, free: 151.9 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.107771242968738]