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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 107.8 kB / 17.64 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.00132, allocations: 218.5 kB / 18.59 MB, free: 4.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 68.5 kB / 307 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09825/0.09944, allocations: 50.53 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01162/0.1111, allocations: 10.18 MB / 367.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009105/0.1203, allocations: 3.821 MB / 371.5 MB, free: 12 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.1655/0.2858, allocations: 56.48 kB / 371.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004141/0.29, allocations: 1.93 MB / 373.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004405/0.2944, allocations: 1.625 MB / 375.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.296, allocations: 0.6047 MB / 375.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004775/0.3007, allocations: 3.355 MB / 379 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003415/0.3042, allocations: 2.567 MB / 381.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00257/0.3068, allocations: 1.243 MB / 382.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002377/0.3092, allocations: 1.66 MB / 384.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006854/0.3099, allocations: 253.7 kB / 384.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002001/0.3119, allocations: 1.017 MB / 385.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.3134, allocations: 1.538 MB / 387.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002048/0.3154, allocations: 1.812 MB / 389.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005408/0.3208, allocations: 5.564 MB / 394.7 MB, free: 1.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.3209, allocations: 4 kB / 394.7 MB, free: 1.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3209, allocations: 3.938 kB / 394.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000183/0.3211, allocations: 0 / 394.7 MB, free: 1.434 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.009273/0.3304, allocations: 4 MB / 398.7 MB, free: 14.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3304, allocations: 13.06 kB / 398.7 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006568/0.337, allocations: 1.767 MB / 400.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004322/0.3414, allocations: 1.875 MB / 402.4 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.3416, allocations: 193.5 kB / 402.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007566/0.3423, allocations: 258.2 kB / 402.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0133/0.3556, allocations: 8.437 MB / 411.2 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-05/0.3557, allocations: 47.58 kB / 411.3 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003377/0.3561, allocations: 122.8 kB / 411.4 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002729/0.3588, allocations: 1.699 MB / 413.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01289/0.3717, allocations: 7.114 MB / 420.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03803/0.4098, allocations: 34.16 MB / 454.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007131/0.4169, allocations: 3.288 MB / 457.7 MB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.4187, allocations: 1.462 MB / 459.1 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005612/0.4243, allocations: 4.453 MB / 463.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.4243, allocations: 51.06 kB / 463.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 2.655e-06/0.4243, allocations: 0 / 463.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.02981/0.4542, allocations: 11.56 MB / 475.2 MB, free: 1.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.4543, allocations: 141.2 kB / 475.3 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005217/0.4595, allocations: 3.709 MB / 479 MB, free: 13.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002599/0.4598, allocations: 41.7 kB / 479.1 MB, free: 13.22 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/0.4616, allocations: 2.748 MB / 481.8 MB, free: 10.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006042/0.4622, allocations: 0.5187 MB / 482.3 MB, free: 9.957 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/0.4635, allocations: 1.074 MB / 483.4 MB, free: 8.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4636, allocations: 309.1 kB / 483.7 MB, free: 8.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/0.4661, allocations: 1.713 MB / 485.4 MB, free: 6.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004421/0.4706, allocations: 5.131 MB / 490.6 MB, free: 15.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007759/0.4783, allocations: 7.428 MB / 498 MB, free: 6.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.239e-05/0.4785, allocations: 32 kB / 498 MB, free: 6.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01134/0.4898, allocations: 6.733 MB / 0.4929 GB, free: 84 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.706e-05/0.4899, allocations: 59.94 kB / 0.493 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.4901, allocations: 124 kB / 0.4931 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006504/0.4908, allocations: 321.4 kB / 0.4934 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003886/0.4947, allocations: 1.244 MB / 0.4946 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002597/0.4973, allocations: 2.491 MB / 0.4971 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004401/0.5017, allocations: 295.5 kB / 0.4973 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009367/0.5026, allocations: 336 kB / 0.4977 GB, free: 11.09 MB / 430.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.004012/0.5067, allocations: 1.79 MB / 0.4994 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009748/0.5077, allocations: 304.1 kB / 0.4997 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005587/0.5133, allocations: 2.374 MB / 0.502 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-05/0.5134, allocations: 16 kB / 0.502 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.5134, allocations: 0 / 0.502 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.412e-05/0.5134, allocations: 11.97 kB / 0.502 GB, free: 6.566 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/0.5284, allocations: 5.921 MB / 0.5078 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/0.5284, allocations: 7.938 kB / 0.5078 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008882/0.5293, allocations: 179.7 kB / 0.508 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002181/0.5315, allocations: 0.7069 MB / 0.5087 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.5317, allocations: 20 kB / 0.5087 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005767/0.5375, allocations: 4.82 MB / 0.5134 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.5375, allocations: 3.938 kB / 0.5134 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00676/0.5443, allocations: 4.336 MB / 0.5177 GB, free: 6.363 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009014/0.5452, allocations: 357 kB / 0.518 GB, free: 5.992 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006209/0.5458, allocations: 22.73 kB / 0.518 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.5472, allocations: 75.91 kB / 0.5181 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.5474, allocations: 72.5 kB / 0.5182 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.209e-05/0.5475, allocations: 31.94 kB / 0.5182 GB, free: 5.797 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00416/0.5517, allocations: 2.322 MB / 0.5205 GB, free: 3.488 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5517, allocations: 0 / 0.5205 GB, free: 3.488 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004718/0.5564, allocations: 0.7969 MB / 0.5212 GB, free: 2.691 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.0006229/0.5571, allocations: 153.3 kB / 0.5214 GB, free: 2.535 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1698/0.7268, allocations: 4.426 MB / 0.5257 GB, free: 145.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.7269, allocations: 1 kB / 0.5257 GB, free: 145.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.7286, allocations: 1.12 MB / 0.5268 GB, free: 145.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.7311, allocations: 387.4 kB / 0.5272 GB, free: 145.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.7446, allocations: 7.342 MB / 0.5343 GB, free: 142.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004006/0.7486, allocations: 2.783 MB / 0.5371 GB, free: 141 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005007/0.7537, allocations: 1.66 MB / 0.5387 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000819/0.7545, allocations: 210.1 kB / 0.5389 GB, free: 140.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7545, allocations: 0 / 0.5389 GB, free: 140.8 MB / 446.1 MB Notification: Performance of Templates: time 0.04921/0.8037, allocations: 30.85 MB / 0.569 GB, free: 119 MB / 446.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches