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.04503/0.04503, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.0618/0.0618, allocations: 214.6 kB / 23.73 MB, free: 4.164 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 12.86/12.86, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 167] 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.002525/0.002525, allocations: 59.91 kB / 377.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3182, allocations: 53.41 MB / 431.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01332/0.3315, allocations: 9.346 MB / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008982/0.3405, allocations: 3.699 MB / 444.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00156/0.342, allocations: 75.56 kB / 444.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004413/0.3464, allocations: 2.18 MB / 446.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005124/0.3516, allocations: 1.856 MB / 448.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.3532, allocations: 0.7097 MB / 449 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006331/0.3595, allocations: 4.316 MB / 453.3 MB, free: 200 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003407/0.3629, allocations: 2.431 MB / 455.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002536/0.3655, allocations: 1.487 MB / 457.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00326/0.3687, allocations: 2.141 MB / 459.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006717/0.3694, allocations: 296 kB / 459.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001866/0.3713, allocations: 0.8192 MB / 460.5 MB, free: 8.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001978/0.3732, allocations: 1.85 MB / 462.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001907/0.3751, allocations: 1.549 MB / 463.9 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007694/0.3828, allocations: 6.43 MB / 470.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3828, allocations: 3.984 kB / 470.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3828, allocations: 0 / 470.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001761/0.383, allocations: 0 / 470.3 MB, free: 15.09 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.009183/0.3922, allocations: 4.626 MB / 475 MB, free: 10.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.3922, allocations: 15.98 kB / 475 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009906/0.3932, allocations: 0.6951 MB / 475.7 MB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007316/0.4006, allocations: 1.964 MB / 477.6 MB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006665/0.4072, allocations: 2.646 MB / 480.3 MB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002288/0.4074, allocations: 225.6 kB / 480.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007711/0.4082, allocations: 291.9 kB / 480.8 MB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01731/0.4255, allocations: 9.691 MB / 490.5 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.4256, allocations: 39.64 kB / 490.5 MB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003662/0.426, allocations: 151.8 kB / 490.7 MB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003009/0.429, allocations: 1.919 MB / 492.6 MB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01542/0.4444, allocations: 7.637 MB / 0.4885 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04912/0.4936, allocations: 36.25 MB / 0.5239 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006966/0.5005, allocations: 2.329 MB / 0.5262 GB, free: 8.484 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.5019, allocations: 0.7988 MB / 0.5269 GB, free: 7.676 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006728/0.5087, allocations: 2.883 MB / 0.5298 GB, free: 4.766 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.781e-05/0.5087, allocations: 59.14 kB / 0.5298 GB, free: 4.699 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.888e-06/0.5087, allocations: 0 / 0.5298 GB, free: 4.699 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.3094/0.8182, allocations: 9.123 MB / 0.5387 GB, free: 99.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.634e-05/0.8182, allocations: 146.5 kB / 0.5389 GB, free: 99.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007303/0.8255, allocations: 4.162 MB / 0.5429 GB, free: 98.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002683/0.8258, allocations: 49.58 kB / 0.543 GB, free: 98.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002211/0.828, allocations: 3.202 MB / 0.5461 GB, free: 95.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006543/0.8287, allocations: 0.6425 MB / 0.5467 GB, free: 95.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001275/0.83, allocations: 1.161 MB / 0.5479 GB, free: 94.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.733e-05/0.83, allocations: 304.9 kB / 0.5482 GB, free: 94.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/0.8321, allocations: 1.57 MB / 0.5497 GB, free: 94.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003707/0.8359, allocations: 5.337 MB / 0.5549 GB, free: 88.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006875/0.8427, allocations: 7.527 MB / 0.5623 GB, free: 80.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.8428, allocations: 36 kB / 0.5623 GB, free: 80.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01106/0.8539, allocations: 6.65 MB / 0.5688 GB, free: 74.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.205e-05/0.854, allocations: 64 kB / 0.5688 GB, free: 74.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/0.8541, allocations: 136 kB / 0.569 GB, free: 74.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001425/0.8542, allocations: 176 kB / 0.5691 GB, free: 74.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003576/0.8578, allocations: 1.376 MB / 0.5705 GB, free: 73.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001698/0.858, allocations: 262.7 kB / 0.5707 GB, free: 72.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005265/0.8632, allocations: 289.8 kB / 0.571 GB, free: 72.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005816/0.8638, allocations: 362 kB / 0.5714 GB, free: 72.36 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.003322/0.8671, allocations: 1.977 MB / 0.5733 GB, free: 70.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009669/0.8681, allocations: 357.3 kB / 0.5736 GB, free: 70.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009692/0.8691, allocations: 409.5 kB / 0.574 GB, free: 69.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-05/0.8691, allocations: 23 kB / 0.574 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.226e-05/0.8692, allocations: 0 / 0.574 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.8692, allocations: 3.984 kB / 0.574 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00955/0.8787, allocations: 5.439 MB / 0.5794 GB, free: 63.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-05/0.8787, allocations: 20.03 kB / 0.5794 GB, free: 63.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009126/0.8797, allocations: 275.5 kB / 0.5796 GB, free: 63.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-05/0.8797, allocations: 24 kB / 0.5797 GB, free: 63.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-05/0.8798, allocations: 48 kB / 0.5797 GB, free: 63.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.433e-05/0.8798, allocations: 35.86 kB / 0.5797 GB, free: 63.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-05/0.8798, allocations: 31.81 kB / 0.5798 GB, free: 63.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003874/0.8837, allocations: 3.265 MB / 0.583 GB, free: 60.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.885, allocations: 341.5 kB / 0.5833 GB, free: 59.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003226/0.8853, allocations: 51.98 kB / 0.5833 GB, free: 59.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.8865, allocations: 59.95 kB / 0.5834 GB, free: 59.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.8866, allocations: 151.3 kB / 0.5835 GB, free: 59.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.726e-05/0.8867, allocations: 67.98 kB / 0.5836 GB, free: 59.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003536/0.8903, allocations: 2.446 MB / 0.586 GB, free: 56.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8903, allocations: 0 / 0.586 GB, free: 56.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005811/0.8961, allocations: 0.8432 MB / 0.5868 GB, free: 56.12 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.004289/0.9004, allocations: 3.914 MB / 0.5906 GB, free: 51.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006175/0.9065, allocations: 3.529 MB / 0.5941 GB, free: 48.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-05/0.9066, allocations: 4.25 kB / 0.5941 GB, free: 48.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009234/0.9075, allocations: 0.6906 MB / 0.5948 GB, free: 47.76 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/0.9108, allocations: 461.6 kB / 0.5952 GB, free: 47.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0496/0.9604, allocations: 40.38 MB / 0.6346 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003393/0.9638, allocations: 2.553 MB / 0.6371 GB, free: 14.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004105/0.9679, allocations: 1.768 MB / 0.6389 GB, free: 12.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002576/0.9705, allocations: 1.784 MB / 0.6406 GB, free: 10.48 MB / 462.1 MB Notification: Performance of SimCode: time 2.014e-06/0.9705, allocations: 4 kB / 0.6406 GB, free: 10.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7169/1.687, allocations: 55.85 MB / 0.6951 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.56/17.25, allocations: 11.41 kB / 0.6952 GB, free: 3.316 MB / 0.4981 GB " [Timeout remaining time 643] (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: 31.991573540028185]