Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 116.9 kB / 18.45 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 216.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 207.6 MB / 231.8 MB, free: 4.062 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 52.56 kB / 342.3 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1095, allocations: 49.13 MB / 391.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01311/0.1226, allocations: 10.79 MB / 402.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009136/0.1317, allocations: 3.9 MB / 406.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001976/0.1337, allocations: 75.62 kB / 406.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00523/0.1389, allocations: 2.266 MB / 408.5 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006126/0.1451, allocations: 1.883 MB / 410.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.147, allocations: 0.7175 MB / 411.1 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007077/0.154, allocations: 4.258 MB / 415.3 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004153/0.1582, allocations: 2.522 MB / 417.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003448/0.1616, allocations: 1.514 MB / 419.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004022/0.1657, allocations: 2.27 MB / 421.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009341/0.1666, allocations: 292 kB / 421.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002157/0.1687, allocations: 0.9557 MB / 422.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002124/0.1709, allocations: 1.885 MB / 424.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003361/0.1742, allocations: 2.108 MB / 426.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009805/0.184, allocations: 6.488 MB / 433.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.184, allocations: 0 / 433.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.184, allocations: 0 / 433.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002764/0.1843, allocations: 4 kB / 433.4 MB, free: 14.57 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.01179/0.1961, allocations: 4.779 MB / 438.1 MB, free: 9.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.1962, allocations: 8.031 kB / 438.1 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001281/0.1974, allocations: 0.6873 MB / 438.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00796/0.2054, allocations: 1.975 MB / 440.8 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006643/0.2121, allocations: 3.207 MB / 444 MB, free: 3.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/0.2123, allocations: 225.6 kB / 444.2 MB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008784/0.2132, allocations: 299.8 kB / 444.5 MB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01858/0.2318, allocations: 9.635 MB / 454.2 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001736/0.2319, allocations: 51.58 kB / 454.2 MB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004984/0.2324, allocations: 143.8 kB / 454.3 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003525/0.2359, allocations: 1.915 MB / 456.3 MB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2095/0.4455, allocations: 7.632 MB / 463.9 MB, free: 57.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04115/0.4866, allocations: 37.7 MB / 0.4898 GB, free: 29.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006209/0.4928, allocations: 2.781 MB / 0.4926 GB, free: 27.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.494, allocations: 0.7963 MB / 0.4933 GB, free: 27.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005493/0.4995, allocations: 3.769 MB / 0.497 GB, free: 24.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.4995, allocations: 54.12 kB / 0.4971 GB, free: 24.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.897e-06/0.4995, allocations: 3.938 kB / 0.4971 GB, free: 24.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02049/0.52, allocations: 9.361 MB / 0.5062 GB, free: 17.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.5201, allocations: 145.5 kB / 0.5063 GB, free: 17.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004343/0.5244, allocations: 3.978 MB / 0.5102 GB, free: 13.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001849/0.5246, allocations: 49.38 kB / 0.5103 GB, free: 13.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00132/0.5259, allocations: 3.219 MB / 0.5134 GB, free: 9.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004361/0.5264, allocations: 0.6343 MB / 0.514 GB, free: 9.246 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001002/0.5274, allocations: 1.16 MB / 0.5152 GB, free: 8.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.672e-05/0.5274, allocations: 301.1 kB / 0.5155 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001926/0.5293, allocations: 1.569 MB / 0.517 GB, free: 6.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003643/0.533, allocations: 5.327 MB / 0.5222 GB, free: 14.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009756/0.5427, allocations: 7.538 MB / 0.5296 GB, free: 5.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/0.5429, allocations: 36 kB / 0.5296 GB, free: 5.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01461/0.5575, allocations: 6.638 MB / 0.5361 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-05/0.5576, allocations: 60 kB / 0.5361 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/0.5577, allocations: 136 kB / 0.5363 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/0.5579, allocations: 179.9 kB / 0.5364 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004466/0.5624, allocations: 1.373 MB / 0.5378 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002334/0.5626, allocations: 263 kB / 0.538 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00395/0.5666, allocations: 283.2 kB / 0.5383 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000731/0.5673, allocations: 367.4 kB / 0.5386 GB, free: 12.25 MB / 414.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.003498/0.5708, allocations: 1.978 MB / 0.5406 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007657/0.5715, allocations: 353.6 kB / 0.5409 GB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002504/0.574, allocations: 1.258 MB / 0.5421 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.129e-05/0.5741, allocations: 16 kB / 0.5422 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.5741, allocations: 0 / 0.5422 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.5741, allocations: 7.969 kB / 0.5422 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009896/0.584, allocations: 5.766 MB / 0.5478 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.669e-05/0.584, allocations: 16 kB / 0.5478 GB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.5851, allocations: 279.5 kB / 0.5481 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.892e-05/0.5851, allocations: 24 kB / 0.5481 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.643e-05/0.5852, allocations: 55.05 kB / 0.5481 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.222e-05/0.5852, allocations: 36.33 kB / 0.5482 GB, free: 2.145 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.921e-05/0.5853, allocations: 27.88 kB / 0.5482 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004316/0.5896, allocations: 3.253 MB / 0.5514 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/0.5909, allocations: 0.5259 MB / 0.5519 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004292/0.5913, allocations: 59.91 kB / 0.552 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.5925, allocations: 51.97 kB / 0.552 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.5927, allocations: 153.6 kB / 0.5522 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.5928, allocations: 64 kB / 0.5522 GB, free: 13.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004203/0.597, allocations: 2.467 MB / 0.5546 GB, free: 11.25 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.597, allocations: 0 / 0.5546 GB, free: 11.25 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00515/0.6021, allocations: 0.8632 MB / 0.5555 GB, free: 10.39 MB / 430.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.005253/0.6074, allocations: 3.911 MB / 0.5593 GB, free: 6.215 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006927/0.6143, allocations: 3.511 MB / 0.5627 GB, free: 2.734 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.039e-05/0.6143, allocations: 4 kB / 0.5627 GB, free: 2.73 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.6156, allocations: 0.6873 MB / 0.5634 GB, free: 2.047 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003051/0.6186, allocations: 461.5 kB / 0.5638 GB, free: 1.602 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07002/0.6886, allocations: 40.56 MB / 0.6034 GB, free: 2.742 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004237/0.6929, allocations: 3.116 MB / 0.6065 GB, free: 15.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004305/0.6972, allocations: 1.76 MB / 0.6082 GB, free: 13.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003238/0.7004, allocations: 1.792 MB / 0.6099 GB, free: 12.03 MB / 494.1 MB Notification: Performance of SimCode: time 1.984e-06/0.7004, allocations: 3.938 kB / 0.61 GB, free: 12.03 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.321/1.021, allocations: 56.77 MB / 0.6654 GB, free: 162.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.63/19.65, allocations: 7.5 kB / 0.6654 GB, free: 162.3 MB / 0.4981 GB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.40128886299499]