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.001484/0.001485, allocations: 103.4 kB / 16.62 MB, free: 6.809 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.001761/0.001761, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.343/1.343, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 50.7 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.09364, allocations: 49.45 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1911/0.2847, allocations: 38.65 MB / 388.2 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01798/0.3027, allocations: 8.386 MB / 396.6 MB, free: 16 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005725/0.3085, allocations: 166.6 kB / 396.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003872/0.3125, allocations: 2.134 MB / 398.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004103/0.3166, allocations: 1.708 MB / 400.6 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.3181, allocations: 0.6679 MB / 401.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004599/0.3227, allocations: 4.247 MB / 405.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002893/0.3256, allocations: 3.067 MB / 408.6 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.3273, allocations: 1.501 MB / 410.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002271/0.3295, allocations: 2.309 MB / 412.4 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003997/0.3299, allocations: 292 kB / 412.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001537/0.3315, allocations: 0.9557 MB / 413.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001372/0.3329, allocations: 1.843 MB / 415.5 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001667/0.3346, allocations: 2.128 MB / 417.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005605/0.3402, allocations: 6.226 MB / 423.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3402, allocations: 7.938 kB / 423.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3402, allocations: 0 / 423.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001771/0.3404, allocations: 0 / 423.9 MB, free: 10.45 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.007908/0.3483, allocations: 4.596 MB / 428.5 MB, free: 5.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3484, allocations: 15.89 kB / 428.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006971/0.3554, allocations: 1.918 MB / 430.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003865/0.3592, allocations: 2.25 MB / 432.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.3594, allocations: 229.6 kB / 432.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005329/0.36, allocations: 299.8 kB / 433.2 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.3737, allocations: 9.631 MB / 442.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.82e-05/0.3738, allocations: 55.52 kB / 442.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003449/0.3741, allocations: 143.9 kB / 443 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002683/0.3768, allocations: 1.911 MB / 444.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.3911, allocations: 7.638 MB / 452.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04272/0.4339, allocations: 37.73 MB / 490.3 MB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006772/0.4407, allocations: 2.893 MB / 493.2 MB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.4421, allocations: 0.8879 MB / 494 MB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005705/0.4478, allocations: 3.763 MB / 497.8 MB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.4479, allocations: 47.2 kB / 497.9 MB, free: 14.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.807e-06/0.4479, allocations: 0 / 497.9 MB, free: 14.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02359/0.4715, allocations: 9.029 MB / 0.495 GB, free: 4.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.906e-05/0.4716, allocations: 141.5 kB / 0.4951 GB, free: 4.688 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007374/0.479, allocations: 3.916 MB / 0.499 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.4791, allocations: 49.7 kB / 0.499 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002432/0.4816, allocations: 3.074 MB / 0.502 GB, free: 13.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005922/0.4822, allocations: 0.6134 MB / 0.5026 GB, free: 13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.484, allocations: 1.167 MB / 0.5037 GB, free: 11.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.183e-05/0.4841, allocations: 305.1 kB / 0.504 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002525/0.4866, allocations: 1.581 MB / 0.5056 GB, free: 9.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00515/0.4918, allocations: 5.351 MB / 0.5108 GB, free: 2.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008398/0.5002, allocations: 7.544 MB / 0.5182 GB, free: 9.258 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/0.5003, allocations: 36 kB / 0.5182 GB, free: 9.223 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01075/0.5111, allocations: 6.666 MB / 0.5247 GB, free: 2.555 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.5112, allocations: 64.25 kB / 0.5248 GB, free: 2.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000206/0.5114, allocations: 136 kB / 0.5249 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001998/0.5116, allocations: 176 kB / 0.5251 GB, free: 2.188 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/0.5155, allocations: 1.38 MB / 0.5264 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002275/0.5158, allocations: 263 kB / 0.5267 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003664/0.5194, allocations: 299.5 kB / 0.527 GB, free: 260 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.163/0.6824, allocations: 357.2 kB / 0.5273 GB, free: 145.9 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.003356/0.6858, allocations: 1.983 MB / 0.5292 GB, free: 145.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005442/0.6864, allocations: 331.1 kB / 0.5296 GB, free: 145.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.6883, allocations: 1.245 MB / 0.5308 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/0.6883, allocations: 19.75 kB / 0.5308 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.6883, allocations: 1.375 kB / 0.5308 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.6884, allocations: 7.281 kB / 0.5308 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008166/0.6965, allocations: 5.755 MB / 0.5364 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.94e-05/0.6966, allocations: 22.84 kB / 0.5364 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009484/0.6975, allocations: 272.7 kB / 0.5367 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.757e-05/0.6976, allocations: 26.2 kB / 0.5367 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.302e-05/0.6977, allocations: 52.09 kB / 0.5368 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.321e-05/0.6977, allocations: 37.31 kB / 0.5368 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.105e-05/0.6977, allocations: 31.05 kB / 0.5368 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003404/0.7011, allocations: 3.218 MB / 0.54 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006695/0.7018, allocations: 406.8 kB / 0.5404 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000309/0.7021, allocations: 57.23 kB / 0.5404 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.7032, allocations: 56.7 kB / 0.5405 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.7034, allocations: 149.7 kB / 0.5406 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.752e-05/0.7035, allocations: 65.16 kB / 0.5407 GB, free: 141.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00358/0.7071, allocations: 2.436 MB / 0.5431 GB, free: 140.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7071, allocations: 0 / 0.5431 GB, free: 140.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004083/0.7112, allocations: 0.8652 MB / 0.5439 GB, free: 140.2 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.0003769/0.7116, allocations: 205.7 kB / 0.5441 GB, free: 140 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005076/0.7167, allocations: 3.819 MB / 0.5478 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/0.7167, allocations: 4.031 kB / 0.5478 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009206/0.7176, allocations: 0.7279 MB / 0.5485 GB, free: 138.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.7199, allocations: 462.3 kB / 0.549 GB, free: 138.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.7306, allocations: 10.5 MB / 0.5592 GB, free: 132.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002321/0.7329, allocations: 3.1 MB / 0.5623 GB, free: 130.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003471/0.7364, allocations: 1.763 MB / 0.564 GB, free: 129.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/0.7368, allocations: 238.2 kB / 0.5642 GB, free: 129.5 MB / 446.1 MB Notification: Performance of SimCode: time 6.72e-07/0.7368, allocations: 0 / 0.5642 GB, free: 129.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04415/0.781, allocations: 27.11 MB / 0.5907 GB, free: 103 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