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.001001/0.001001, allocations: 94.52 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 207.1 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.7 MB / 247.5 MB, free: 9.488 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00033/0.0003301, allocations: 8 kB / 308.4 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09746/0.09781, allocations: 51.52 MB / 359.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2082/0.3061, allocations: 37.33 MB / 397.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02325/0.3294, allocations: 8.35 MB / 405.6 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008465/0.3379, allocations: 163.1 kB / 405.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00169/0.3396, allocations: 409.7 kB / 406.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005586/0.3452, allocations: 1.696 MB / 407.8 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002021/0.3472, allocations: 0.6525 MB / 408.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007985/0.3552, allocations: 5.939 MB / 414.4 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006371/0.3616, allocations: 3.686 MB / 418.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0027/0.3644, allocations: 1.152 MB / 419.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003236/0.3677, allocations: 2.017 MB / 421.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000845/0.3685, allocations: 144 kB / 421.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002166/0.3707, allocations: 0.8151 MB / 422.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002415/0.3731, allocations: 1.652 MB / 423.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003852/0.377, allocations: 1.915 MB / 425.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005206/0.3822, allocations: 4.799 MB / 430.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3823, allocations: 0 / 430.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.3823, allocations: 4 kB / 430.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002431/0.3825, allocations: 0 / 430.6 MB, free: 3.977 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.009538/0.3921, allocations: 3.757 MB / 434.4 MB, free: 156 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3921, allocations: 8.031 kB / 434.4 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007799/0.3999, allocations: 1.973 MB / 436.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004652/0.4046, allocations: 2.191 MB / 438.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002566/0.4049, allocations: 229.6 kB / 438.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/0.406, allocations: 303.7 kB / 439.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/0.4231, allocations: 9.674 MB / 448.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001604/0.4233, allocations: 47.58 kB / 448.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007927/0.4241, allocations: 143.9 kB / 448.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003043/0.4272, allocations: 1.919 MB / 450.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.442, allocations: 7.664 MB / 458.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04783/0.4899, allocations: 37.77 MB / 496.3 MB, free: 208 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007198/0.4971, allocations: 2.901 MB / 499.2 MB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.4985, allocations: 0.8691 MB / 0.4883 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006115/0.5047, allocations: 3.857 MB / 0.4921 GB, free: 8.195 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.5047, allocations: 55.14 kB / 0.4921 GB, free: 8.133 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.697e-06/0.5048, allocations: 0 / 0.4921 GB, free: 8.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.0228/0.5276, allocations: 9.072 MB / 0.501 GB, free: 14.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.477e-05/0.5277, allocations: 153.4 kB / 0.5011 GB, free: 14.76 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005683/0.5334, allocations: 3.904 MB / 0.505 GB, free: 10.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.5335, allocations: 49.69 kB / 0.505 GB, free: 10.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002113/0.5357, allocations: 3.074 MB / 0.508 GB, free: 7.703 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005411/0.5362, allocations: 0.6135 MB / 0.5086 GB, free: 7.082 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005497/0.5368, allocations: 0.4951 MB / 0.5091 GB, free: 6.578 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5369, allocations: 305.1 kB / 0.5094 GB, free: 6.277 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.5393, allocations: 1.589 MB / 0.5109 GB, free: 4.684 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005174/0.5445, allocations: 5.367 MB / 0.5162 GB, free: 13.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007923/0.5524, allocations: 7.565 MB / 0.5236 GB, free: 3.973 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-05/0.5525, allocations: 36 kB / 0.5236 GB, free: 3.938 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.214/0.7665, allocations: 6.664 MB / 0.5301 GB, free: 138.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/0.7667, allocations: 63.86 kB / 0.5302 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002827/0.767, allocations: 133.5 kB / 0.5303 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000298/0.7673, allocations: 180.7 kB / 0.5305 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004505/0.7718, allocations: 1.387 MB / 0.5318 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000346/0.7722, allocations: 262.2 kB / 0.5321 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003927/0.7761, allocations: 288.8 kB / 0.5323 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009075/0.7771, allocations: 366 kB / 0.5327 GB, free: 138.1 MB / 446.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.003445/0.7805, allocations: 1.982 MB / 0.5346 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000624/0.7812, allocations: 334.2 kB / 0.5349 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008545/0.782, allocations: 403.5 kB / 0.5353 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.22e-05/0.7821, allocations: 17.94 kB / 0.5354 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.7821, allocations: 2.031 kB / 0.5354 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.7821, allocations: 10.08 kB / 0.5354 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00981/0.7919, allocations: 5.764 MB / 0.541 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.554e-05/0.792, allocations: 18.53 kB / 0.541 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009715/0.793, allocations: 276.2 kB / 0.5413 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.265e-05/0.793, allocations: 29.75 kB / 0.5413 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.7931, allocations: 51.45 kB / 0.5413 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.611e-05/0.7932, allocations: 38.17 kB / 0.5414 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-05/0.7932, allocations: 28.5 kB / 0.5414 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003546/0.7967, allocations: 3.237 MB / 0.5446 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/0.7974, allocations: 412.8 kB / 0.545 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/0.7977, allocations: 52.22 kB / 0.545 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7988, allocations: 64.05 kB / 0.5451 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.799, allocations: 153.3 kB / 0.5452 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.549e-05/0.7991, allocations: 68.09 kB / 0.5453 GB, free: 133.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003754/0.8028, allocations: 2.432 MB / 0.5477 GB, free: 132.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.8028, allocations: 0 / 0.5477 GB, free: 132.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004123/0.807, allocations: 0.8504 MB / 0.5485 GB, free: 132.6 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.0003927/0.8074, allocations: 188.6 kB / 0.5487 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005114/0.8125, allocations: 3.66 MB / 0.5523 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.8125, allocations: 0 / 0.5523 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008582/0.8134, allocations: 0.7398 MB / 0.553 GB, free: 131.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01107/0.8245, allocations: 453.9 kB / 0.5534 GB, free: 130.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/0.8389, allocations: 11 MB / 0.5642 GB, free: 122.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003489/0.8424, allocations: 3.091 MB / 0.5672 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007112/0.8431, allocations: 278.8 kB / 0.5674 GB, free: 120.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.8431, allocations: 0 / 0.5674 GB, free: 120.1 MB / 446.1 MB Notification: Performance of Templates: time 0.06316/0.9063, allocations: 50.19 MB / 0.6164 GB, free: 70.68 MB / 446.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