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.001388/0.001388, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001579/0.001579, allocations: 208.7 kB / 23.73 MB, free: 4.387 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.44/1.44, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001647/0.001647, allocations: 47.94 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2557, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01299/0.2687, allocations: 9.355 MB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008688/0.2774, allocations: 3.707 MB / 444.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002298/0.2797, allocations: 75.62 kB / 444.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005056/0.2847, allocations: 2.168 MB / 446.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005728/0.2905, allocations: 1.856 MB / 448.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002057/0.2925, allocations: 0.7175 MB / 449 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006979/0.2995, allocations: 4.308 MB / 453.3 MB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003869/0.3034, allocations: 2.439 MB / 455.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00305/0.3064, allocations: 1.487 MB / 457.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003585/0.31, allocations: 2.145 MB / 459.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009108/0.3109, allocations: 296 kB / 459.6 MB, free: 9.973 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002155/0.3131, allocations: 0.8231 MB / 460.5 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002366/0.3154, allocations: 1.854 MB / 462.3 MB, free: 7.289 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00292/0.3183, allocations: 1.545 MB / 463.9 MB, free: 5.734 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008673/0.327, allocations: 6.419 MB / 470.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.327, allocations: 0 / 470.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.327, allocations: 0 / 470.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000239/0.3273, allocations: 4 kB / 470.3 MB, free: 15.29 MB / 382.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.01274/0.34, allocations: 4.633 MB / 474.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.3401, allocations: 12.03 kB / 474.9 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001853/0.3419, allocations: 0.699 MB / 475.6 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008037/0.3499, allocations: 1.96 MB / 477.6 MB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00716/0.3571, allocations: 2.643 MB / 480.2 MB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002699/0.3574, allocations: 221.6 kB / 480.4 MB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001198/0.3586, allocations: 299.8 kB / 480.7 MB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/0.3775, allocations: 9.676 MB / 490.4 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001449/0.3776, allocations: 51.62 kB / 490.5 MB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005742/0.3782, allocations: 147.8 kB / 490.6 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003101/0.3813, allocations: 1.923 MB / 492.5 MB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01628/0.3976, allocations: 7.617 MB / 0.4884 GB, free: 492 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05003/0.4476, allocations: 36.26 MB / 0.5238 GB, free: 11.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0069/0.4545, allocations: 2.329 MB / 0.5261 GB, free: 8.688 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.456, allocations: 0.7988 MB / 0.5269 GB, free: 7.879 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007174/0.4632, allocations: 2.899 MB / 0.5297 GB, free: 4.953 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.673e-05/0.4633, allocations: 47.16 kB / 0.5298 GB, free: 4.898 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 5.541e-06/0.4633, allocations: 0 / 0.5298 GB, free: 4.898 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2474/0.7106, allocations: 9.12 MB / 0.5387 GB, free: 99.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.7107, allocations: 147.5 kB / 0.5388 GB, free: 99.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00549/0.7162, allocations: 4.158 MB / 0.5429 GB, free: 98.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001803/0.7164, allocations: 45.64 kB / 0.5429 GB, free: 98.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/0.7179, allocations: 3.212 MB / 0.5461 GB, free: 96.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004662/0.7183, allocations: 0.6343 MB / 0.5467 GB, free: 95.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/0.7194, allocations: 1.167 MB / 0.5478 GB, free: 94.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.839e-05/0.7194, allocations: 308.4 kB / 0.5481 GB, free: 94.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/0.7214, allocations: 1.57 MB / 0.5496 GB, free: 94.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003119/0.7245, allocations: 5.337 MB / 0.5549 GB, free: 88.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005677/0.7301, allocations: 7.528 MB / 0.5622 GB, free: 81.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.332e-05/0.7302, allocations: 36 kB / 0.5622 GB, free: 81.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008571/0.7388, allocations: 6.645 MB / 0.5687 GB, free: 75.13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.848e-05/0.7389, allocations: 60 kB / 0.5688 GB, free: 75.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.739, allocations: 137 kB / 0.5689 GB, free: 74.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001282/0.7391, allocations: 176.8 kB / 0.5691 GB, free: 74.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003207/0.7423, allocations: 1.374 MB / 0.5704 GB, free: 73.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001336/0.7424, allocations: 261.8 kB / 0.5707 GB, free: 73.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003892/0.7463, allocations: 285.7 kB / 0.5709 GB, free: 73.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003986/0.7467, allocations: 369.4 kB / 0.5713 GB, free: 72.71 MB / 446.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.002411/0.7491, allocations: 1.975 MB / 0.5732 GB, free: 70.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006568/0.7498, allocations: 361.3 kB / 0.5736 GB, free: 70.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005434/0.7503, allocations: 405.6 kB / 0.574 GB, free: 70.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/0.7504, allocations: 16 kB / 0.574 GB, free: 70.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.583e-05/0.7504, allocations: 2.625 kB / 0.574 GB, free: 70.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.7504, allocations: 9.469 kB / 0.574 GB, free: 70.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007217/0.7576, allocations: 5.434 MB / 0.5793 GB, free: 64.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-05/0.7576, allocations: 16 kB / 0.5793 GB, free: 64.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008146/0.7584, allocations: 276.3 kB / 0.5796 GB, free: 64.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-05/0.7585, allocations: 28 kB / 0.5796 GB, free: 64.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.634e-05/0.7585, allocations: 55.98 kB / 0.5797 GB, free: 64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.718e-05/0.7586, allocations: 35.86 kB / 0.5797 GB, free: 63.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/0.7586, allocations: 35.81 kB / 0.5797 GB, free: 63.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003178/0.7617, allocations: 3.248 MB / 0.5829 GB, free: 60.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000869/0.7626, allocations: 349.5 kB / 0.5832 GB, free: 60.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002983/0.7629, allocations: 55.36 kB / 0.5833 GB, free: 60.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.7639, allocations: 63.97 kB / 0.5833 GB, free: 59.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.7641, allocations: 151.3 kB / 0.5835 GB, free: 59.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-05/0.7641, allocations: 68 kB / 0.5835 GB, free: 59.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002699/0.7668, allocations: 2.442 MB / 0.5859 GB, free: 57.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7668, allocations: 0 / 0.5859 GB, free: 57.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004321/0.7712, allocations: 0.8402 MB / 0.5868 GB, free: 56.5 MB / 446.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.003042/0.7742, allocations: 3.915 MB / 0.5906 GB, free: 52.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004642/0.7788, allocations: 3.531 MB / 0.594 GB, free: 48.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.072e-05/0.7789, allocations: 4 kB / 0.594 GB, free: 48.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007963/0.7797, allocations: 0.6997 MB / 0.5947 GB, free: 48.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002685/0.7823, allocations: 448.2 kB / 0.5951 GB, free: 47.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04226/0.8246, allocations: 40.38 MB / 0.6346 GB, free: 1.012 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003604/0.8282, allocations: 2.553 MB / 0.6371 GB, free: 14.42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004762/0.833, allocations: 1.76 MB / 0.6388 GB, free: 12.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00278/0.8357, allocations: 1.784 MB / 0.6405 GB, free: 10.87 MB / 462.1 MB Notification: Performance of SimCode: time 1.653e-06/0.8357, allocations: 4 kB / 0.6405 GB, free: 10.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1225/0.9583, allocations: 55.89 MB / 0.6951 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.59, allocations: 0 / 0.6951 GB, free: 3.781 MB / 0.4981 GB " [Timeout remaining time 643] (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: 19.14982790593058]