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.001082/0.001086, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001007/0.001007, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.355/1.355, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001315/0.001316, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08504, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01088/0.09595, allocations: 10.74 MB / 339.5 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007388/0.1034, allocations: 3.877 MB / 343.3 MB, free: 5.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001247/0.1047, allocations: 63.81 kB / 343.4 MB, free: 5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003718/0.1084, allocations: 2.234 MB / 345.6 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003811/0.1122, allocations: 1.836 MB / 347.5 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.1135, allocations: 0.7097 MB / 348.2 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004609/0.1182, allocations: 4.266 MB / 352.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00293/0.1211, allocations: 2.917 MB / 355.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00199/0.1231, allocations: 1.503 MB / 356.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002334/0.1255, allocations: 2.083 MB / 359 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004663/0.1259, allocations: 292 kB / 359.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001545/0.1275, allocations: 0.9323 MB / 360.2 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.1289, allocations: 1.819 MB / 362 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.1307, allocations: 2.116 MB / 364.1 MB, free: 192 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005326/0.136, allocations: 6.415 MB / 370.5 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.136, allocations: 0 / 370.5 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.136, allocations: 0 / 370.5 MB, free: 9.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001145/0.1361, allocations: 0 / 370.5 MB, free: 9.75 MB / 318.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.007075/0.1432, allocations: 4.614 MB / 375.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.1433, allocations: 11.89 kB / 375.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006765/0.1501, allocations: 1.922 MB / 377.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005008/0.1551, allocations: 2.394 MB / 379.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.1553, allocations: 229.6 kB / 379.7 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005253/0.1558, allocations: 291.8 kB / 380 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1466/0.3025, allocations: 9.634 MB / 389.6 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.3026, allocations: 48.02 kB / 389.7 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003903/0.303, allocations: 144.9 kB / 389.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002661/0.3057, allocations: 1.925 MB / 391.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/0.3193, allocations: 7.631 MB / 399.4 MB, free: 43.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03167/0.351, allocations: 37.6 MB / 437 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005467/0.3565, allocations: 2.888 MB / 439.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009465/0.3575, allocations: 0.8717 MB / 440.7 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00655/0.364, allocations: 3.756 MB / 444.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.3641, allocations: 51.16 kB / 444.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=134): time 5.049e-06/0.3641, allocations: 3.984 kB / 444.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=152): time 0.02005/0.3841, allocations: 9.059 MB / 453.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/0.3842, allocations: 145.5 kB / 453.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005077/0.3893, allocations: 3.942 MB / 457.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-05/0.3894, allocations: 48.91 kB / 457.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001947/0.3914, allocations: 3.087 MB / 460.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004313/0.3918, allocations: 0.6019 MB / 461.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/0.3931, allocations: 1.178 MB / 462.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.763e-05/0.3931, allocations: 301.1 kB / 462.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002262/0.3954, allocations: 1.579 MB / 464.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004392/0.3998, allocations: 5.362 MB / 469.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00786/0.4077, allocations: 7.539 MB / 477.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001048/0.4079, allocations: 40 kB / 477.4 MB, free: 7.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01071/0.4186, allocations: 6.655 MB / 484.1 MB, free: 1.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.4187, allocations: 67.98 kB / 484.1 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/0.4189, allocations: 136.1 kB / 484.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001969/0.4191, allocations: 180 kB / 484.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004091/0.4232, allocations: 1.38 MB / 485.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002517/0.4235, allocations: 259 kB / 486.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003735/0.4273, allocations: 283.6 kB / 486.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006108/0.4279, allocations: 368 kB / 486.7 MB, free: 14.69 MB / 382.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.002896/0.4308, allocations: 1.994 MB / 488.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/0.4315, allocations: 331.7 kB / 489 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.4337, allocations: 1.249 MB / 490.3 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.012e-05/0.4337, allocations: 16 kB / 490.3 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.4337, allocations: 3.75 kB / 490.3 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/0.4338, allocations: 11.97 kB / 490.3 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.4449, allocations: 5.746 MB / 496 MB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-05/0.445, allocations: 23.94 kB / 496.1 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.4461, allocations: 283.6 kB / 496.3 MB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.314e-05/0.4461, allocations: 31.94 kB / 496.4 MB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001248/0.4463, allocations: 44 kB / 496.4 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.23e-05/0.4463, allocations: 39.86 kB / 496.5 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-05/0.4463, allocations: 27.88 kB / 496.5 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004235/0.4506, allocations: 3.216 MB / 499.7 MB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/0.4523, allocations: 0.5122 MB / 0.4885 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006987/0.453, allocations: 55.92 kB / 0.4885 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.4547, allocations: 55.97 kB / 0.4886 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4549, allocations: 151.4 kB / 0.4887 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.4551, allocations: 64 kB / 0.4888 GB, free: 240 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004521/0.4596, allocations: 2.45 MB / 0.4912 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4596, allocations: 0 / 0.4912 GB, free: 13.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004773/0.4644, allocations: 0.8725 MB / 0.492 GB, free: 12.94 MB / 398.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.0004963/0.4649, allocations: 205.3 kB / 0.4922 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006053/0.471, allocations: 3.687 MB / 0.4958 GB, free: 9.082 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.461e-05/0.471, allocations: 8.438 kB / 0.4958 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.4721, allocations: 0.7324 MB / 0.4966 GB, free: 8.344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003461/0.4755, allocations: 453.2 kB / 0.497 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.4911, allocations: 8.535 MB / 0.5053 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003503/0.4946, allocations: 3.107 MB / 0.5084 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003821/0.4985, allocations: 1.765 MB / 0.5101 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005316/0.499, allocations: 235.4 kB / 0.5103 GB, free: 9.953 MB / 414.1 MB Notification: Performance of SimCode: time 1.453e-06/0.499, allocations: 0 / 0.5103 GB, free: 9.953 MB / 414.1 MB Notification: Performance of Templates: time 0.04897/0.548, allocations: 21.97 MB / 0.5318 GB, free: 3.957 MB / 430.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 -s gbode -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