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.001211/0.001211, allocations: 110.5 kB / 16.62 MB, free: 6.961 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.001352/0.001352, allocations: 190 kB / 17.54 MB, free: 6.066 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.331/1.331, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 37.47 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1115, allocations: 49.45 MB / 349.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2296/0.3411, allocations: 38.64 MB / 388.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01828/0.3594, allocations: 8.387 MB / 396.7 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01048/0.37, allocations: 167.8 kB / 396.9 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005396/0.3754, allocations: 2.137 MB / 399 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006491/0.382, allocations: 1.705 MB / 400.7 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001893/0.3839, allocations: 0.6719 MB / 401.4 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007176/0.3911, allocations: 4.25 MB / 405.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003866/0.395, allocations: 3.065 MB / 408.7 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.3976, allocations: 1.502 MB / 410.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003139/0.4008, allocations: 2.309 MB / 412.5 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007157/0.4015, allocations: 292 kB / 412.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.4035, allocations: 0.9596 MB / 413.8 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001533/0.405, allocations: 1.839 MB / 415.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002042/0.4071, allocations: 2.14 MB / 417.8 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006697/0.4138, allocations: 6.234 MB / 424 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4138, allocations: 0 / 424 MB, free: 10.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4138, allocations: 8 kB / 424 MB, free: 10.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002221/0.4141, allocations: 0 / 424 MB, free: 10.38 MB / 334.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.00981/0.4239, allocations: 4.623 MB / 428.6 MB, free: 5.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.4239, allocations: 12.03 kB / 428.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001025/0.425, allocations: 0.6951 MB / 429.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007397/0.4324, allocations: 1.938 MB / 431.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006152/0.4386, allocations: 2.851 MB / 434.1 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002716/0.4389, allocations: 229.7 kB / 434.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001095/0.44, allocations: 291.8 kB / 434.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01566/0.4556, allocations: 9.647 MB / 444.3 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.4558, allocations: 43.59 kB / 444.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003685/0.4562, allocations: 143.9 kB / 444.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002734/0.4589, allocations: 1.919 MB / 446.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01485/0.4738, allocations: 7.637 MB / 454 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03809/0.5119, allocations: 37.74 MB / 491.7 MB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006413/0.5183, allocations: 2.886 MB / 494.6 MB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.5196, allocations: 0.8772 MB / 495.5 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005116/0.5247, allocations: 3.759 MB / 499.3 MB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.5247, allocations: 47.16 kB / 499.3 MB, free: 12.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.256e-06/0.5247, allocations: 0 / 499.3 MB, free: 12.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02063/0.5454, allocations: 9.032 MB / 0.4964 GB, free: 3.434 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.438e-05/0.5455, allocations: 149.5 kB / 0.4966 GB, free: 3.258 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005572/0.5511, allocations: 3.933 MB / 0.5004 GB, free: 15.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.5512, allocations: 49.7 kB / 0.5005 GB, free: 15.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/0.5533, allocations: 3.086 MB / 0.5035 GB, free: 12.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005651/0.5539, allocations: 0.6056 MB / 0.5041 GB, free: 11.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/0.5553, allocations: 1.162 MB / 0.5052 GB, free: 10.37 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.664e-05/0.5554, allocations: 305.1 kB / 0.5055 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002461/0.5579, allocations: 1.561 MB / 0.507 GB, free: 8.504 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004729/0.5626, allocations: 5.334 MB / 0.5122 GB, free: 1.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007947/0.5706, allocations: 7.519 MB / 0.5196 GB, free: 7.875 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.994e-05/0.5707, allocations: 40 kB / 0.5196 GB, free: 7.836 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01114/0.5818, allocations: 6.609 MB / 0.5261 GB, free: 1.219 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.582, allocations: 63.98 kB / 0.5261 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/0.5822, allocations: 140.8 kB / 0.5263 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.5823, allocations: 176 kB / 0.5264 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1982/0.7806, allocations: 1.369 MB / 0.5278 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002903/0.7809, allocations: 262.6 kB / 0.528 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/0.7846, allocations: 282.7 kB / 0.5283 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005666/0.7852, allocations: 363.8 kB / 0.5286 GB, free: 145.7 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.002887/0.7881, allocations: 1.975 MB / 0.5306 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005284/0.7886, allocations: 337.2 kB / 0.5309 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/0.7905, allocations: 1.252 MB / 0.5321 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-05/0.7906, allocations: 16.66 kB / 0.5321 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.7906, allocations: 5 kB / 0.5321 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/0.7906, allocations: 7.656 kB / 0.5321 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008448/0.7991, allocations: 5.748 MB / 0.5377 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-05/0.7991, allocations: 20.55 kB / 0.5378 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009651/0.8001, allocations: 280.4 kB / 0.538 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-05/0.8001, allocations: 25.78 kB / 0.5381 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.685e-05/0.8002, allocations: 55.83 kB / 0.5381 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.158e-05/0.8003, allocations: 35.53 kB / 0.5381 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-05/0.8003, allocations: 34.05 kB / 0.5382 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003942/0.8042, allocations: 3.216 MB / 0.5413 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007022/0.805, allocations: 410.5 kB / 0.5417 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/0.8053, allocations: 49.23 kB / 0.5418 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.8064, allocations: 63.38 kB / 0.5418 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.8065, allocations: 150.9 kB / 0.542 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.424e-05/0.8066, allocations: 71.89 kB / 0.542 GB, free: 140.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003354/0.81, allocations: 2.44 MB / 0.5444 GB, free: 139.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.81, allocations: 0 / 0.5444 GB, free: 139.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004532/0.8145, allocations: 0.862 MB / 0.5453 GB, free: 139.7 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.003336/0.8179, allocations: 3.899 MB / 0.5491 GB, free: 137.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005637/0.8235, allocations: 3.779 MB / 0.5527 GB, free: 136.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-05/0.8236, allocations: 4 kB / 0.5528 GB, free: 136.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008747/0.8245, allocations: 0.7351 MB / 0.5535 GB, free: 135.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/0.8281, allocations: 460 kB / 0.5539 GB, free: 135.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06296/0.891, allocations: 47.28 MB / 0.6001 GB, free: 85.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0031/0.8942, allocations: 3.104 MB / 0.6031 GB, free: 82.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003542/0.8977, allocations: 1.757 MB / 0.6048 GB, free: 80.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001597/0.8993, allocations: 1.796 MB / 0.6066 GB, free: 78.55 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.8993, allocations: 0 / 0.6066 GB, free: 78.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6656/1.565, allocations: 59.77 MB / 0.6649 GB, free: 19.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/1.565, allocations: 219 kB / 0.6652 GB, free: 18.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.685/5.25, allocations: 0 / 0.6652 GB, free: 18.95 MB / 446.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