Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001789/0.001789, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009931/0.0009931, allocations: 111.9 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009426/0.0009426, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.2003, allocations: 50.46 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02367/0.224, allocations: 34.68 MB / 441.7 MB, free: 8.977 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.239, allocations: 7.938 MB / 449.7 MB, free: 1.023 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005053/0.244, allocations: 147.6 kB / 449.8 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003543/0.2476, allocations: 1.917 MB / 451.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003358/0.251, allocations: 1.534 MB / 453.3 MB, free: 13.41 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.2521, allocations: 0.5577 MB / 453.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004402/0.2566, allocations: 4.814 MB / 458.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002501/0.2591, allocations: 2.536 MB / 461.2 MB, free: 5.449 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001107/0.2602, allocations: 1.105 MB / 462.3 MB, free: 4.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/0.2621, allocations: 1.795 MB / 464.1 MB, free: 2.539 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003228/0.2624, allocations: 176 kB / 464.2 MB, free: 2.367 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001648/0.2641, allocations: 0.9984 MB / 465.2 MB, free: 1.367 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001232/0.2653, allocations: 1.511 MB / 466.8 MB, free: 15.85 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001601/0.2669, allocations: 1.762 MB / 468.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004893/0.2718, allocations: 5.56 MB / 474.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.2718, allocations: 0 / 474.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2719, allocations: 3.938 kB / 474.1 MB, free: 8.496 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.174e-05/0.272, allocations: 8 kB / 474.1 MB, free: 8.488 MB / 346.7 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.00697/0.2789, allocations: 4.014 MB / 478.1 MB, free: 4.406 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.279, allocations: 12.88 kB / 478.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005996/0.285, allocations: 1.774 MB / 479.9 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.2888, allocations: 1.892 MB / 481.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.2889, allocations: 192.8 kB / 482 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005979/0.2895, allocations: 255.8 kB / 482.2 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.3024, allocations: 8.427 MB / 490.7 MB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.627e-05/0.3025, allocations: 39.59 kB / 490.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003677/0.3029, allocations: 127.9 kB / 490.8 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003149/0.3061, allocations: 1.699 MB / 492.5 MB, free: 5.258 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01212/0.3182, allocations: 7.094 MB / 499.6 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2018/0.52, allocations: 34.15 MB / 0.5212 GB, free: 69.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006323/0.5264, allocations: 3.274 MB / 0.5244 GB, free: 68.31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.5279, allocations: 1.464 MB / 0.5259 GB, free: 67.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005647/0.5336, allocations: 4.36 MB / 0.5301 GB, free: 64.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.5336, allocations: 50.05 kB / 0.5302 GB, free: 64.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.927e-06/0.5336, allocations: 0 / 0.5302 GB, free: 64.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.02397/0.5576, allocations: 11.51 MB / 0.5414 GB, free: 55.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.5577, allocations: 148.5 kB / 0.5416 GB, free: 55.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003472/0.5612, allocations: 3.709 MB / 0.5452 GB, free: 51.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.843e-05/0.5613, allocations: 41.7 kB / 0.5452 GB, free: 51.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000989/0.5623, allocations: 2.751 MB / 0.5479 GB, free: 49.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/0.5626, allocations: 0.5158 MB / 0.5484 GB, free: 48.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009753/0.5635, allocations: 1.082 MB / 0.5495 GB, free: 47.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.48e-05/0.5636, allocations: 307.2 kB / 0.5498 GB, free: 47.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.5654, allocations: 1.706 MB / 0.5514 GB, free: 45.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002788/0.5682, allocations: 5.13 MB / 0.5564 GB, free: 38.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005149/0.5734, allocations: 7.412 MB / 0.5637 GB, free: 29.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.241e-05/0.5734, allocations: 36 kB / 0.5637 GB, free: 29.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.00785/0.5813, allocations: 6.726 MB / 0.5703 GB, free: 22.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.05e-05/0.5814, allocations: 60 kB / 0.5703 GB, free: 22.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.919e-05/0.5815, allocations: 120 kB / 0.5704 GB, free: 22.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005166/0.582, allocations: 324 kB / 0.5708 GB, free: 22.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003046/0.585, allocations: 1.248 MB / 0.572 GB, free: 21.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.5869, allocations: 2.286 MB / 0.5742 GB, free: 18.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002965/0.5899, allocations: 283.6 kB / 0.5745 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002959/0.5902, allocations: 343.6 kB / 0.5748 GB, free: 17.99 MB / 378.7 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.001722/0.5919, allocations: 1.792 MB / 0.5766 GB, free: 16.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003382/0.5922, allocations: 308 kB / 0.5768 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003956/0.5962, allocations: 2.363 MB / 0.5792 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.5962, allocations: 16 kB / 0.5792 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.5962, allocations: 4 kB / 0.5792 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5963, allocations: 3.984 kB / 0.5792 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008679/0.6049, allocations: 5.939 MB / 0.585 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.605, allocations: 480 / 0.585 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007266/0.6057, allocations: 171.7 kB / 0.5851 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/0.6077, allocations: 0.7147 MB / 0.5858 GB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.365e-05/0.6078, allocations: 20 kB / 0.5859 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004425/0.6122, allocations: 4.465 MB / 0.5902 GB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.6122, allocations: 7.875 kB / 0.5902 GB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0433/0.6555, allocations: 26.04 MB / 0.6157 GB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005231/0.6561, allocations: 361 kB / 0.616 GB, free: 7.262 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/0.6563, allocations: 19.44 kB / 0.616 GB, free: 7.246 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.6574, allocations: 72.03 kB / 0.6161 GB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.6576, allocations: 68.45 kB / 0.6162 GB, free: 7.105 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.839e-05/0.6577, allocations: 35.98 kB / 0.6162 GB, free: 7.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003136/0.6608, allocations: 2.323 MB / 0.6185 GB, free: 4.762 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6608, allocations: 0 / 0.6185 GB, free: 4.762 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004123/0.665, allocations: 1.088 MB / 0.6195 GB, free: 3.676 MB / 410.7 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.0003372/0.6653, allocations: 159.9 kB / 0.6197 GB, free: 3.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005365/0.6707, allocations: 4.031 MB / 0.6236 GB, free: 15.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6707, allocations: 0 / 0.6236 GB, free: 15.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.6721, allocations: 1.119 MB / 0.6247 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.6741, allocations: 368.7 kB / 0.6251 GB, free: 14.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/0.6867, allocations: 9.937 MB / 0.6348 GB, free: 4.027 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002624/0.6894, allocations: 2.825 MB / 0.6375 GB, free: 1.176 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003815/0.6932, allocations: 1.676 MB / 0.6392 GB, free: 15.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000561/0.6938, allocations: 215.3 kB / 0.6394 GB, free: 15.29 MB / 442.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6938, allocations: 0 / 0.6394 GB, free: 15.29 MB / 442.7 MB Notification: Performance of Templates: time 0.2096/0.9034, allocations: 36.06 MB / 0.6746 GB, free: 154.8 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches