Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 192.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 225.7 MB / 253.3 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 51.92 kB / 371.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2142, allocations: 52.18 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01188/0.2261, allocations: 10.76 MB / 434.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006964/0.2331, allocations: 3.923 MB / 438.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007837/0.2339, allocations: 75.62 kB / 438.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003809/0.2377, allocations: 2.27 MB / 440.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003424/0.2411, allocations: 1.895 MB / 442.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.2423, allocations: 0.7175 MB / 443.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004684/0.247, allocations: 4.223 MB / 447.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002635/0.2496, allocations: 2.463 MB / 449.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001723/0.2513, allocations: 1.499 MB / 451.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002677/0.254, allocations: 2.262 MB / 453.5 MB, free: 388 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004515/0.2545, allocations: 292 kB / 453.8 MB, free: 96 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00159/0.2561, allocations: 0.9791 MB / 454.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001617/0.2577, allocations: 1.862 MB / 456.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001917/0.2596, allocations: 2.108 MB / 458.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006286/0.2659, allocations: 6.465 MB / 465.2 MB, free: 4.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2659, allocations: 0 / 465.2 MB, free: 4.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2659, allocations: 0 / 465.2 MB, free: 4.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.025e-05/0.266, allocations: 0 / 465.2 MB, free: 4.633 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.007129/0.2731, allocations: 4.668 MB / 469.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.2731, allocations: 8.031 kB / 469.9 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.72e-05/0.2732, allocations: 109.9 kB / 470 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007531/0.274, allocations: 0.6912 MB / 470.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007004/0.281, allocations: 1.967 MB / 472.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004667/0.2856, allocations: 2.838 MB / 475.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.2858, allocations: 225.6 kB / 475.7 MB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004774/0.2863, allocations: 299.8 kB / 476 MB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01318/0.2995, allocations: 9.635 MB / 485.6 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.275e-05/0.2996, allocations: 47.64 kB / 485.7 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003337/0.2999, allocations: 147.8 kB / 485.8 MB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002786/0.3027, allocations: 1.919 MB / 487.8 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01305/0.3157, allocations: 7.633 MB / 495.4 MB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04335/0.3591, allocations: 37.55 MB / 0.5204 GB, free: 14.81 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006244/0.3653, allocations: 2.316 MB / 0.5227 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.3666, allocations: 0.8002 MB / 0.5235 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005492/0.3721, allocations: 3.085 MB / 0.5265 GB, free: 8.539 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.3721, allocations: 47.16 kB / 0.5265 GB, free: 8.484 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.677e-06/0.3721, allocations: 0 / 0.5265 GB, free: 8.484 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.1843/0.5564, allocations: 9.098 MB / 0.5354 GB, free: 108.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.5564, allocations: 145.9 kB / 0.5356 GB, free: 108.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004536/0.5609, allocations: 3.951 MB / 0.5394 GB, free: 107.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.5611, allocations: 45.64 kB / 0.5395 GB, free: 107.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.5622, allocations: 3.213 MB / 0.5426 GB, free: 105.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.5625, allocations: 0.631 MB / 0.5432 GB, free: 105.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009141/0.5634, allocations: 1.167 MB / 0.5444 GB, free: 104.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.237e-05/0.5635, allocations: 303.8 kB / 0.5447 GB, free: 104.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001823/0.5653, allocations: 1.568 MB / 0.5462 GB, free: 104.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0026/0.5679, allocations: 5.338 MB / 0.5514 GB, free: 98.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004651/0.5725, allocations: 7.516 MB / 0.5587 GB, free: 91.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.105e-05/0.5726, allocations: 38.62 kB / 0.5588 GB, free: 91.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.006942/0.5795, allocations: 6.625 MB / 0.5652 GB, free: 86.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.326e-05/0.5796, allocations: 64 kB / 0.5653 GB, free: 85.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-05/0.5796, allocations: 132.1 kB / 0.5654 GB, free: 85.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001028/0.5797, allocations: 183.8 kB / 0.5656 GB, free: 85.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002984/0.5827, allocations: 1.369 MB / 0.5669 GB, free: 84.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000111/0.5828, allocations: 259 kB / 0.5672 GB, free: 84.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/0.5856, allocations: 288 kB / 0.5675 GB, free: 83.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002655/0.5859, allocations: 367.9 kB / 0.5678 GB, free: 83.42 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.001798/0.5877, allocations: 1.982 MB / 0.5698 GB, free: 81.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003472/0.588, allocations: 353.6 kB / 0.5701 GB, free: 81.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.5895, allocations: 1.253 MB / 0.5713 GB, free: 79.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.5895, allocations: 16 kB / 0.5713 GB, free: 79.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.5895, allocations: 7.984 kB / 0.5713 GB, free: 79.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.5895, allocations: 3.984 kB / 0.5713 GB, free: 79.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005958/0.5955, allocations: 5.722 MB / 0.5769 GB, free: 73.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/0.5955, allocations: 20 kB / 0.5769 GB, free: 73.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007809/0.5963, allocations: 279.6 kB / 0.5772 GB, free: 73.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/0.5963, allocations: 28 kB / 0.5772 GB, free: 73.49 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.988e-05/0.5963, allocations: 46.3 kB / 0.5773 GB, free: 73.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.76e-05/0.5963, allocations: 36.73 kB / 0.5773 GB, free: 73.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/0.5964, allocations: 35.81 kB / 0.5774 GB, free: 73.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.5988, allocations: 3.236 MB / 0.5805 GB, free: 69.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004798/0.5992, allocations: 349.5 kB / 0.5808 GB, free: 69.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/0.5995, allocations: 51.73 kB / 0.5809 GB, free: 69.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009665/0.6005, allocations: 67.95 kB / 0.581 GB, free: 69.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.6006, allocations: 147.3 kB / 0.5811 GB, free: 69.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-05/0.6007, allocations: 75.81 kB / 0.5812 GB, free: 69.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002274/0.603, allocations: 2.443 MB / 0.5836 GB, free: 66.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.603, allocations: 4 kB / 0.5836 GB, free: 66.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003392/0.6064, allocations: 0.8553 MB / 0.5844 GB, free: 65.93 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.002632/0.609, allocations: 3.904 MB / 0.5882 GB, free: 61.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003801/0.6128, allocations: 3.525 MB / 0.5917 GB, free: 58.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.6128, allocations: 4 kB / 0.5917 GB, free: 58.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006471/0.6134, allocations: 0.6905 MB / 0.5923 GB, free: 57.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00203/0.6155, allocations: 458.3 kB / 0.5928 GB, free: 57.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03272/0.6482, allocations: 40.38 MB / 0.6322 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002242/0.6504, allocations: 3.095 MB / 0.6352 GB, free: 7.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002869/0.6533, allocations: 1.764 MB / 0.6369 GB, free: 5.582 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/0.6547, allocations: 1.792 MB / 0.6387 GB, free: 3.789 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6547, allocations: 0 / 0.6387 GB, free: 3.789 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5739/1.229, allocations: 61.22 MB / 0.6985 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.14/21.37, allocations: 13.5 kB / 0.6985 GB, free: 7.004 MB / 0.4981 GB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 25.669025667011738]