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.001608/0.001608, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001406/0.001406, allocations: 207.7 kB / 23.73 MB, free: 4.523 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.429/1.429, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001569/0.001569, allocations: 55.86 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2896, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01211/0.3017, allocations: 9.354 MB / 440.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00898/0.3107, allocations: 3.707 MB / 444.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0016/0.3123, allocations: 75.62 kB / 444.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004683/0.3169, allocations: 2.168 MB / 446.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004953/0.3219, allocations: 1.864 MB / 448.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001714/0.3236, allocations: 0.7058 MB / 449 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006191/0.3298, allocations: 4.316 MB / 453.3 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003319/0.3331, allocations: 2.443 MB / 455.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00255/0.3357, allocations: 1.487 MB / 457.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003578/0.3392, allocations: 2.266 MB / 459.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000866/0.3401, allocations: 292 kB / 459.8 MB, free: 9.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.3421, allocations: 0.8347 MB / 460.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001996/0.3441, allocations: 1.846 MB / 462.4 MB, free: 7.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.3462, allocations: 1.553 MB / 464 MB, free: 5.598 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007838/0.354, allocations: 6.419 MB / 470.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.354, allocations: 0 / 470.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3541, allocations: 0 / 470.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001651/0.3542, allocations: 4 kB / 470.4 MB, free: 15.14 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.009209/0.3634, allocations: 4.637 MB / 475.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3635, allocations: 15.97 kB / 475.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001148/0.3646, allocations: 0.6951 MB / 475.8 MB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007618/0.3722, allocations: 1.96 MB / 477.7 MB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006283/0.3785, allocations: 2.635 MB / 480.4 MB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.3787, allocations: 229.6 kB / 480.6 MB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000695/0.3794, allocations: 295.8 kB / 480.9 MB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01593/0.3953, allocations: 9.68 MB / 490.6 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.3955, allocations: 55.56 kB / 490.6 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003691/0.3958, allocations: 147.8 kB / 490.8 MB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003003/0.3988, allocations: 1.919 MB / 492.7 MB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01562/0.4145, allocations: 7.625 MB / 0.4886 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0446/0.4591, allocations: 36.24 MB / 0.524 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006615/0.4657, allocations: 2.345 MB / 0.5263 GB, free: 8.543 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.467, allocations: 0.7949 MB / 0.527 GB, free: 7.738 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006673/0.4737, allocations: 2.883 MB / 0.5298 GB, free: 4.828 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.823e-05/0.4737, allocations: 51.16 kB / 0.5299 GB, free: 4.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 5.7e-06/0.4737, allocations: 0 / 0.5299 GB, free: 4.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.234/0.7077, allocations: 9.126 MB / 0.5388 GB, free: 99.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/0.7078, allocations: 143.7 kB / 0.5389 GB, free: 99.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005787/0.7136, allocations: 4.166 MB / 0.543 GB, free: 98.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000201/0.7138, allocations: 45.58 kB / 0.5431 GB, free: 98.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.7153, allocations: 3.211 MB / 0.5462 GB, free: 96.03 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004397/0.7157, allocations: 0.6402 MB / 0.5468 GB, free: 95.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/0.7168, allocations: 1.16 MB / 0.5479 GB, free: 94.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.332e-05/0.7168, allocations: 305.1 kB / 0.5482 GB, free: 94.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001893/0.7187, allocations: 1.569 MB / 0.5498 GB, free: 94.22 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002949/0.7217, allocations: 5.339 MB / 0.555 GB, free: 88.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005453/0.7271, allocations: 7.529 MB / 0.5623 GB, free: 80.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.087e-05/0.7272, allocations: 36 kB / 0.5624 GB, free: 80.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008653/0.7358, allocations: 6.643 MB / 0.5689 GB, free: 75.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.173e-05/0.7359, allocations: 67.94 kB / 0.5689 GB, free: 74.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001034/0.736, allocations: 136.9 kB / 0.5691 GB, free: 74.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001179/0.7362, allocations: 176.5 kB / 0.5692 GB, free: 74.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/0.7397, allocations: 1.376 MB / 0.5706 GB, free: 73.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001256/0.7398, allocations: 266.7 kB / 0.5708 GB, free: 73.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003632/0.7434, allocations: 279.7 kB / 0.5711 GB, free: 72.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004768/0.7439, allocations: 366 kB / 0.5714 GB, free: 72.6 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.002425/0.7464, allocations: 1.985 MB / 0.5734 GB, free: 70.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005806/0.7469, allocations: 357.4 kB / 0.5737 GB, free: 70.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005646/0.7475, allocations: 401.5 kB / 0.5741 GB, free: 69.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.7475, allocations: 20 kB / 0.5741 GB, free: 69.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.947e-05/0.7475, allocations: 0 / 0.5741 GB, free: 69.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.7475, allocations: 3.984 kB / 0.5741 GB, free: 69.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007896/0.7554, allocations: 5.44 MB / 0.5794 GB, free: 64.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.937e-05/0.7555, allocations: 19.94 kB / 0.5795 GB, free: 64.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009195/0.7564, allocations: 276.4 kB / 0.5797 GB, free: 63.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.879e-05/0.7564, allocations: 28 kB / 0.5797 GB, free: 63.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-05/0.7565, allocations: 51.67 kB / 0.5798 GB, free: 63.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-05/0.7565, allocations: 35.86 kB / 0.5798 GB, free: 63.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/0.7565, allocations: 31.81 kB / 0.5799 GB, free: 63.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003317/0.7598, allocations: 3.253 MB / 0.583 GB, free: 60.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/0.761, allocations: 341.5 kB / 0.5834 GB, free: 59.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003799/0.7614, allocations: 55.98 kB / 0.5834 GB, free: 59.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.7626, allocations: 59.95 kB / 0.5835 GB, free: 59.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.7627, allocations: 151.3 kB / 0.5836 GB, free: 59.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.935e-05/0.7628, allocations: 67.98 kB / 0.5837 GB, free: 59.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003349/0.7662, allocations: 2.442 MB / 0.5861 GB, free: 57.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7662, allocations: 0 / 0.5861 GB, free: 57.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005634/0.7718, allocations: 0.8471 MB / 0.5869 GB, free: 56.39 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.003519/0.7753, allocations: 3.915 MB / 0.5907 GB, free: 52.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004956/0.7803, allocations: 3.534 MB / 0.5942 GB, free: 48.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-05/0.7803, allocations: 5.625 kB / 0.5942 GB, free: 48.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000826/0.7811, allocations: 0.6914 MB / 0.5948 GB, free: 48.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/0.7839, allocations: 454 kB / 0.5953 GB, free: 47.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04212/0.8261, allocations: 40.37 MB / 0.6347 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003318/0.8294, allocations: 2.561 MB / 0.6372 GB, free: 14.31 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004113/0.8335, allocations: 1.77 MB / 0.6389 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003239/0.8367, allocations: 1.784 MB / 0.6407 GB, free: 10.75 MB / 462.1 MB Notification: Performance of SimCode: time 1.402e-06/0.8367, allocations: 0 / 0.6407 GB, free: 10.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1234/0.9601, allocations: 58.4 MB / 0.6977 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.45/16.41, allocations: 11.91 kB / 0.6977 GB, free: 1.16 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.09289137000451]