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.001309/0.001309, allocations: 110.5 kB / 17.75 MB, free: 5.336 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.001345/0.001345, allocations: 187 kB / 18.68 MB, free: 4.41 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.295/1.295, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009603/0.0009604, allocations: 43.92 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2145, allocations: 49.44 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0108/0.2253, allocations: 10.69 MB / 412.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005982/0.2313, allocations: 3.876 MB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005899/0.2319, allocations: 63.81 kB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003715/0.2357, allocations: 2.238 MB / 418.3 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003265/0.2389, allocations: 1.874 MB / 420.2 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.2402, allocations: 0.7136 MB / 420.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004291/0.2445, allocations: 4.221 MB / 425.1 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003433/0.2479, allocations: 2.914 MB / 428 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001943/0.2499, allocations: 1.464 MB / 429.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002712/0.2526, allocations: 2.099 MB / 431.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007417/0.2533, allocations: 292 kB / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001871/0.2552, allocations: 0.948 MB / 432.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.2571, allocations: 1.823 MB / 434.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.2595, allocations: 2.093 MB / 436.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006016/0.2655, allocations: 6.415 MB / 443.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2655, allocations: 4 kB / 443.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2655, allocations: 0 / 443.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001475/0.2657, allocations: 0 / 443.1 MB, free: 14.93 MB / 366.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.007382/0.2731, allocations: 4.606 MB / 447.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.2731, allocations: 15.89 kB / 447.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0073/0.2804, allocations: 1.914 MB / 449.7 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00406/0.2845, allocations: 2.292 MB / 452 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.2847, allocations: 229.6 kB / 452.2 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004755/0.2851, allocations: 295.8 kB / 452.5 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01294/0.2981, allocations: 9.639 MB / 462.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.2982, allocations: 47.59 kB / 462.2 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.2986, allocations: 147.8 kB / 462.3 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002871/0.3015, allocations: 1.919 MB / 464.2 MB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01364/0.3151, allocations: 7.629 MB / 471.9 MB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03793/0.3531, allocations: 37.61 MB / 0.4975 GB, free: 10.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006554/0.3597, allocations: 2.886 MB / 0.5004 GB, free: 7.469 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.3609, allocations: 0.8765 MB / 0.5012 GB, free: 6.578 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005486/0.3664, allocations: 3.763 MB / 0.5049 GB, free: 2.613 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.3664, allocations: 47.16 kB / 0.5049 GB, free: 2.555 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 4.829e-06/0.3665, allocations: 3.984 kB / 0.5049 GB, free: 2.551 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02069/0.3872, allocations: 9.025 MB / 0.5137 GB, free: 9.402 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.3872, allocations: 153.5 kB / 0.5139 GB, free: 9.223 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004748/0.392, allocations: 3.916 MB / 0.5177 GB, free: 5.324 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.712e-05/0.3921, allocations: 45.7 kB / 0.5178 GB, free: 5.273 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001868/0.394, allocations: 3.078 MB / 0.5208 GB, free: 2.152 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004293/0.3944, allocations: 0.6057 MB / 0.5214 GB, free: 1.539 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.3956, allocations: 1.167 MB / 0.5225 GB, free: 368 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.557e-05/0.3957, allocations: 309.1 kB / 0.5228 GB, free: 56 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002384/0.3981, allocations: 1.585 MB / 0.5243 GB, free: 14.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004465/0.4026, allocations: 5.351 MB / 0.5296 GB, free: 7.219 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1767/0.5793, allocations: 7.544 MB / 0.5369 GB, free: 123.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/0.5794, allocations: 38.38 kB / 0.537 GB, free: 123.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.00908/0.5885, allocations: 6.648 MB / 0.5435 GB, free: 121.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.616e-05/0.5886, allocations: 67.09 kB / 0.5435 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.782e-05/0.5887, allocations: 134.2 kB / 0.5437 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001251/0.5888, allocations: 181.9 kB / 0.5438 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00332/0.5922, allocations: 1.383 MB / 0.5452 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001531/0.5923, allocations: 263.1 kB / 0.5454 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002882/0.5952, allocations: 283.1 kB / 0.5457 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002919/0.5955, allocations: 368.7 kB / 0.546 GB, free: 121.1 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.001879/0.5974, allocations: 1.98 MB / 0.548 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003161/0.5977, allocations: 332.9 kB / 0.5483 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.5993, allocations: 1.24 MB / 0.5495 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.5993, allocations: 11.31 kB / 0.5495 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.5993, allocations: 3.938 kB / 0.5495 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000409/0.5997, allocations: 380.1 kB / 0.5499 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003013/0.6001, allocations: 23.88 kB / 0.5499 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009169/0.601, allocations: 45.95 kB / 0.55 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.6011, allocations: 74.56 kB / 0.55 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002251/0.6034, allocations: 1.868 MB / 0.5519 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002709/0.6061, allocations: 3.023 MB / 0.5548 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006793/0.6068, allocations: 0.684 MB / 0.5555 GB, free: 116.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002432/0.6092, allocations: 2.43 MB / 0.5578 GB, free: 114.5 MB / 462.1 MB Notification: Performance of Backend: time 4.31e-07/0.6092, allocations: 0 / 0.5578 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004516/0.6138, allocations: 3.326 MB / 0.5611 GB, free: 111.6 MB / 462.1 MB Notification: Performance of SimCode: time 0.008638/0.6224, allocations: 8.497 MB / 0.5694 GB, free: 103.4 MB / 462.1 MB Notification: Performance of Templates: time 0.04933/0.6717, allocations: 33.49 MB / 0.6021 GB, free: 70.07 MB / 462.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/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