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.001663/0.001663, allocations: 101.5 kB / 21.21 MB, free: 0.5078 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.001623/0.001623, allocations: 191.6 kB / 24.49 MB, free: 3.711 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.414/1.414, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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.001631/0.001631, allocations: 47.92 kB / 371.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2577, allocations: 52.18 MB / 423.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01159/0.2693, allocations: 9.332 MB / 432.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00812/0.2774, allocations: 3.682 MB / 436.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.2789, allocations: 75.62 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004667/0.2836, allocations: 2.184 MB / 438.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004877/0.2884, allocations: 1.887 MB / 440.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.2902, allocations: 0.7136 MB / 441.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005914/0.2961, allocations: 4.233 MB / 445.5 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003851/0.2999, allocations: 2.455 MB / 447.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002446/0.3024, allocations: 1.511 MB / 449.4 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003297/0.3057, allocations: 2.251 MB / 451.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007874/0.3064, allocations: 296 kB / 452 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.3083, allocations: 0.8621 MB / 452.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002069/0.3104, allocations: 1.866 MB / 454.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002597/0.313, allocations: 1.569 MB / 456.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.3235, allocations: 6.485 MB / 462.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.627e-05/0.3235, allocations: 3.984 kB / 462.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3235, allocations: 0 / 462.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002508/0.3238, allocations: 0 / 462.8 MB, free: 6.848 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.01151/0.3353, allocations: 4.668 MB / 467.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.3353, allocations: 12.03 kB / 467.4 MB, free: 2.109 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001568/0.3355, allocations: 97.97 kB / 467.5 MB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001804/0.3373, allocations: 0.6912 MB / 468.2 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00793/0.3452, allocations: 1.967 MB / 470.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006415/0.3516, allocations: 2.853 MB / 473 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.3518, allocations: 229.6 kB / 473.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007153/0.3526, allocations: 295.8 kB / 473.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01598/0.3685, allocations: 9.657 MB / 483.2 MB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.3686, allocations: 51.58 kB / 483.3 MB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003676/0.369, allocations: 151.8 kB / 483.4 MB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002796/0.3718, allocations: 1.919 MB / 485.3 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/0.3863, allocations: 7.625 MB / 493 MB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04774/0.434, allocations: 36.25 MB / 0.5168 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00669/0.4407, allocations: 2.32 MB / 0.5191 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.4422, allocations: 0.8076 MB / 0.5199 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006237/0.4485, allocations: 2.867 MB / 0.5227 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.4485, allocations: 51.16 kB / 0.5227 GB, free: 12.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.278e-06/0.4485, allocations: 0 / 0.5227 GB, free: 12.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02454/0.473, allocations: 9.106 MB / 0.5316 GB, free: 3.008 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.4732, allocations: 149.5 kB / 0.5317 GB, free: 2.828 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2143/0.6875, allocations: 3.936 MB / 0.5356 GB, free: 108.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000234/0.6877, allocations: 46.33 kB / 0.5356 GB, free: 108.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/0.6899, allocations: 3.213 MB / 0.5388 GB, free: 107.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005778/0.6904, allocations: 0.6298 MB / 0.5394 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/0.6917, allocations: 1.167 MB / 0.5405 GB, free: 106.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.622e-05/0.6917, allocations: 307.1 kB / 0.5408 GB, free: 106 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.6937, allocations: 1.564 MB / 0.5423 GB, free: 105.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00274/0.6964, allocations: 5.336 MB / 0.5475 GB, free: 99.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004623/0.7011, allocations: 7.518 MB / 0.5549 GB, free: 93.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.586e-05/0.7011, allocations: 39.75 kB / 0.5549 GB, free: 93.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008043/0.7091, allocations: 6.625 MB / 0.5614 GB, free: 88.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.886e-05/0.7092, allocations: 72.41 kB / 0.5615 GB, free: 88.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001096/0.7093, allocations: 136 kB / 0.5616 GB, free: 88.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001223/0.7094, allocations: 176 kB / 0.5618 GB, free: 88.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003261/0.7127, allocations: 1.369 MB / 0.5631 GB, free: 86.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001318/0.7128, allocations: 270.1 kB / 0.5634 GB, free: 86.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003766/0.7166, allocations: 284 kB / 0.5636 GB, free: 86.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004303/0.717, allocations: 371 kB / 0.564 GB, free: 86.07 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.002231/0.7193, allocations: 1.973 MB / 0.5659 GB, free: 84.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005017/0.7198, allocations: 365.2 kB / 0.5663 GB, free: 84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001599/0.7214, allocations: 1.25 MB / 0.5675 GB, free: 82.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.7214, allocations: 16 kB / 0.5675 GB, free: 82.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.7214, allocations: 0 / 0.5675 GB, free: 82.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.7214, allocations: 3.984 kB / 0.5675 GB, free: 82.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007048/0.7285, allocations: 5.436 MB / 0.5728 GB, free: 77.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/0.7285, allocations: 16 kB / 0.5728 GB, free: 77.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008636/0.7293, allocations: 275.5 kB / 0.5731 GB, free: 76.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.86e-05/0.7294, allocations: 27.94 kB / 0.5731 GB, free: 76.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.325e-05/0.7294, allocations: 48 kB / 0.5732 GB, free: 76.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.037e-05/0.7295, allocations: 35.86 kB / 0.5732 GB, free: 76.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.26e-05/0.7295, allocations: 28.33 kB / 0.5732 GB, free: 76.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002984/0.7324, allocations: 3.242 MB / 0.5764 GB, free: 73.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007708/0.7332, allocations: 353.5 kB / 0.5767 GB, free: 72.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000322/0.7335, allocations: 47.98 kB / 0.5768 GB, free: 72.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.7346, allocations: 55.97 kB / 0.5768 GB, free: 72.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.7347, allocations: 155.3 kB / 0.577 GB, free: 72.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.076e-05/0.7348, allocations: 75.98 kB / 0.577 GB, free: 72.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002818/0.7376, allocations: 2.443 MB / 0.5794 GB, free: 70.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.7376, allocations: 0 / 0.5794 GB, free: 70.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004116/0.7417, allocations: 0.8625 MB / 0.5803 GB, free: 69.17 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.002994/0.7447, allocations: 3.903 MB / 0.5841 GB, free: 65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004867/0.7496, allocations: 3.525 MB / 0.5875 GB, free: 61.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.605e-05/0.7496, allocations: 4.312 kB / 0.5875 GB, free: 61.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007147/0.7503, allocations: 0.6857 MB / 0.5882 GB, free: 60.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/0.7529, allocations: 457.4 kB / 0.5886 GB, free: 60.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03779/0.7907, allocations: 40.39 MB / 0.6281 GB, free: 13.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002503/0.7932, allocations: 2.545 MB / 0.6306 GB, free: 11.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003404/0.7966, allocations: 1.768 MB / 0.6323 GB, free: 9.352 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/0.7986, allocations: 1.788 MB / 0.634 GB, free: 7.562 MB / 446.1 MB Notification: Performance of SimCode: time 2.184e-06/0.7986, allocations: 0 / 0.634 GB, free: 7.562 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1115/0.9101, allocations: 58.37 MB / 0.691 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.69/20.6, allocations: 4.062 kB / 0.691 GB, free: 14.04 MB / 0.4981 GB " [Timeout remaining time 639] (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: 24.241910537006333]