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.001686/0.001686, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002195/0.002195, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.317/1.317, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 47.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2149, allocations: 53.35 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01208/0.227, allocations: 10.76 MB / 442.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007437/0.2344, allocations: 3.923 MB / 446.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.2357, allocations: 71.62 kB / 446.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004042/0.2397, allocations: 2.27 MB / 448.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004429/0.2441, allocations: 1.852 MB / 450.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.2455, allocations: 0.7097 MB / 451.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00619/0.2517, allocations: 4.313 MB / 455.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003414/0.2551, allocations: 2.452 MB / 458.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002391/0.2575, allocations: 1.491 MB / 459.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003101/0.2606, allocations: 2.255 MB / 462 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005994/0.2612, allocations: 295.9 kB / 462.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.263, allocations: 0.9557 MB / 463.3 MB, free: 7.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00184/0.2649, allocations: 1.85 MB / 465.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002398/0.2673, allocations: 2.085 MB / 467.2 MB, free: 3.422 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006863/0.2741, allocations: 6.399 MB / 473.6 MB, free: 13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.2741, allocations: 0 / 473.6 MB, free: 13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2741, allocations: 0 / 473.6 MB, free: 13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.856e-05/0.2742, allocations: 4 kB / 473.6 MB, free: 12.99 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.007615/0.2818, allocations: 4.629 MB / 478.2 MB, free: 8.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.2819, allocations: 8.031 kB / 478.2 MB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.652e-05/0.282, allocations: 109.9 kB / 478.3 MB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008064/0.2828, allocations: 0.6912 MB / 479 MB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006994/0.2898, allocations: 1.964 MB / 481 MB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004812/0.2946, allocations: 2.623 MB / 483.6 MB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.2948, allocations: 229.6 kB / 483.8 MB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004952/0.2953, allocations: 299.8 kB / 484.1 MB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.3094, allocations: 9.647 MB / 493.8 MB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/0.3095, allocations: 55.61 kB / 493.8 MB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003418/0.3099, allocations: 139.9 kB / 494 MB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002778/0.3126, allocations: 1.919 MB / 495.9 MB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01432/0.327, allocations: 7.641 MB / 0.4917 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04229/0.3693, allocations: 37.55 MB / 0.5284 GB, free: 7.402 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006339/0.3756, allocations: 2.348 MB / 0.5307 GB, free: 5.016 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.3768, allocations: 0.7939 MB / 0.5315 GB, free: 4.215 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005788/0.3826, allocations: 3.09 MB / 0.5345 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.3827, allocations: 51.09 kB / 0.5345 GB, free: 1.035 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.457e-06/0.3827, allocations: 0 / 0.5345 GB, free: 1.035 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2145/0.5972, allocations: 9.135 MB / 0.5435 GB, free: 99.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.5972, allocations: 145.7 kB / 0.5436 GB, free: 99.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003857/0.6011, allocations: 3.942 MB / 0.5475 GB, free: 97.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.6012, allocations: 45.61 kB / 0.5475 GB, free: 97.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.6023, allocations: 3.208 MB / 0.5506 GB, free: 95.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.6026, allocations: 0.6326 MB / 0.5512 GB, free: 95.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008754/0.6035, allocations: 1.165 MB / 0.5524 GB, free: 94.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.989e-05/0.6035, allocations: 305 kB / 0.5527 GB, free: 94.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.6052, allocations: 1.568 MB / 0.5542 GB, free: 93.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002696/0.6079, allocations: 5.332 MB / 0.5594 GB, free: 88.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004804/0.6127, allocations: 7.536 MB / 0.5668 GB, free: 78.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.197e-05/0.6128, allocations: 41.12 kB / 0.5668 GB, free: 78.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008102/0.6209, allocations: 6.641 MB / 0.5733 GB, free: 72.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.403e-05/0.621, allocations: 64.88 kB / 0.5734 GB, free: 72.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.6211, allocations: 136 kB / 0.5735 GB, free: 72.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001231/0.6212, allocations: 176 kB / 0.5737 GB, free: 71.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/0.6246, allocations: 1.376 MB / 0.575 GB, free: 70.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001208/0.6248, allocations: 263 kB / 0.5753 GB, free: 70.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003892/0.6286, allocations: 292.3 kB / 0.5755 GB, free: 69.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005495/0.6292, allocations: 363.1 kB / 0.5759 GB, free: 69.64 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.002153/0.6313, allocations: 1.974 MB / 0.5778 GB, free: 67.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005552/0.6319, allocations: 353.6 kB / 0.5781 GB, free: 67.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005488/0.6325, allocations: 401.6 kB / 0.5785 GB, free: 66.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.006e-05/0.6325, allocations: 16 kB / 0.5785 GB, free: 66.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/0.6325, allocations: 0 / 0.5785 GB, free: 66.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.6325, allocations: 14.97 kB / 0.5786 GB, free: 66.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006143/0.6386, allocations: 5.726 MB / 0.5841 GB, free: 60.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.6387, allocations: 16 kB / 0.5842 GB, free: 60.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007828/0.6394, allocations: 276.4 kB / 0.5844 GB, free: 60.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.642e-05/0.6395, allocations: 27.94 kB / 0.5845 GB, free: 60.56 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.309e-05/0.6395, allocations: 59.98 kB / 0.5845 GB, free: 60.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.745e-05/0.6395, allocations: 35.86 kB / 0.5845 GB, free: 60.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.247e-06/0.6396, allocations: 23.94 kB / 0.5846 GB, free: 60.44 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002456/0.642, allocations: 3.256 MB / 0.5877 GB, free: 56.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004644/0.6425, allocations: 350.2 kB / 0.5881 GB, free: 56.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.6427, allocations: 51.92 kB / 0.5881 GB, free: 56.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009613/0.6437, allocations: 67.95 kB / 0.5882 GB, free: 56.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.6438, allocations: 151.3 kB / 0.5883 GB, free: 56.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.171e-05/0.6439, allocations: 64 kB / 0.5884 GB, free: 56.26 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002253/0.6462, allocations: 2.438 MB / 0.5908 GB, free: 53.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6462, allocations: 0 / 0.5908 GB, free: 53.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003535/0.6497, allocations: 0.8475 MB / 0.5916 GB, free: 53 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.002656/0.6523, allocations: 3.918 MB / 0.5954 GB, free: 48.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004032/0.6564, allocations: 3.532 MB / 0.5989 GB, free: 45.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/0.6564, allocations: 4 kB / 0.5989 GB, free: 45.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006938/0.6571, allocations: 0.692 MB / 0.5996 GB, free: 44.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00226/0.6593, allocations: 446.6 kB / 0.6 GB, free: 44.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03709/0.6964, allocations: 40.39 MB / 0.6394 GB, free: 13.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003389/0.6998, allocations: 3.097 MB / 0.6425 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003676/0.7035, allocations: 1.764 MB / 0.6442 GB, free: 8.598 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/0.7057, allocations: 1.784 MB / 0.6459 GB, free: 6.812 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7057, allocations: 0 / 0.6459 GB, free: 6.812 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/0.8159, allocations: 61.12 MB / 0.7056 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.82/20.64, allocations: 4.062 kB / 0.7056 GB, free: 10.13 MB / 0.5137 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 24.08244874200318]