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.001164/0.001165, allocations: 90.81 kB / 16.31 MB, free: 5.945 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.001152/0.001152, allocations: 182.9 kB / 17.21 MB, free: 5.855 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.505/1.505, allocations: 223.3 MB / 241.2 MB, free: 5.254 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002503, allocations: 13.75 kB / 300.8 MB, free: 5.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1072, allocations: 50.42 MB / 351.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03268/0.1399, allocations: 34.98 MB / 386.2 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01905/0.159, allocations: 8.004 MB / 394.2 MB, free: 320 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007159/0.1662, allocations: 167.6 kB / 394.4 MB, free: 152 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005876/0.1721, allocations: 1.784 MB / 396.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01476/0.1869, allocations: 5.502 MB / 401.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002625/0.1895, allocations: 0.6202 MB / 402.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006252/0.1958, allocations: 4.683 MB / 407 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0059/0.2017, allocations: 3.359 MB / 410.3 MB, free: 104 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002492/0.2042, allocations: 1.257 MB / 411.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003081/0.2073, allocations: 2.006 MB / 413.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008757/0.2082, allocations: 140 kB / 413.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002047/0.2103, allocations: 0.7216 MB / 414.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002254/0.2126, allocations: 1.632 MB / 416.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.2138, allocations: 0.7882 MB / 416.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004962/0.2188, allocations: 4.84 MB / 421.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2188, allocations: 0 / 421.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2188, allocations: 0 / 421.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001369/0.219, allocations: 0 / 421.7 MB, free: 4.684 MB / 350.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.006531/0.2255, allocations: 3.858 MB / 425.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.2256, allocations: 8.031 kB / 425.6 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1897/0.4153, allocations: 1.964 MB / 427.5 MB, free: 67.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004135/0.4194, allocations: 2.202 MB / 429.7 MB, free: 66.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.4196, allocations: 231.5 kB / 430 MB, free: 66.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005429/0.4202, allocations: 293.8 kB / 430.3 MB, free: 66.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01721/0.4374, allocations: 9.634 MB / 439.9 MB, free: 64.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.4375, allocations: 45.81 kB / 439.9 MB, free: 64.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004131/0.438, allocations: 151.2 kB / 440.1 MB, free: 64.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00247/0.4404, allocations: 1.915 MB / 442 MB, free: 63.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.454, allocations: 7.616 MB / 449.6 MB, free: 57.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03027/0.4843, allocations: 37.72 MB / 487.3 MB, free: 18.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005562/0.4899, allocations: 2.9 MB / 490.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.491, allocations: 0.8716 MB / 491.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004768/0.4957, allocations: 3.755 MB / 494.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.4958, allocations: 43.22 kB / 494.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 3.737e-06/0.4958, allocations: 0 / 494.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=152): time 0.01924/0.515, allocations: 9.027 MB / 0.4921 GB, free: 1.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5151, allocations: 141.6 kB / 0.4923 GB, free: 1.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004644/0.5198, allocations: 3.897 MB / 0.4961 GB, free: 13.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.5199, allocations: 49.69 kB / 0.4961 GB, free: 13.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002058/0.522, allocations: 3.088 MB / 0.4991 GB, free: 10.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005424/0.5225, allocations: 0.6032 MB / 0.4997 GB, free: 9.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.5228, allocations: 116 kB / 0.4998 GB, free: 9.625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003342/0.5231, allocations: 0.5579 MB / 0.5004 GB, free: 9.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002433/0.5255, allocations: 1.554 MB / 0.5019 GB, free: 7.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004928/0.5305, allocations: 5.331 MB / 0.5071 GB, free: 280 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004185/0.5347, allocations: 2.82 MB / 0.5099 GB, free: 13.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.818e-05/0.5348, allocations: 36 kB / 0.5099 GB, free: 13.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01153/0.5463, allocations: 6.621 MB / 0.5164 GB, free: 6.801 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.5464, allocations: 68.98 kB / 0.5164 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001814/0.5466, allocations: 132 kB / 0.5165 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/0.5468, allocations: 200 kB / 0.5167 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004233/0.5511, allocations: 1.376 MB / 0.5181 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002186/0.5513, allocations: 263 kB / 0.5183 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003747/0.5551, allocations: 287.6 kB / 0.5186 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004979/0.5556, allocations: 364 kB / 0.5189 GB, free: 4.137 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003394/0.559, allocations: 1.978 MB / 0.5209 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006303/0.5596, allocations: 339.5 kB / 0.5212 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.5617, allocations: 1.238 MB / 0.5224 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.5618, allocations: 20 kB / 0.5224 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.5618, allocations: 7.938 kB / 0.5224 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.5618, allocations: 7.969 kB / 0.5224 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009021/0.5708, allocations: 5.745 MB / 0.5281 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.361e-05/0.5709, allocations: 20 kB / 0.5281 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009696/0.5719, allocations: 271.5 kB / 0.5283 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.742e-05/0.5719, allocations: 28 kB / 0.5284 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.428e-05/0.572, allocations: 49.5 kB / 0.5284 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.803e-05/0.5721, allocations: 35.86 kB / 0.5284 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.879e-05/0.5721, allocations: 28.31 kB / 0.5285 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003793/0.5759, allocations: 3.21 MB / 0.5316 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008931/0.5768, allocations: 412.5 kB / 0.532 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003041/0.5771, allocations: 51.98 kB / 0.5321 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.5782, allocations: 55.97 kB / 0.5321 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.5784, allocations: 151.4 kB / 0.5322 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/0.5785, allocations: 67.98 kB / 0.5323 GB, free: 5.848 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00367/0.5821, allocations: 2.411 MB / 0.5347 GB, free: 3.457 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5822, allocations: 0 / 0.5347 GB, free: 3.457 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004861/0.587, allocations: 0.8685 MB / 0.5355 GB, free: 2.594 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004169/0.5875, allocations: 197.2 kB / 0.5357 GB, free: 2.398 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006316/0.5938, allocations: 3.616 MB / 0.5392 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.658e-05/0.5938, allocations: 8 kB / 0.5392 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.5949, allocations: 0.7263 MB / 0.54 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/0.5978, allocations: 443.2 kB / 0.5404 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01734/0.6151, allocations: 10.15 MB / 0.5503 GB, free: 3.211 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004016/0.6192, allocations: 3.095 MB / 0.5533 GB, free: 88 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004717/0.6239, allocations: 1.769 MB / 0.555 GB, free: 14.31 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005571/0.6245, allocations: 235.4 kB / 0.5553 GB, free: 14.08 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6245, allocations: 0 / 0.5553 GB, free: 14.08 MB / 430.1 MB Notification: Performance of Templates: time 0.05369/0.6782, allocations: 25.48 MB / 0.5801 GB, free: 4.699 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/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