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.001425/0.001425, allocations: 102 kB / 18.39 MB, free: 4.531 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.001485/0.001485, allocations: 190.5 kB / 19.33 MB, free: 3.605 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.5/1.5, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001209/0.001209, allocations: 55.92 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08799/0.08921, allocations: 46.61 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2019/0.2911, allocations: 10.75 MB / 386.6 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009004/0.3002, allocations: 3.875 MB / 390.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002941/0.3033, allocations: 63.31 kB / 390.5 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004934/0.3082, allocations: 2.231 MB / 392.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006211/0.3145, allocations: 1.842 MB / 394.6 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.3167, allocations: 0.7121 MB / 395.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008071/0.3248, allocations: 4.264 MB / 399.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005246/0.3301, allocations: 2.921 MB / 402.5 MB, free: 48 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003801/0.3339, allocations: 1.487 MB / 404 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004531/0.3385, allocations: 2.096 MB / 406.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001615/0.3401, allocations: 293.3 kB / 406.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003764/0.3439, allocations: 0.9325 MB / 407.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003473/0.3474, allocations: 1.831 MB / 409.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00521/0.3527, allocations: 2.105 MB / 411.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01095/0.3636, allocations: 6.425 MB / 417.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3637, allocations: 0 / 417.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3637, allocations: 0 / 417.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002901/0.364, allocations: 0 / 417.6 MB, free: 5.613 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.01237/0.3764, allocations: 4.623 MB / 422.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.3764, allocations: 11.89 kB / 422.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008235/0.3847, allocations: 1.919 MB / 424.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005381/0.3901, allocations: 2.394 MB / 426.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002416/0.3904, allocations: 229.6 kB / 426.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001228/0.3916, allocations: 299.7 kB / 427.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01984/0.4115, allocations: 9.631 MB / 436.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002118/0.4117, allocations: 51.53 kB / 436.8 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001054/0.4128, allocations: 143.9 kB / 436.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003438/0.4162, allocations: 1.915 MB / 438.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0164/0.4326, allocations: 7.641 MB / 446.5 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04795/0.4806, allocations: 37.6 MB / 484.1 MB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007108/0.4878, allocations: 2.883 MB / 487 MB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.4893, allocations: 0.878 MB / 487.8 MB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006253/0.4955, allocations: 3.763 MB / 491.6 MB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.4956, allocations: 43.22 kB / 491.6 MB, free: 9.145 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.138e-06/0.4956, allocations: 0 / 491.6 MB, free: 9.145 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02487/0.5205, allocations: 9.065 MB / 0.489 GB, free: 15.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.5206, allocations: 149.5 kB / 0.4891 GB, free: 15.78 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008337/0.529, allocations: 3.94 MB / 0.493 GB, free: 11.86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002137/0.5292, allocations: 45.7 kB / 0.493 GB, free: 11.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002902/0.5321, allocations: 3.082 MB / 0.496 GB, free: 8.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000878/0.533, allocations: 0.606 MB / 0.4966 GB, free: 8.066 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001951/0.535, allocations: 1.163 MB / 0.4977 GB, free: 6.891 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.125e-05/0.5351, allocations: 309.1 kB / 0.498 GB, free: 6.586 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002522/0.5376, allocations: 1.589 MB / 0.4996 GB, free: 4.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00559/0.5432, allocations: 5.354 MB / 0.5048 GB, free: 13.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008792/0.5521, allocations: 7.554 MB / 0.5122 GB, free: 4.305 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001241/0.5522, allocations: 36 kB / 0.5122 GB, free: 4.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01275/0.565, allocations: 6.668 MB / 0.5187 GB, free: 13.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001444/0.5652, allocations: 64 kB / 0.5188 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002057/0.5654, allocations: 132 kB / 0.5189 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002098/0.5656, allocations: 180 kB / 0.5191 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0045/0.5701, allocations: 1.38 MB / 0.5205 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002517/0.5704, allocations: 263 kB / 0.5207 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004234/0.5746, allocations: 283.7 kB / 0.521 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000817/0.5755, allocations: 364 kB / 0.5213 GB, free: 10.95 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.003957/0.5794, allocations: 1.982 MB / 0.5233 GB, free: 8.953 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007861/0.5802, allocations: 335.6 kB / 0.5236 GB, free: 8.621 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00245/0.5827, allocations: 1.242 MB / 0.5248 GB, free: 7.367 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.937e-05/0.5827, allocations: 27.94 kB / 0.5248 GB, free: 7.34 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.5827, allocations: 0 / 0.5248 GB, free: 7.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.5828, allocations: 7.969 kB / 0.5248 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.5941, allocations: 5.743 MB / 0.5304 GB, free: 1.266 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.499e-05/0.5942, allocations: 20.94 kB / 0.5305 GB, free: 1.246 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.5952, allocations: 275.7 kB / 0.5307 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.777e-05/0.5953, allocations: 28 kB / 0.5307 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.5954, allocations: 51.98 kB / 0.5308 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-05/0.5955, allocations: 39.92 kB / 0.5308 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.737e-05/0.5955, allocations: 27.88 kB / 0.5309 GB, free: 0.832 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004163/0.5997, allocations: 3.22 MB / 0.534 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/0.6009, allocations: 0.5121 MB / 0.5345 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006536/0.6016, allocations: 55.98 kB / 0.5346 GB, free: 12.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/0.6031, allocations: 59.95 kB / 0.5346 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.6033, allocations: 151.4 kB / 0.5348 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.6034, allocations: 71.92 kB / 0.5348 GB, free: 12.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004847/0.6082, allocations: 2.45 MB / 0.5372 GB, free: 10.05 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6083, allocations: 0 / 0.5372 GB, free: 10.05 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005569/0.6138, allocations: 0.8633 MB / 0.5381 GB, free: 9.191 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.0005475/0.6144, allocations: 210.6 kB / 0.5383 GB, free: 8.977 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00639/0.6208, allocations: 3.69 MB / 0.5419 GB, free: 5.316 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-05/0.6208, allocations: 4.812 kB / 0.5419 GB, free: 5.312 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.6219, allocations: 0.7291 MB / 0.5426 GB, free: 4.586 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003793/0.6258, allocations: 449 kB / 0.543 GB, free: 4.148 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2173/0.8431, allocations: 8.939 MB / 0.5517 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004068/0.8472, allocations: 3.096 MB / 0.5548 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009552/0.8482, allocations: 283.7 kB / 0.555 GB, free: 145 MB / 478.1 MB Notification: Performance of SimCode: time 1.373e-06/0.8482, allocations: 0 / 0.555 GB, free: 145 MB / 478.1 MB Notification: Performance of Templates: time 0.08416/0.9323, allocations: 51.89 MB / 0.6057 GB, free: 111.2 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