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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001614/0.001614, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.375/1.375, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 51.52 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1089, allocations: 49.44 MB / 350.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01408/0.1231, allocations: 10.71 MB / 360.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01032/0.1335, allocations: 3.864 MB / 364.6 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002337/0.1359, allocations: 63.81 kB / 364.7 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004638/0.1406, allocations: 2.227 MB / 366.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005296/0.1459, allocations: 1.835 MB / 368.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001797/0.1477, allocations: 0.7097 MB / 369.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.232/0.3798, allocations: 4.218 MB / 373.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004206/0.384, allocations: 2.903 MB / 376.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002627/0.3867, allocations: 1.473 MB / 378.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002861/0.3895, allocations: 2.078 MB / 380.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008002/0.3903, allocations: 296.8 kB / 380.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.3925, allocations: 0.9489 MB / 381.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001689/0.3942, allocations: 1.809 MB / 383.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001955/0.3961, allocations: 2.099 MB / 385.3 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006866/0.403, allocations: 6.179 MB / 391.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4031, allocations: 0 / 391.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4031, allocations: 0 / 391.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002026/0.4033, allocations: 1.156 kB / 391.5 MB, free: 4.602 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.01169/0.415, allocations: 4.606 MB / 396.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.415, allocations: 17.73 kB / 396.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006702/0.4217, allocations: 1.916 MB / 398 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004341/0.4261, allocations: 2.253 MB / 400.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.4263, allocations: 235 kB / 400.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005657/0.4269, allocations: 290.5 kB / 400.8 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01612/0.443, allocations: 9.639 MB / 410.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.4431, allocations: 44.72 kB / 410.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000369/0.4435, allocations: 147.8 kB / 410.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00276/0.4463, allocations: 1.923 MB / 412.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0146/0.4609, allocations: 7.622 MB / 420.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04248/0.5034, allocations: 37.75 MB / 457.9 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006579/0.51, allocations: 2.882 MB / 460.8 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.5113, allocations: 0.8785 MB / 461.6 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005743/0.517, allocations: 3.767 MB / 465.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.5171, allocations: 47.78 kB / 465.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.036e-06/0.5171, allocations: 0 / 465.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02113/0.5382, allocations: 9.03 MB / 474.5 MB, free: 3.594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.606e-05/0.5384, allocations: 145.5 kB / 474.6 MB, free: 3.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005186/0.5436, allocations: 3.916 MB / 478.5 MB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.5438, allocations: 49.7 kB / 478.6 MB, free: 15.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002105/0.5459, allocations: 3.075 MB / 481.7 MB, free: 12.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006366/0.5465, allocations: 0.6145 MB / 482.3 MB, free: 11.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.5479, allocations: 1.165 MB / 483.5 MB, free: 10.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.911e-05/0.548, allocations: 305.1 kB / 483.7 MB, free: 10.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002221/0.5502, allocations: 1.581 MB / 485.3 MB, free: 8.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004563/0.5548, allocations: 5.351 MB / 490.7 MB, free: 1.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008004/0.5628, allocations: 7.546 MB / 498.2 MB, free: 8.078 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.66e-05/0.563, allocations: 40 kB / 498.3 MB, free: 8.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01193/0.5749, allocations: 6.665 MB / 0.4931 GB, free: 1.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.111e-05/0.575, allocations: 60 kB / 0.4932 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001275/0.5751, allocations: 140 kB / 0.4933 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.5753, allocations: 176 kB / 0.4935 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004/0.5793, allocations: 1.385 MB / 0.4948 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002101/0.5795, allocations: 267 kB / 0.4951 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/0.5837, allocations: 287.7 kB / 0.4953 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006653/0.5844, allocations: 373.5 kB / 0.4957 GB, free: 14.72 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 (746): * Single equations (assignments): 743 * 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.003233/0.5876, allocations: 1.974 MB / 0.4976 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006087/0.5882, allocations: 335.7 kB / 0.4979 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.5903, allocations: 1.245 MB / 0.4992 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-05/0.5903, allocations: 16 kB / 0.4992 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.5904, allocations: 4 kB / 0.4992 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.5904, allocations: 7.969 kB / 0.4992 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009337/0.5997, allocations: 5.751 MB / 0.5048 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.363e-05/0.5998, allocations: 16 kB / 0.5048 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009276/0.6007, allocations: 279.7 kB / 0.5051 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.633e-05/0.6008, allocations: 27.94 kB / 0.5051 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.204e-05/0.6008, allocations: 53.17 kB / 0.5052 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.617e-05/0.6009, allocations: 35.86 kB / 0.5052 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.534e-05/0.6009, allocations: 27.88 kB / 0.5052 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004019/0.6049, allocations: 3.199 MB / 0.5083 GB, free: 1.184 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.6062, allocations: 412.6 kB / 0.5087 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003979/0.6066, allocations: 56.62 kB / 0.5088 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.6078, allocations: 62.53 kB / 0.5089 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.608, allocations: 151.4 kB / 0.509 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.6081, allocations: 64 kB / 0.5091 GB, free: 444 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004823/0.613, allocations: 2.432 MB / 0.5114 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.843e-06/0.613, allocations: 0 / 0.5114 GB, free: 14.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00551/0.6185, allocations: 0.8749 MB / 0.5123 GB, free: 13.15 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.0004166/0.6189, allocations: 208.7 kB / 0.5125 GB, free: 12.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007208/0.6261, allocations: 3.811 MB / 0.5162 GB, free: 9.156 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/0.6262, allocations: 8.312 kB / 0.5162 GB, free: 9.148 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.6272, allocations: 0.7219 MB / 0.5169 GB, free: 8.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003193/0.6304, allocations: 459.4 kB / 0.5174 GB, free: 7.984 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1952/0.8256, allocations: 8.607 MB / 0.5258 GB, free: 143.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005641/0.8313, allocations: 3.101 MB / 0.5288 GB, free: 142.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004806/0.8361, allocations: 1.763 MB / 0.5305 GB, free: 142.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006996/0.8368, allocations: 235.5 kB / 0.5307 GB, free: 142.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.8368, allocations: 0 / 0.5307 GB, free: 142.7 MB / 446.1 MB Notification: Performance of Templates: time 0.05787/0.8947, allocations: 27.15 MB / 0.5573 GB, free: 133.1 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/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