Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001729/0.00173, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00251/0.00251, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.845/2.845, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00278/0.002781, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7375/0.7403, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01739/0.7578, allocations: 10.66 MB / 420.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.772, allocations: 3.896 MB / 424.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004958/0.7771, allocations: 63.81 kB / 424.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007755/0.785, allocations: 2.215 MB / 426.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00951/0.7945, allocations: 1.794 MB / 428.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003331/0.7979, allocations: 0.7175 MB / 429.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01213/0.8101, allocations: 4.312 MB / 433.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008042/0.8183, allocations: 2.889 MB / 436.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005224/0.8236, allocations: 1.46 MB / 437.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005501/0.8291, allocations: 2.083 MB / 440 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001915/0.8311, allocations: 296 kB / 440.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004419/0.8355, allocations: 0.909 MB / 441.2 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004312/0.8399, allocations: 1.812 MB / 443 MB, free: 352 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006311/0.8463, allocations: 2.085 MB / 445.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01502/0.8614, allocations: 6.354 MB / 451.5 MB, free: 7.871 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.479e-05/0.8615, allocations: 4 kB / 451.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.439e-06/0.8615, allocations: 0 / 451.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004767/0.862, allocations: 0 / 451.5 MB, free: 7.867 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.02322/0.8852, allocations: 4.56 MB / 456 MB, free: 3.238 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.879e-05/0.8853, allocations: 12.02 kB / 456.1 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01423/0.8996, allocations: 1.914 MB / 458 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02005/0.9197, allocations: 2.242 MB / 460.2 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006289/0.9204, allocations: 229.6 kB / 460.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007351/0.9278, allocations: 295.6 kB / 460.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04991/0.9778, allocations: 9.647 MB / 470.4 MB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007556/0.9787, allocations: 51.52 kB / 470.4 MB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002929/0.9817, allocations: 147.8 kB / 470.6 MB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00598/0.9877, allocations: 1.915 MB / 472.5 MB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03828/1.026, allocations: 7.645 MB / 480.1 MB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1028/1.129, allocations: 37.61 MB / 0.5056 GB, free: 3.512 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01274/1.142, allocations: 2.899 MB / 0.5084 GB, free: 480 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002579/1.144, allocations: 0.8691 MB / 0.5093 GB, free: 15.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01303/1.158, allocations: 3.85 MB / 0.513 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.714e-05/1.158, allocations: 55.22 kB / 0.5131 GB, free: 11.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 1.19e-05/1.158, allocations: 0 / 0.5131 GB, free: 11.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.05651/1.214, allocations: 9.053 MB / 0.5219 GB, free: 2.277 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001964/1.215, allocations: 141.5 kB / 0.5221 GB, free: 2.109 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01507/1.23, allocations: 3.912 MB / 0.5259 GB, free: 14.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004646/1.23, allocations: 45.7 kB / 0.5259 GB, free: 14.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005367/1.236, allocations: 3.078 MB / 0.5289 GB, free: 11.04 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.237, allocations: 0.6018 MB / 0.5295 GB, free: 10.43 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005435/1.243, allocations: 1.17 MB / 0.5307 GB, free: 9.25 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/1.243, allocations: 305.1 kB / 0.531 GB, free: 8.949 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005967/1.249, allocations: 1.593 MB / 0.5325 GB, free: 7.352 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01287/1.262, allocations: 5.354 MB / 0.5377 GB, free: 104 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.6577/1.92, allocations: 7.553 MB / 0.5451 GB, free: 112.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003027/1.92, allocations: 35.62 kB / 0.5452 GB, free: 112.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02646/1.947, allocations: 6.67 MB / 0.5517 GB, free: 110.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004785/1.947, allocations: 65 kB / 0.5517 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005045/1.948, allocations: 138 kB / 0.5519 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004963/1.948, allocations: 182.6 kB / 0.552 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008609/1.957, allocations: 1.388 MB / 0.5534 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004853/1.958, allocations: 263.1 kB / 0.5536 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008417/1.966, allocations: 280.8 kB / 0.5539 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001997/1.968, allocations: 374.9 kB / 0.5543 GB, free: 109.9 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.007257/1.975, allocations: 1.978 MB / 0.5562 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/1.977, allocations: 337 kB / 0.5565 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/1.979, allocations: 400.5 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-05/1.979, allocations: 16.75 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-05/1.979, allocations: 2.5 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/1.979, allocations: 7.312 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/1.994, allocations: 5.747 MB / 0.5625 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.403e-05/1.994, allocations: 16 kB / 0.5626 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/1.996, allocations: 281.9 kB / 0.5628 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-05/1.996, allocations: 28 kB / 0.5628 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/1.996, allocations: 51.77 kB / 0.5629 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.243e-05/1.996, allocations: 32.33 kB / 0.5629 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.976e-05/1.996, allocations: 35.88 kB / 0.563 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005974/2.002, allocations: 3.231 MB / 0.5661 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/2.004, allocations: 407.3 kB / 0.5665 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000502/2.004, allocations: 47.66 kB / 0.5666 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/2.006, allocations: 63.2 kB / 0.5666 GB, free: 99.99 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/2.006, allocations: 148.9 kB / 0.5668 GB, free: 99.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/2.006, allocations: 67.89 kB / 0.5668 GB, free: 99.81 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005629/2.012, allocations: 2.429 MB / 0.5692 GB, free: 97.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.132e-06/2.012, allocations: 0 / 0.5692 GB, free: 97.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009947/2.022, allocations: 0.8522 MB / 0.57 GB, free: 96.97 MB / 462.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.0008164/2.023, allocations: 205.6 kB / 0.5702 GB, free: 96.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009039/2.032, allocations: 3.685 MB / 0.5738 GB, free: 93.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.68e-05/2.032, allocations: 4 kB / 0.5738 GB, free: 93.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001666/2.034, allocations: 0.7497 MB / 0.5746 GB, free: 92.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006522/2.04, allocations: 449 kB / 0.575 GB, free: 92.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02762/2.068, allocations: 8.919 MB / 0.5837 GB, free: 82.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007897/2.076, allocations: 3.083 MB / 0.5867 GB, free: 79.78 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001697/2.078, allocations: 287.4 kB / 0.587 GB, free: 79.5 MB / 462.1 MB Notification: Performance of SimCode: time 4.358e-06/2.078, allocations: 0 / 0.587 GB, free: 79.5 MB / 462.1 MB Notification: Performance of Templates: time 0.124/2.202, allocations: 52.17 MB / 0.6379 GB, free: 27.44 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches