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.001139/0.001139, allocations: 107.7 kB / 16.92 MB, free: 5.656 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.00122/0.00122, allocations: 189.6 kB / 17.85 MB, free: 5.176 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.34/1.34, allocations: 222.9 MB / 241.6 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009763/0.0009764, allocations: 48.08 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.08559, allocations: 49.44 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01109/0.09672, allocations: 10.71 MB / 360.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006958/0.1037, allocations: 3.864 MB / 364.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.105, allocations: 63.81 kB / 364.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003966/0.109, allocations: 2.227 MB / 367 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004041/0.113, allocations: 1.822 MB / 368.9 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.1145, allocations: 0.7175 MB / 369.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1574/0.2719, allocations: 4.223 MB / 373.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004424/0.2764, allocations: 2.911 MB / 376.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004023/0.2804, allocations: 1.479 MB / 378.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005684/0.2861, allocations: 2.076 MB / 380.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001685/0.2879, allocations: 296.8 kB / 380.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003052/0.2909, allocations: 0.9443 MB / 381.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001969/0.2929, allocations: 1.803 MB / 383.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002407/0.2953, allocations: 2.109 MB / 385.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00627/0.3016, allocations: 6.195 MB / 391.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.3017, allocations: 0 / 391.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.3017, allocations: 0 / 391.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002547/0.3019, allocations: 5.875 kB / 391.6 MB, free: 4.586 MB / 302.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.009638/0.3116, allocations: 4.623 MB / 396.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.3117, allocations: 9.281 kB / 396.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001305/0.313, allocations: 0.6936 MB / 396.9 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007116/0.3201, allocations: 1.932 MB / 398.9 MB, free: 40 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006442/0.3266, allocations: 2.859 MB / 401.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.3268, allocations: 230.4 kB / 401.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007078/0.3275, allocations: 294.7 kB / 402.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01599/0.3435, allocations: 9.632 MB / 411.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.3437, allocations: 50.69 kB / 411.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004094/0.3441, allocations: 150 kB / 412.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002968/0.3471, allocations: 1.918 MB / 414 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.3623, allocations: 7.627 MB / 421.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04306/0.4054, allocations: 37.74 MB / 459.3 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006671/0.4121, allocations: 2.896 MB / 462.2 MB, free: 236 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.4134, allocations: 0.8701 MB / 463.1 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006254/0.4197, allocations: 3.761 MB / 466.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.4198, allocations: 50.42 kB / 466.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.158e-06/0.4198, allocations: 3.938 kB / 466.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02316/0.4429, allocations: 9.028 MB / 476 MB, free: 2.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.443, allocations: 149.5 kB / 476.1 MB, free: 2.039 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006633/0.4497, allocations: 3.935 MB / 480 MB, free: 14.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002429/0.45, allocations: 45.7 kB / 480.1 MB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002246/0.4522, allocations: 3.079 MB / 483.2 MB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007517/0.453, allocations: 0.6107 MB / 483.8 MB, free: 10.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001697/0.4547, allocations: 1.159 MB / 484.9 MB, free: 9.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.527e-05/0.4548, allocations: 309 kB / 485.2 MB, free: 8.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/0.4572, allocations: 1.561 MB / 486.8 MB, free: 7.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004495/0.4617, allocations: 5.339 MB / 492.1 MB, free: 124 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007643/0.4693, allocations: 7.521 MB / 499.7 MB, free: 6.746 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.714e-05/0.4694, allocations: 40 kB / 499.7 MB, free: 6.707 MB / 414.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01031/0.4797, allocations: 6.611 MB / 0.4944 GB, free: 96 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.26e-05/0.4799, allocations: 71.88 kB / 0.4945 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/0.48, allocations: 140 kB / 0.4946 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.4802, allocations: 176 kB / 0.4948 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00377/0.484, allocations: 1.369 MB / 0.4961 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001931/0.4842, allocations: 259 kB / 0.4964 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003443/0.4876, allocations: 287.6 kB / 0.4967 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005326/0.4882, allocations: 363.4 kB / 0.497 GB, free: 13.46 MB / 430.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.002811/0.491, allocations: 1.982 MB / 0.4989 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000576/0.4916, allocations: 339.6 kB / 0.4993 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.4936, allocations: 1.246 MB / 0.5005 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.386e-05/0.4936, allocations: 20 kB / 0.5005 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4937, allocations: 0 / 0.5005 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.4937, allocations: 7.969 kB / 0.5005 GB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008967/0.5026, allocations: 5.745 MB / 0.5061 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.291e-05/0.5027, allocations: 20 kB / 0.5061 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009342/0.5036, allocations: 275.6 kB / 0.5064 GB, free: 3.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-05/0.5037, allocations: 31.98 kB / 0.5064 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.5038, allocations: 52.64 kB / 0.5065 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-05/0.5038, allocations: 43.86 kB / 0.5065 GB, free: 3.395 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.737e-05/0.5038, allocations: 27.88 kB / 0.5066 GB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003409/0.5072, allocations: 3.203 MB / 0.5097 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007181/0.508, allocations: 408.6 kB / 0.5101 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.5083, allocations: 53.53 kB / 0.5101 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.5093, allocations: 63.95 kB / 0.5102 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.5095, allocations: 147.4 kB / 0.5103 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.474e-05/0.5096, allocations: 70.48 kB / 0.5104 GB, free: 15.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00326/0.5129, allocations: 2.447 MB / 0.5128 GB, free: 12.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5129, allocations: 0 / 0.5128 GB, free: 12.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00411/0.517, allocations: 0.8554 MB / 0.5136 GB, free: 11.88 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.003743/0.5207, allocations: 3.902 MB / 0.5174 GB, free: 7.707 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005276/0.526, allocations: 3.792 MB / 0.5211 GB, free: 3.949 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/0.526, allocations: 4.25 kB / 0.5211 GB, free: 3.945 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008862/0.5269, allocations: 0.731 MB / 0.5218 GB, free: 3.219 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/0.5292, allocations: 451.6 kB / 0.5223 GB, free: 2.785 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1753/0.7046, allocations: 45.51 MB / 0.5667 GB, free: 118.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002352/0.7069, allocations: 3.109 MB / 0.5698 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003413/0.7104, allocations: 1.757 MB / 0.5715 GB, free: 115.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/0.7118, allocations: 1.797 MB / 0.5732 GB, free: 113.7 MB / 446.1 MB Notification: Performance of SimCode: time 4.21e-07/0.7118, allocations: 0 / 0.5732 GB, free: 113.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5642/1.276, allocations: 59.92 MB / 0.6317 GB, free: 54.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.816/11.09, allocations: 4 kB / 0.6317 GB, free: 54.35 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