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.001175/0.001175, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001218/0.001218, allocations: 190.5 kB / 17.43 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.374/1.374, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 43.23 kB / 300.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09412, allocations: 49.45 MB / 349.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1885/0.2827, allocations: 38.65 MB / 388.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.3019, allocations: 8.481 MB / 396.6 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007449/0.3093, allocations: 168 kB / 396.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004554/0.314, allocations: 2.2 MB / 399 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004629/0.3186, allocations: 1.713 MB / 400.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.3202, allocations: 0.6572 MB / 401.4 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006233/0.3264, allocations: 5.867 MB / 407.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003161/0.3296, allocations: 2.866 MB / 410.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.3319, allocations: 1.323 MB / 411.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002783/0.3347, allocations: 2.231 MB / 413.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005561/0.3352, allocations: 212 kB / 413.9 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001704/0.337, allocations: 0.9205 MB / 414.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00137/0.3383, allocations: 1.769 MB / 416.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.3401, allocations: 2.046 MB / 418.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005129/0.3453, allocations: 6.128 MB / 424.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3453, allocations: 0 / 424.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3453, allocations: 3.938 kB / 424.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001132/0.3454, allocations: 4 kB / 424.7 MB, free: 9.465 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.006932/0.3524, allocations: 4.623 MB / 429.4 MB, free: 4.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3524, allocations: 12.03 kB / 429.4 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000692/0.3531, allocations: 0.6951 MB / 430.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006673/0.3598, allocations: 1.941 MB / 432 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004311/0.3641, allocations: 2.851 MB / 434.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.3643, allocations: 229.6 kB / 435.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004652/0.3648, allocations: 295.8 kB / 435.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0134/0.3782, allocations: 9.639 MB / 445 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/0.3783, allocations: 47.53 kB / 445.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005083/0.3788, allocations: 151.8 kB / 445.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002608/0.3814, allocations: 1.915 MB / 447.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/0.3953, allocations: 7.629 MB / 454.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04547/0.4408, allocations: 37.74 MB / 492.5 MB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0069/0.4477, allocations: 2.882 MB / 495.4 MB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.4492, allocations: 0.8773 MB / 496.3 MB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006572/0.4558, allocations: 3.759 MB / 0.4883 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.4559, allocations: 43.22 kB / 0.4883 GB, free: 11.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.779e-06/0.4559, allocations: 0 / 0.4883 GB, free: 11.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02348/0.4794, allocations: 9.037 MB / 0.4972 GB, free: 2.523 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/0.4795, allocations: 145.5 kB / 0.4973 GB, free: 2.352 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006203/0.4857, allocations: 3.929 MB / 0.5011 GB, free: 14.44 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.4858, allocations: 45.7 kB / 0.5012 GB, free: 14.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002149/0.488, allocations: 3.086 MB / 0.5042 GB, free: 11.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005813/0.4886, allocations: 0.6173 MB / 0.5048 GB, free: 10.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001469/0.4901, allocations: 1.155 MB / 0.5059 GB, free: 9.469 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.4902, allocations: 309.1 kB / 0.5062 GB, free: 9.164 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002251/0.4924, allocations: 1.557 MB / 0.5077 GB, free: 7.602 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004235/0.4967, allocations: 5.334 MB / 0.513 GB, free: 376 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007261/0.504, allocations: 7.525 MB / 0.5203 GB, free: 6.965 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-05/0.504, allocations: 40 kB / 0.5203 GB, free: 6.926 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01009/0.5141, allocations: 6.617 MB / 0.5268 GB, free: 308 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.5143, allocations: 60 kB / 0.5269 GB, free: 248 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001786/0.5144, allocations: 136 kB / 0.527 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1467/0.6611, allocations: 173.8 kB / 0.5272 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004796/0.666, allocations: 1.366 MB / 0.5285 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003254/0.6663, allocations: 264.8 kB / 0.5287 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003759/0.6701, allocations: 280.9 kB / 0.529 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004517/0.6705, allocations: 364 kB / 0.5294 GB, free: 146.5 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.002534/0.6731, allocations: 1.981 MB / 0.5313 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005437/0.6736, allocations: 337.4 kB / 0.5316 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.6756, allocations: 1.249 MB / 0.5328 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/0.6756, allocations: 16.92 kB / 0.5328 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.6756, allocations: 1 kB / 0.5328 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.6757, allocations: 7.234 kB / 0.5329 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008267/0.6839, allocations: 5.759 MB / 0.5385 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.602e-05/0.684, allocations: 20.97 kB / 0.5385 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009855/0.685, allocations: 276.6 kB / 0.5388 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.002e-05/0.685, allocations: 25.19 kB / 0.5388 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.456e-05/0.6851, allocations: 48.72 kB / 0.5388 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.745e-05/0.6852, allocations: 41.39 kB / 0.5389 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.361e-05/0.6852, allocations: 27.22 kB / 0.5389 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003775/0.689, allocations: 3.225 MB / 0.542 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000832/0.6898, allocations: 410.4 kB / 0.5424 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003284/0.6902, allocations: 47.95 kB / 0.5425 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.6913, allocations: 67.23 kB / 0.5425 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.6915, allocations: 146.2 kB / 0.5427 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.148e-05/0.6916, allocations: 69.42 kB / 0.5428 GB, free: 141.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003642/0.6952, allocations: 2.446 MB / 0.5451 GB, free: 140.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6953, allocations: 0 / 0.5451 GB, free: 140.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004457/0.6997, allocations: 0.8544 MB / 0.546 GB, free: 140.4 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.003213/0.7029, allocations: 3.888 MB / 0.5498 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004706/0.7077, allocations: 3.61 MB / 0.5533 GB, free: 136.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/0.7077, allocations: 3.938 kB / 0.5533 GB, free: 136.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008395/0.7085, allocations: 0.7351 MB / 0.554 GB, free: 136.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.711, allocations: 443 kB / 0.5544 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04909/0.7601, allocations: 47.3 MB / 0.6006 GB, free: 84.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002462/0.7626, allocations: 3.095 MB / 0.6037 GB, free: 81.44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003744/0.7664, allocations: 1.76 MB / 0.6054 GB, free: 79.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/0.768, allocations: 1.792 MB / 0.6071 GB, free: 77.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.768, allocations: 4 kB / 0.6071 GB, free: 77.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3901/1.158, allocations: 58.79 MB / 0.6645 GB, free: 19.47 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001328/1.158, allocations: 225.1 kB / 0.6648 GB, free: 19.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.456/4.615, allocations: 7.938 kB / 0.6648 GB, free: 19.21 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