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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 107.8 kB / 17.06 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 189.4 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2894, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01294/0.3024, allocations: 10.7 MB / 410.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008791/0.3112, allocations: 3.876 MB / 414.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.3128, allocations: 59.81 kB / 414.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004755/0.3176, allocations: 2.234 MB / 417.1 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004718/0.3224, allocations: 1.836 MB / 419 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.324, allocations: 0.7019 MB / 419.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006108/0.3301, allocations: 4.24 MB / 423.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003886/0.334, allocations: 2.896 MB / 426.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002484/0.3365, allocations: 1.472 MB / 428.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003203/0.3397, allocations: 2.091 MB / 430.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000782/0.3405, allocations: 292 kB / 430.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002171/0.3427, allocations: 0.944 MB / 431.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.3448, allocations: 1.812 MB / 433.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002449/0.3472, allocations: 2.097 MB / 435.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007695/0.3549, allocations: 6.457 MB / 441.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.355, allocations: 8 kB / 442 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.355, allocations: 0 / 442 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001641/0.3552, allocations: 0 / 442 MB, free: 14.93 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.009639/0.3648, allocations: 4.751 MB / 446.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.3649, allocations: 12.03 kB / 446.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009849/0.3659, allocations: 0.6873 MB / 447.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00739/0.3733, allocations: 1.975 MB / 449.4 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005258/0.3785, allocations: 2.902 MB / 452.3 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.3788, allocations: 233.6 kB / 452.5 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005344/0.3793, allocations: 291.8 kB / 452.8 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01626/0.3956, allocations: 9.635 MB / 462.4 MB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001198/0.3957, allocations: 55.56 kB / 462.5 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000389/0.3961, allocations: 143.8 kB / 462.6 MB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00308/0.3992, allocations: 1.923 MB / 464.6 MB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0156/0.4148, allocations: 7.633 MB / 472.2 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04638/0.4612, allocations: 37.68 MB / 0.4979 GB, free: 8.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006826/0.4681, allocations: 2.879 MB / 0.5007 GB, free: 5.887 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.4694, allocations: 0.8782 MB / 0.5016 GB, free: 4.996 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005822/0.4753, allocations: 3.772 MB / 0.5053 GB, free: 1.023 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.4753, allocations: 43.22 kB / 0.5053 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 5.229e-06/0.4754, allocations: 4 kB / 0.5053 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02153/0.4969, allocations: 9.252 MB / 0.5143 GB, free: 7.617 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.497, allocations: 141.5 kB / 0.5145 GB, free: 7.449 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006242/0.5033, allocations: 3.946 MB / 0.5183 GB, free: 3.523 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002091/0.5035, allocations: 41.7 kB / 0.5184 GB, free: 3.477 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002494/0.506, allocations: 3.213 MB / 0.5215 GB, free: 240 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006767/0.5067, allocations: 0.6398 MB / 0.5221 GB, free: 15.59 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001878/0.5086, allocations: 1.167 MB / 0.5233 GB, free: 14.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.5088, allocations: 305.1 kB / 0.5236 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00358/0.5124, allocations: 1.565 MB / 0.5251 GB, free: 12.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006271/0.5187, allocations: 5.338 MB / 0.5303 GB, free: 5.305 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2389/0.7576, allocations: 7.514 MB / 0.5376 GB, free: 122.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/0.7578, allocations: 47.06 kB / 0.5377 GB, free: 122.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01049/0.7683, allocations: 6.624 MB / 0.5442 GB, free: 120 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.279e-05/0.7684, allocations: 61.41 kB / 0.5442 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/0.7685, allocations: 134.5 kB / 0.5443 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001343/0.7686, allocations: 178.9 kB / 0.5445 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/0.772, allocations: 1.375 MB / 0.5459 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001442/0.7721, allocations: 265.8 kB / 0.5461 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003258/0.7754, allocations: 283.6 kB / 0.5464 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003417/0.7758, allocations: 362.2 kB / 0.5467 GB, free: 119.6 MB / 462.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.002356/0.7781, allocations: 1.975 MB / 0.5487 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004609/0.7786, allocations: 359.1 kB / 0.549 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001861/0.7805, allocations: 1.244 MB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.722e-05/0.7805, allocations: 19.69 kB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.7805, allocations: 7.062 kB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.7805, allocations: 7.312 kB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00749/0.788, allocations: 5.757 MB / 0.5559 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/0.7881, allocations: 16 kB / 0.5559 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008546/0.7889, allocations: 273.8 kB / 0.5561 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.041e-05/0.789, allocations: 25.97 kB / 0.5562 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.378e-05/0.7891, allocations: 48 kB / 0.5562 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.411e-05/0.7891, allocations: 35.86 kB / 0.5563 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/0.7891, allocations: 27.88 kB / 0.5563 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002967/0.7921, allocations: 3.253 MB / 0.5595 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006711/0.7928, allocations: 425.3 kB / 0.5599 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002866/0.7931, allocations: 47.23 kB / 0.5599 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009928/0.7941, allocations: 61.94 kB / 0.56 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.7942, allocations: 148.9 kB / 0.5601 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.432e-05/0.7943, allocations: 64 kB / 0.5602 GB, free: 110.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002938/0.7972, allocations: 2.441 MB / 0.5626 GB, free: 108.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7972, allocations: 3.938 kB / 0.5626 GB, free: 108.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00413/0.8014, allocations: 0.868 MB / 0.5634 GB, free: 107.8 MB / 462.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.0031/0.8045, allocations: 3.909 MB / 0.5672 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004779/0.8093, allocations: 3.674 MB / 0.5708 GB, free: 100 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/0.8093, allocations: 4 kB / 0.5708 GB, free: 99.99 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008183/0.8101, allocations: 0.7338 MB / 0.5715 GB, free: 99.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/0.8128, allocations: 444.3 kB / 0.572 GB, free: 98.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0413/0.8541, allocations: 40.39 MB / 0.6114 GB, free: 52.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002641/0.8568, allocations: 3.095 MB / 0.6144 GB, free: 49.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003167/0.86, allocations: 1.768 MB / 0.6161 GB, free: 47.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001711/0.8617, allocations: 1.788 MB / 0.6179 GB, free: 45.49 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.8617, allocations: 0 / 0.6179 GB, free: 45.49 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09738/0.9591, allocations: 56.11 MB / 0.6727 GB, free: 5.816 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.29/18.25, allocations: 8 kB / 0.6727 GB, free: 5.809 MB / 478.1 MB (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 --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) 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) Reference file matches