Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 105 kB / 17.59 MB, free: 5.418 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.001303/0.001303, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.456/1.456, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 51.73 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1024, allocations: 49.45 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01264/0.1151, allocations: 10.22 MB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00836/0.1235, allocations: 3.787 MB / 364.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.1255, allocations: 55.88 kB / 364.8 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004109/0.1297, allocations: 1.95 MB / 366.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004768/0.1345, allocations: 1.657 MB / 368.4 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001742/0.1363, allocations: 0.6082 MB / 369 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2016/0.3379, allocations: 3.318 MB / 372.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005016/0.3429, allocations: 2.569 MB / 374.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003308/0.3463, allocations: 1.245 MB / 376.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003803/0.3501, allocations: 1.666 MB / 377.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001507/0.3517, allocations: 253.2 kB / 378.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003862/0.3555, allocations: 1.033 MB / 379.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003514/0.3591, allocations: 1.561 MB / 380.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005866/0.365, allocations: 1.831 MB / 382.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.3758, allocations: 5.616 MB / 388.1 MB, free: 6.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.3758, allocations: 0 / 388.1 MB, free: 6.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.3758, allocations: 0 / 388.1 MB, free: 6.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003106/0.3761, allocations: 7.672 kB / 388.1 MB, free: 6.367 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01448/0.3906, allocations: 4.013 MB / 392.1 MB, free: 3.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.3907, allocations: 10.12 kB / 392.1 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00775/0.3985, allocations: 1.774 MB / 393.9 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004513/0.403, allocations: 1.915 MB / 395.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.4033, allocations: 185.8 kB / 396 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/0.4045, allocations: 265.6 kB / 396.3 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/0.4223, allocations: 8.419 MB / 404.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001153/0.4224, allocations: 44.7 kB / 404.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/0.4228, allocations: 124.3 kB / 404.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002895/0.4257, allocations: 1.697 MB / 406.5 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01466/0.4404, allocations: 7.102 MB / 413.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04807/0.4885, allocations: 34.16 MB / 447.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008364/0.4969, allocations: 3.278 MB / 451.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002332/0.4993, allocations: 1.466 MB / 452.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008532/0.5079, allocations: 4.356 MB / 456.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/0.508, allocations: 46.03 kB / 456.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 4.749e-06/0.508, allocations: 0 / 456.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.03338/0.5414, allocations: 11.51 MB / 468.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.973e-05/0.5415, allocations: 141.2 kB / 468.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007106/0.5486, allocations: 3.713 MB / 472.3 MB, free: 6.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002848/0.549, allocations: 45.7 kB / 472.4 MB, free: 6.312 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002088/0.5511, allocations: 2.748 MB / 475.1 MB, free: 3.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007192/0.5518, allocations: 0.5227 MB / 475.6 MB, free: 3.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001507/0.5533, allocations: 1.083 MB / 476.7 MB, free: 1.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.5534, allocations: 309.1 kB / 477 MB, free: 1.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002488/0.5559, allocations: 1.705 MB / 478.7 MB, free: 15.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004973/0.5609, allocations: 5.133 MB / 483.8 MB, free: 9.145 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009106/0.57, allocations: 7.416 MB / 491.3 MB, free: 228 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001298/0.5702, allocations: 32 kB / 491.3 MB, free: 196 kB / 398.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01459/0.5848, allocations: 6.724 MB / 498 MB, free: 9.461 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.585, allocations: 59.94 kB / 498.1 MB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002181/0.5852, allocations: 120 kB / 498.2 MB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007124/0.586, allocations: 321.5 kB / 498.5 MB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004498/0.5905, allocations: 1.248 MB / 499.8 MB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.5936, allocations: 2.497 MB / 0.4905 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005499/0.5992, allocations: 284.1 kB / 0.4908 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/0.6005, allocations: 337.9 kB / 0.4911 GB, free: 4.477 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (668): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004752/0.6053, allocations: 1.79 MB / 0.4928 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008509/0.6061, allocations: 308 kB / 0.4931 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005205/0.6114, allocations: 2.359 MB / 0.4954 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-05/0.6114, allocations: 20 kB / 0.4954 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/0.6115, allocations: 11.84 kB / 0.4955 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.6115, allocations: 7.922 kB / 0.4955 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/0.6274, allocations: 5.929 MB / 0.5012 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/0.6275, allocations: 8.062 kB / 0.5013 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009501/0.6284, allocations: 171.7 kB / 0.5014 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002301/0.6307, allocations: 0.7147 MB / 0.5021 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002052/0.631, allocations: 27.11 kB / 0.5021 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006323/0.6373, allocations: 4.811 MB / 0.5068 GB, free: 4.125 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.6374, allocations: 7.938 kB / 0.5068 GB, free: 4.117 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007799/0.6452, allocations: 4.313 MB / 0.5111 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.6464, allocations: 364.9 kB / 0.5114 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008303/0.6473, allocations: 20 kB / 0.5114 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.6489, allocations: 67.84 kB / 0.5115 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.6491, allocations: 72.56 kB / 0.5116 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.6493, allocations: 36 kB / 0.5116 GB, free: 15.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004915/0.6542, allocations: 2.323 MB / 0.5139 GB, free: 12.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6542, allocations: 0 / 0.5139 GB, free: 12.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005578/0.6598, allocations: 0.8149 MB / 0.5147 GB, free: 12.08 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005724/0.6604, allocations: 162 kB / 0.5148 GB, free: 11.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007902/0.6683, allocations: 4.413 MB / 0.5191 GB, free: 7.523 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/0.6683, allocations: 0 / 0.5191 GB, free: 7.523 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.6701, allocations: 1.107 MB / 0.5202 GB, free: 6.398 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003381/0.6735, allocations: 394.2 kB / 0.5206 GB, free: 6.016 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2176/0.8912, allocations: 7.734 MB / 0.5281 GB, free: 149 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004544/0.8957, allocations: 2.781 MB / 0.5309 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.8968, allocations: 250.5 kB / 0.5311 GB, free: 148.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.8969, allocations: 0.6875 kB / 0.5311 GB, free: 148.2 MB / 446.1 MB Notification: Performance of Templates: time 0.08904/0.9859, allocations: 63.9 MB / 0.5935 GB, free: 100.1 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches