Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002155/0.002155, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002047/0.002047, allocations: 214.1 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.604/1.604, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002416/0.002416, allocations: 63.88 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2922, allocations: 53.4 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01472/0.307, allocations: 10.75 MB / 441.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009689/0.3166, allocations: 3.931 MB / 445.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.3183, allocations: 75.62 kB / 445.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005666/0.324, allocations: 2.266 MB / 448.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00555/0.3295, allocations: 1.856 MB / 450.1 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.3318, allocations: 0.7058 MB / 450.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007666/0.3395, allocations: 4.328 MB / 455.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00432/0.3438, allocations: 2.446 MB / 457.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/0.3471, allocations: 1.487 MB / 459 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00449/0.3516, allocations: 2.255 MB / 461.3 MB, free: 8.434 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001455/0.3531, allocations: 296 kB / 461.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.3552, allocations: 0.9479 MB / 462.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002678/0.3579, allocations: 1.854 MB / 464.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003441/0.3613, allocations: 2.085 MB / 466.5 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009873/0.3712, allocations: 6.392 MB / 472.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3712, allocations: 0 / 472.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3712, allocations: 8 kB / 472.9 MB, free: 12.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001922/0.3714, allocations: 0 / 472.9 MB, free: 12.81 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.01095/0.3823, allocations: 4.633 MB / 477.5 MB, free: 8.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.3824, allocations: 8.031 kB / 477.5 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001169/0.3835, allocations: 0.699 MB / 478.2 MB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007689/0.3912, allocations: 1.96 MB / 480.2 MB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006393/0.3976, allocations: 2.623 MB / 482.8 MB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000212/0.3978, allocations: 225.6 kB / 483 MB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006487/0.3985, allocations: 303.7 kB / 483.3 MB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01928/0.4178, allocations: 9.659 MB / 493 MB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.4179, allocations: 43.67 kB / 493 MB, free: 7.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003972/0.4183, allocations: 147.9 kB / 493.1 MB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003199/0.4215, allocations: 1.919 MB / 495.1 MB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01659/0.4381, allocations: 7.645 MB / 0.4909 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05446/0.4925, allocations: 37.54 MB / 0.5276 GB, free: 7.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007592/0.5001, allocations: 2.348 MB / 0.5299 GB, free: 4.938 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001346/0.5015, allocations: 0.7934 MB / 0.5307 GB, free: 4.137 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007096/0.5086, allocations: 3.09 MB / 0.5337 GB, free: 1.016 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.5086, allocations: 47.16 kB / 0.5337 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.546e-06/0.5086, allocations: 0 / 0.5337 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2701/0.7787, allocations: 9.134 MB / 0.5426 GB, free: 98.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.7788, allocations: 149.7 kB / 0.5428 GB, free: 98.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006452/0.7852, allocations: 3.932 MB / 0.5466 GB, free: 96.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002157/0.7855, allocations: 49.08 kB / 0.5467 GB, free: 96.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001612/0.7871, allocations: 3.216 MB / 0.5498 GB, free: 94.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000465/0.7875, allocations: 0.6244 MB / 0.5504 GB, free: 94.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001703/0.7892, allocations: 1.173 MB / 0.5516 GB, free: 93.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.165e-05/0.7893, allocations: 301.1 kB / 0.5519 GB, free: 93.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.7912, allocations: 1.567 MB / 0.5534 GB, free: 92.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003652/0.7948, allocations: 5.341 MB / 0.5586 GB, free: 87.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006567/0.8014, allocations: 7.529 MB / 0.5659 GB, free: 78.42 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.476e-05/0.8015, allocations: 39.81 kB / 0.566 GB, free: 78.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01067/0.8122, allocations: 6.638 MB / 0.5725 GB, free: 71.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.031e-05/0.8123, allocations: 72 kB / 0.5725 GB, free: 71.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.8124, allocations: 136 kB / 0.5727 GB, free: 71.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001252/0.8125, allocations: 176 kB / 0.5728 GB, free: 71.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/0.8164, allocations: 1.372 MB / 0.5742 GB, free: 70.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001257/0.8165, allocations: 259 kB / 0.5744 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003887/0.8204, allocations: 291.7 kB / 0.5747 GB, free: 69.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003246/0.8207, allocations: 368 kB / 0.5751 GB, free: 69.3 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.00264/0.8234, allocations: 1.973 MB / 0.577 GB, free: 67.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/0.8238, allocations: 357.6 kB / 0.5773 GB, free: 66.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005114/0.8243, allocations: 406 kB / 0.5777 GB, free: 66.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/0.8243, allocations: 20 kB / 0.5777 GB, free: 66.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.139e-05/0.8244, allocations: 0 / 0.5777 GB, free: 66.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.276e-05/0.8244, allocations: 3.984 kB / 0.5777 GB, free: 66.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007826/0.8323, allocations: 5.722 MB / 0.5833 GB, free: 60.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.066e-05/0.8323, allocations: 24.12 kB / 0.5833 GB, free: 60.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008179/0.8332, allocations: 287.5 kB / 0.5836 GB, free: 60.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.767e-05/0.8332, allocations: 24 kB / 0.5836 GB, free: 60.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.697e-05/0.8332, allocations: 48 kB / 0.5837 GB, free: 60.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.729e-05/0.8333, allocations: 35.86 kB / 0.5837 GB, free: 60.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/0.8333, allocations: 27.88 kB / 0.5837 GB, free: 60.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003121/0.8364, allocations: 3.245 MB / 0.5869 GB, free: 56.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006622/0.8371, allocations: 357.5 kB / 0.5873 GB, free: 56.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.8374, allocations: 51.98 kB / 0.5873 GB, free: 56.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.8384, allocations: 55.97 kB / 0.5874 GB, free: 56.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.8385, allocations: 158.9 kB / 0.5875 GB, free: 55.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.167e-05/0.8386, allocations: 67.98 kB / 0.5876 GB, free: 55.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003265/0.8418, allocations: 2.438 MB / 0.59 GB, free: 53.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8418, allocations: 0 / 0.59 GB, free: 53.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005072/0.8469, allocations: 0.8475 MB / 0.5908 GB, free: 52.66 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.003507/0.8504, allocations: 3.918 MB / 0.5946 GB, free: 48.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00502/0.8554, allocations: 3.533 MB / 0.5981 GB, free: 44.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.8555, allocations: 0 / 0.5981 GB, free: 44.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007374/0.8562, allocations: 0.6947 MB / 0.5987 GB, free: 44.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/0.8593, allocations: 459.4 kB / 0.5992 GB, free: 43.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04937/0.9086, allocations: 40.38 MB / 0.6386 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004357/0.913, allocations: 3.097 MB / 0.6416 GB, free: 10.03 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004381/0.9174, allocations: 1.764 MB / 0.6434 GB, free: 8.258 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002978/0.9203, allocations: 1.792 MB / 0.6451 GB, free: 6.465 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.9203, allocations: 0 / 0.6451 GB, free: 6.465 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1424/1.063, allocations: 61.07 MB / 0.7047 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.95/23.01, allocations: 0 / 0.7047 GB, free: 9.723 MB / 0.5137 GB " [Timeout remaining time 637] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 26.474135815165937]