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.001018/0.001019, allocations: 100.2 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 192.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.000222, allocations: 11.98 kB / 307.1 MB, free: 1.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.09156, allocations: 51.51 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2189/0.3105, allocations: 31.15 MB / 389.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.3278, allocations: 7.368 MB / 397.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006381/0.3342, allocations: 146.4 kB / 397.3 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004705/0.3389, allocations: 1.564 MB / 398.9 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01263/0.3516, allocations: 4.779 MB / 403.6 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002021/0.3536, allocations: 0.5083 MB / 404.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004678/0.3583, allocations: 3.8 MB / 407.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003627/0.3619, allocations: 2.949 MB / 410.9 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.3635, allocations: 1.039 MB / 411.9 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001925/0.3654, allocations: 1.585 MB / 413.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002781/0.3657, allocations: 116 kB / 413.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001471/0.3672, allocations: 0.7879 MB / 414.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001221/0.3684, allocations: 1.375 MB / 415.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006058/0.3691, allocations: 0.6947 MB / 416.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003831/0.3729, allocations: 4.39 MB / 420.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3729, allocations: 0 / 420.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3729, allocations: 0 / 420.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.609e-05/0.373, allocations: 0 / 420.9 MB, free: 12.91 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.005082/0.3781, allocations: 3.328 MB / 424.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.3781, allocations: 12.03 kB / 424.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005614/0.3837, allocations: 1.816 MB / 426 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002956/0.3867, allocations: 1.849 MB / 427.9 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.3869, allocations: 188.8 kB / 428.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004176/0.3873, allocations: 255.7 kB / 428.3 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01318/0.4005, allocations: 8.435 MB / 436.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.905e-05/0.4006, allocations: 51.58 kB / 436.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003092/0.4009, allocations: 119.9 kB / 436.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002586/0.4035, allocations: 1.695 MB / 438.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01248/0.416, allocations: 7.094 MB / 445.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04113/0.4572, allocations: 34.12 MB / 479.8 MB, free: 164 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009275/0.4665, allocations: 3.299 MB / 483.1 MB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/0.4685, allocations: 1.456 MB / 484.6 MB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008125/0.4766, allocations: 4.46 MB / 489 MB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.654e-05/0.4767, allocations: 51.08 kB / 489.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.679e-06/0.4767, allocations: 0 / 489.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03247/0.5092, allocations: 11.51 MB / 0.4889 GB, free: 10.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.5093, allocations: 145.1 kB / 0.489 GB, free: 10.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004806/0.5141, allocations: 3.689 MB / 0.4926 GB, free: 6.965 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000185/0.5143, allocations: 49.7 kB / 0.4927 GB, free: 6.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001798/0.5161, allocations: 2.74 MB / 0.4953 GB, free: 4.133 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005124/0.5166, allocations: 0.5209 MB / 0.4958 GB, free: 3.605 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/0.5168, allocations: 108 kB / 0.4959 GB, free: 3.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003072/0.5172, allocations: 0.5331 MB / 0.4965 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0024/0.5196, allocations: 1.685 MB / 0.4981 GB, free: 1.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004572/0.5241, allocations: 5.116 MB / 0.5031 GB, free: 10.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003788/0.528, allocations: 2.885 MB / 0.5059 GB, free: 7.547 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.093e-05/0.528, allocations: 40 kB / 0.506 GB, free: 7.508 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01052/0.5386, allocations: 6.684 MB / 0.5125 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.302e-05/0.5387, allocations: 58.34 kB / 0.5125 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/0.5388, allocations: 120.5 kB / 0.5127 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006029/0.5394, allocations: 348.9 kB / 0.513 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003639/0.5431, allocations: 1.244 MB / 0.5142 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002419/0.5455, allocations: 2.294 MB / 0.5165 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/0.5487, allocations: 291.5 kB / 0.5167 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005/0.5492, allocations: 339.9 kB / 0.5171 GB, free: 12 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002682/0.5519, allocations: 1.783 MB / 0.5188 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004485/0.5524, allocations: 312 kB / 0.5191 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004539/0.5569, allocations: 2.37 MB / 0.5214 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.345e-05/0.557, allocations: 12 kB / 0.5214 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.557, allocations: 7.938 kB / 0.5214 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.5571, allocations: 7.984 kB / 0.5214 GB, free: 7.484 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/0.5687, allocations: 5.922 MB / 0.5272 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.5688, allocations: 4 kB / 0.5272 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008286/0.5696, allocations: 179.7 kB / 0.5274 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/0.5717, allocations: 0.7186 MB / 0.5281 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.606e-05/0.5718, allocations: 20 kB / 0.5281 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1744/0.7462, allocations: 4.447 MB / 0.5325 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.7462, allocations: 1.375 kB / 0.5325 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006151/0.7524, allocations: 4.336 MB / 0.5367 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000693/0.7531, allocations: 370.6 kB / 0.537 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/0.7534, allocations: 18.52 kB / 0.5371 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009258/0.7543, allocations: 71.25 kB / 0.5371 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.7545, allocations: 73.16 kB / 0.5372 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.557e-05/0.7546, allocations: 35.83 kB / 0.5372 GB, free: 139 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003201/0.7578, allocations: 2.296 MB / 0.5395 GB, free: 138.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7578, allocations: 3.812 kB / 0.5395 GB, free: 138.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003692/0.7615, allocations: 0.8039 MB / 0.5403 GB, free: 138.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003056/0.7618, allocations: 147.4 kB / 0.5404 GB, free: 138 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005793/0.7676, allocations: 4.022 MB / 0.5443 GB, free: 136.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7676, allocations: 0 / 0.5443 GB, free: 136.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.7691, allocations: 1.116 MB / 0.5454 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/0.7711, allocations: 384.5 kB / 0.5458 GB, free: 136 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.7815, allocations: 8.618 MB / 0.5542 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002173/0.7837, allocations: 2.775 MB / 0.5569 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003371/0.7871, allocations: 1.655 MB / 0.5585 GB, free: 130.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005055/0.7876, allocations: 209.9 kB / 0.5587 GB, free: 130.3 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7876, allocations: 0 / 0.5587 GB, free: 130.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04123/0.8289, allocations: 28.73 MB / 0.5868 GB, free: 104.1 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