Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001255, allocations: 111.6 kB / 17.33 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 213.8 kB / 18.27 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.41/1.41, allocations: 227.7 MB / 246.7 MB, free: 8.727 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 64.94 kB / 306.7 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09745/0.09945, allocations: 50.54 MB / 357.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1802/0.2797, allocations: 34.46 MB / 391.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01965/0.2994, allocations: 7.735 MB / 399.5 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00667/0.3061, allocations: 146.9 kB / 399.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003963/0.3101, allocations: 1.85 MB / 401.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00416/0.3143, allocations: 1.526 MB / 403 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.3157, allocations: 0.5602 MB / 403.6 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004725/0.3205, allocations: 3.392 MB / 406.9 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003162/0.3236, allocations: 2.72 MB / 409.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001918/0.3256, allocations: 1.253 MB / 410.9 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002695/0.3283, allocations: 1.866 MB / 412.8 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005885/0.3289, allocations: 252 kB / 413 MB, free: 3.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002037/0.3309, allocations: 1.03 MB / 414.1 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001572/0.3325, allocations: 1.57 MB / 415.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.3348, allocations: 1.837 MB / 417.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007004/0.3419, allocations: 5.615 MB / 423.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.3419, allocations: 4 kB / 423.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3419, allocations: 0 / 423.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001433/0.3421, allocations: 0 / 423.1 MB, free: 9.43 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.008345/0.3504, allocations: 3.995 MB / 427.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3505, allocations: 12.03 kB / 427.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006459/0.3569, allocations: 1.77 MB / 428.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00368/0.3607, allocations: 1.881 MB / 430.7 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.3609, allocations: 192.8 kB / 430.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005874/0.3615, allocations: 255.8 kB / 431.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01466/0.3761, allocations: 8.439 MB / 439.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.3763, allocations: 47.59 kB / 439.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003373/0.3766, allocations: 123.9 kB / 439.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002973/0.3796, allocations: 1.699 MB / 441.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/0.3937, allocations: 7.122 MB / 448.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04199/0.4358, allocations: 34.15 MB / 482.8 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007771/0.4436, allocations: 3.28 MB / 486 MB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002135/0.4458, allocations: 1.461 MB / 487.5 MB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006839/0.4526, allocations: 4.46 MB / 492 MB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/0.4527, allocations: 47.12 kB / 492 MB, free: 2.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 6.843e-06/0.4527, allocations: 4 kB / 492 MB, free: 2.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03014/0.4829, allocations: 11.54 MB / 0.4918 GB, free: 6.609 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.483, allocations: 149.1 kB / 0.4919 GB, free: 6.434 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005651/0.4887, allocations: 3.709 MB / 0.4955 GB, free: 2.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002511/0.4889, allocations: 41.7 kB / 0.4956 GB, free: 2.684 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002552/0.4915, allocations: 2.744 MB / 0.4982 GB, free: 15.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007221/0.4922, allocations: 0.5249 MB / 0.4988 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001494/0.4937, allocations: 1.079 MB / 0.4998 GB, free: 14.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4939, allocations: 305.1 kB / 0.5001 GB, free: 13.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002687/0.4966, allocations: 1.709 MB / 0.5018 GB, free: 12.26 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005894/0.5025, allocations: 5.131 MB / 0.5068 GB, free: 5.398 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009745/0.5123, allocations: 7.43 MB / 0.514 GB, free: 12.27 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.288e-05/0.5124, allocations: 36 kB / 0.5141 GB, free: 12.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01176/0.5241, allocations: 6.727 MB / 0.5206 GB, free: 5.492 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.187e-05/0.5243, allocations: 59.94 kB / 0.5207 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001281/0.5244, allocations: 120 kB / 0.5208 GB, free: 5.316 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006786/0.5251, allocations: 321.3 kB / 0.5211 GB, free: 5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003708/0.5288, allocations: 1.251 MB / 0.5223 GB, free: 3.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00304/0.5318, allocations: 2.493 MB / 0.5248 GB, free: 1.109 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003252/0.5351, allocations: 291.5 kB / 0.525 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004554/0.5356, allocations: 332 kB / 0.5254 GB, free: 0.5 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 (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.1957/0.7313, allocations: 1.786 MB / 0.5271 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006935/0.732, allocations: 311 kB / 0.5274 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004885/0.7369, allocations: 2.368 MB / 0.5297 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-05/0.737, allocations: 15.42 kB / 0.5297 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.737, allocations: 7.375 kB / 0.5297 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.737, allocations: 9.172 kB / 0.5297 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.7479, allocations: 5.925 MB / 0.5355 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/0.7479, allocations: 1.188 kB / 0.5355 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/0.7487, allocations: 174.1 kB / 0.5357 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002103/0.7508, allocations: 0.7153 MB / 0.5364 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-05/0.7509, allocations: 20.31 kB / 0.5364 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005045/0.756, allocations: 4.817 MB / 0.5411 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.756, allocations: 0 / 0.5411 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005685/0.7617, allocations: 4.337 MB / 0.5454 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006722/0.7624, allocations: 363.1 kB / 0.5457 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003268/0.7627, allocations: 29.05 kB / 0.5457 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.7637, allocations: 65.67 kB / 0.5458 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.764, allocations: 68.27 kB / 0.5459 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.979e-05/0.764, allocations: 33.62 kB / 0.5459 GB, free: 109.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002818/0.7669, allocations: 2.316 MB / 0.5482 GB, free: 108.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7669, allocations: 3.969 kB / 0.5482 GB, free: 108.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003611/0.7705, allocations: 0.8003 MB / 0.5489 GB, free: 108.2 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.0003098/0.7708, allocations: 155.2 kB / 0.5491 GB, free: 108.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005333/0.7762, allocations: 4.429 MB / 0.5534 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.7762, allocations: 0 / 0.5534 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.7774, allocations: 1.121 MB / 0.5545 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/0.7794, allocations: 391.7 kB / 0.5549 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009396/0.7888, allocations: 8.935 MB / 0.5636 GB, free: 98.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001963/0.7908, allocations: 2.782 MB / 0.5663 GB, free: 95.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003267/0.7941, allocations: 1.657 MB / 0.5679 GB, free: 94.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/0.7946, allocations: 218.5 kB / 0.5681 GB, free: 94 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.7946, allocations: 0 / 0.5681 GB, free: 94 MB / 446.1 MB Notification: Performance of Templates: time 0.04548/0.8401, allocations: 30.81 MB / 0.5982 GB, free: 63.45 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches