Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001674/0.001674, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001915/0.001915, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.637/1.637, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 47.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1279, allocations: 53.32 MB / 426.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2553/0.3832, allocations: 10.73 MB / 437 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009391/0.3926, allocations: 3.898 MB / 440.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002645/0.3952, allocations: 76.16 kB / 441 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004314/0.3996, allocations: 2.252 MB / 443.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005053/0.4046, allocations: 1.844 MB / 445.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.4063, allocations: 0.7125 MB / 445.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00668/0.4129, allocations: 4.312 MB / 450.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004543/0.4175, allocations: 2.502 MB / 452.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003758/0.4213, allocations: 1.488 MB / 454.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004566/0.4258, allocations: 2.263 MB / 456.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001832/0.4276, allocations: 292.9 kB / 456.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003649/0.4313, allocations: 0.9514 MB / 457.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003327/0.4346, allocations: 1.839 MB / 459.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005355/0.44, allocations: 2.082 MB / 461.5 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.454, allocations: 6.4 MB / 467.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.4541, allocations: 0 / 467.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.4541, allocations: 4 kB / 468 MB, free: 5.434 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002885/0.4543, allocations: 0 / 468 MB, free: 5.434 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.01597/0.4703, allocations: 4.709 MB / 472.7 MB, free: 2.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.4704, allocations: 9.344 kB / 472.7 MB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002418/0.4728, allocations: 0.6943 MB / 473.4 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009308/0.4821, allocations: 1.967 MB / 475.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007832/0.4899, allocations: 2.696 MB / 478 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/0.4902, allocations: 225.6 kB / 478.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001136/0.4913, allocations: 295.8 kB / 478.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02334/0.5146, allocations: 9.655 MB / 488.2 MB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004042/0.515, allocations: 47.62 kB / 488.2 MB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007363/0.5158, allocations: 147.8 kB / 488.4 MB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003692/0.5195, allocations: 1.92 MB / 490.3 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02129/0.5408, allocations: 7.65 MB / 498 MB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06143/0.6022, allocations: 37.68 MB / 0.5231 GB, free: 1.316 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008556/0.6108, allocations: 2.793 MB / 0.5258 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.6126, allocations: 0.7955 MB / 0.5266 GB, free: 13.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008572/0.6212, allocations: 3.852 MB / 0.5303 GB, free: 9.508 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.6212, allocations: 47.22 kB / 0.5304 GB, free: 9.449 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.418e-06/0.6212, allocations: 0 / 0.5304 GB, free: 9.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.0284/0.6496, allocations: 9.286 MB / 0.5395 GB, free: 72 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.6498, allocations: 145.8 kB / 0.5396 GB, free: 15.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007892/0.6577, allocations: 3.933 MB / 0.5434 GB, free: 11.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003378/0.658, allocations: 45.7 kB / 0.5435 GB, free: 11.93 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003134/0.6611, allocations: 3.209 MB / 0.5466 GB, free: 8.695 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009563/0.6621, allocations: 0.6397 MB / 0.5472 GB, free: 8.051 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002238/0.6643, allocations: 1.163 MB / 0.5484 GB, free: 6.875 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003144/0.6646, allocations: 309.1 kB / 0.5487 GB, free: 6.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003433/0.6681, allocations: 1.566 MB / 0.5502 GB, free: 5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006759/0.6748, allocations: 5.346 MB / 0.5554 GB, free: 13.76 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/0.6857, allocations: 7.53 MB / 0.5628 GB, free: 4.352 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/0.6858, allocations: 40 kB / 0.5628 GB, free: 4.312 MB / 478.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01369/0.6995, allocations: 6.641 MB / 0.5693 GB, free: 13.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.6996, allocations: 64 kB / 0.5694 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001633/0.6998, allocations: 136 kB / 0.5695 GB, free: 13.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001994/0.7, allocations: 176 kB / 0.5697 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004638/0.7046, allocations: 1.368 MB / 0.571 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000244/0.7049, allocations: 259.3 kB / 0.5712 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004813/0.7097, allocations: 287.7 kB / 0.5715 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006856/0.7104, allocations: 370.7 kB / 0.5719 GB, free: 11.04 MB / 494.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.004961/0.7153, allocations: 1.986 MB / 0.5738 GB, free: 9.035 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007465/0.7161, allocations: 353.6 kB / 0.5741 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.7176, allocations: 401.6 kB / 0.5745 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.521e-05/0.7176, allocations: 20 kB / 0.5745 GB, free: 8.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.7176, allocations: 0 / 0.5745 GB, free: 8.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.7176, allocations: 7.969 kB / 0.5746 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01414/0.7318, allocations: 5.757 MB / 0.5802 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.741e-05/0.7318, allocations: 16 kB / 0.5802 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.7328, allocations: 279.5 kB / 0.5805 GB, free: 1.895 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-05/0.7329, allocations: 28 kB / 0.5805 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.874e-05/0.733, allocations: 47.98 kB / 0.5805 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.185e-05/0.733, allocations: 35.86 kB / 0.5806 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.328e-05/0.733, allocations: 35.81 kB / 0.5806 GB, free: 1.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005494/0.7385, allocations: 3.247 MB / 0.5838 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/0.7401, allocations: 422.6 kB / 0.5842 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004618/0.7405, allocations: 47.98 kB / 0.5842 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.7417, allocations: 63.95 kB / 0.5843 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.7419, allocations: 151.4 kB / 0.5844 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.742, allocations: 64 kB / 0.5845 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00553/0.7475, allocations: 2.434 MB / 0.5869 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7475, allocations: 4 kB / 0.5869 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007027/0.7546, allocations: 0.8475 MB / 0.5877 GB, free: 10.23 MB / 0.4981 GB 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.006379/0.7609, allocations: 3.926 MB / 0.5915 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008157/0.7691, allocations: 3.53 MB / 0.595 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.049e-05/0.7691, allocations: 4.625 kB / 0.595 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.7704, allocations: 0.6939 MB / 0.5957 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005319/0.7758, allocations: 452.1 kB / 0.5961 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3664/1.142, allocations: 40.38 MB / 0.6355 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009789/1.152, allocations: 3.091 MB / 0.6385 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008232/1.16, allocations: 1.765 MB / 0.6403 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004042/1.164, allocations: 1.787 MB / 0.642 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/1.164, allocations: 0.8438 kB / 0.642 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1259/1.29, allocations: 56.39 MB / 0.6971 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.46/21.75, allocations: 7.453 kB / 0.6971 GB, free: 126.2 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 24.62957813599496]