Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001141/0.001141, allocations: 112.5 kB / 18.36 MB, free: 4.84 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.001397/0.001397, allocations: 184.5 kB / 19.29 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.91 kB / 329.1 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1038, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.226/0.3298, allocations: 10.75 MB / 386.5 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007845/0.3377, allocations: 3.866 MB / 390.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002219/0.34, allocations: 63.19 kB / 390.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004521/0.3445, allocations: 2.242 MB / 392.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005632/0.3502, allocations: 1.831 MB / 394.5 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001827/0.352, allocations: 0.7168 MB / 395.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006994/0.359, allocations: 4.264 MB / 399.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004356/0.3634, allocations: 2.917 MB / 402.4 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003243/0.3667, allocations: 1.493 MB / 403.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004025/0.3707, allocations: 2.092 MB / 406 MB, free: 14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001452/0.3722, allocations: 293.3 kB / 406.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.3754, allocations: 0.9322 MB / 407.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002763/0.3782, allocations: 1.82 MB / 409 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003926/0.3822, allocations: 2.104 MB / 411.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008032/0.3902, allocations: 6.425 MB / 417.6 MB, free: 5.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3903, allocations: 4 kB / 417.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3903, allocations: 0 / 417.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002342/0.3905, allocations: 0 / 417.6 MB, free: 5.656 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.009365/0.3999, allocations: 4.615 MB / 422.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3999, allocations: 11.89 kB / 422.2 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00715/0.4071, allocations: 1.918 MB / 424.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004467/0.4116, allocations: 2.394 MB / 426.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.4118, allocations: 221.6 kB / 426.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005952/0.4124, allocations: 299.8 kB / 427 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01549/0.4279, allocations: 9.631 MB / 436.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.428, allocations: 51.52 kB / 436.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004058/0.4285, allocations: 147.9 kB / 436.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002784/0.4313, allocations: 1.919 MB / 438.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01444/0.4457, allocations: 7.629 MB / 446.4 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04209/0.4878, allocations: 37.61 MB / 484 MB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006614/0.4945, allocations: 2.878 MB / 486.9 MB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.4958, allocations: 0.8808 MB / 487.8 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0061/0.5019, allocations: 3.759 MB / 491.5 MB, free: 9.254 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.502, allocations: 47.22 kB / 491.6 MB, free: 9.195 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 5.75e-06/0.5021, allocations: 0 / 491.6 MB, free: 9.195 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02245/0.5245, allocations: 9.069 MB / 0.4889 GB, free: 4 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001603/0.5247, allocations: 141.6 kB / 0.489 GB, free: 15.83 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005479/0.5302, allocations: 3.952 MB / 0.4929 GB, free: 11.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002296/0.5305, allocations: 45.7 kB / 0.4929 GB, free: 11.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00243/0.5329, allocations: 3.078 MB / 0.4959 GB, free: 8.727 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008212/0.5337, allocations: 0.6096 MB / 0.4965 GB, free: 8.109 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/0.5353, allocations: 1.159 MB / 0.4977 GB, free: 6.938 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.5354, allocations: 313 kB / 0.498 GB, free: 6.629 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002476/0.5379, allocations: 1.581 MB / 0.4995 GB, free: 5.043 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005562/0.5434, allocations: 5.351 MB / 0.5047 GB, free: 13.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009327/0.5528, allocations: 7.554 MB / 0.5121 GB, free: 4.359 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001417/0.553, allocations: 40 kB / 0.5122 GB, free: 4.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01438/0.5674, allocations: 6.66 MB / 0.5187 GB, free: 13.65 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.5675, allocations: 67.94 kB / 0.5187 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/0.5677, allocations: 136 kB / 0.5189 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001855/0.5679, allocations: 180 kB / 0.519 GB, free: 13.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004401/0.5723, allocations: 1.385 MB / 0.5204 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002005/0.5725, allocations: 270.9 kB / 0.5206 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004237/0.5768, allocations: 275.7 kB / 0.5209 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007011/0.5775, allocations: 364 kB / 0.5212 GB, free: 11 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 (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.003587/0.5811, allocations: 1.982 MB / 0.5232 GB, free: 9.004 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007311/0.5818, allocations: 335.6 kB / 0.5235 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.5841, allocations: 1.254 MB / 0.5247 GB, free: 7.406 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-05/0.5842, allocations: 16 kB / 0.5247 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.5842, allocations: 0 / 0.5247 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.5842, allocations: 3.984 kB / 0.5247 GB, free: 7.387 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/0.5959, allocations: 5.744 MB / 0.5304 GB, free: 1.316 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.979e-05/0.596, allocations: 23.94 kB / 0.5304 GB, free: 1.293 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.597, allocations: 275.5 kB / 0.5306 GB, free: 1.023 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.641e-05/0.597, allocations: 28.06 kB / 0.5307 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.171e-05/0.5971, allocations: 48 kB / 0.5307 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.71e-05/0.5972, allocations: 36.33 kB / 0.5307 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.93e-05/0.5972, allocations: 31.88 kB / 0.5308 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004375/0.6016, allocations: 3.227 MB / 0.5339 GB, free: 13.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001552/0.6032, allocations: 0.5121 MB / 0.5344 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004922/0.6037, allocations: 51.98 kB / 0.5345 GB, free: 12.81 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.6049, allocations: 55.95 kB / 0.5345 GB, free: 12.75 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.6051, allocations: 155.4 kB / 0.5347 GB, free: 12.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.6053, allocations: 64 kB / 0.5347 GB, free: 12.54 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004953/0.6102, allocations: 2.454 MB / 0.5371 GB, free: 10.11 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6103, allocations: 0 / 0.5371 GB, free: 10.11 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007435/0.6177, allocations: 0.8633 MB / 0.538 GB, free: 9.242 MB / 478.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.0005542/0.6183, allocations: 210.8 kB / 0.5382 GB, free: 9.027 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006615/0.6249, allocations: 3.686 MB / 0.5418 GB, free: 5.371 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.982e-05/0.625, allocations: 7.938 kB / 0.5418 GB, free: 5.363 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.6261, allocations: 0.7273 MB / 0.5425 GB, free: 4.641 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/0.6292, allocations: 460.5 kB / 0.5429 GB, free: 4.191 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2309/0.8601, allocations: 8.936 MB / 0.5517 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004868/0.865, allocations: 3.103 MB / 0.5547 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.866, allocations: 276.3 kB / 0.555 GB, free: 145 MB / 478.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8661, allocations: 0 / 0.555 GB, free: 145 MB / 478.1 MB Notification: Performance of Templates: time 0.08355/0.9496, allocations: 51.25 MB / 0.605 GB, free: 111.8 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches