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.001934/0.001934, allocations: 114.7 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002414/0.002414, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 55.47 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09272/0.09382, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01052/0.1044, allocations: 10.2 MB / 369.1 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1793/0.2837, allocations: 3.79 MB / 372.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001672/0.2854, allocations: 55.91 kB / 372.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003625/0.2891, allocations: 1.942 MB / 374.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004022/0.2932, allocations: 1.63 MB / 376.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.2945, allocations: 0.6079 MB / 377.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004419/0.2989, allocations: 3.355 MB / 380.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002847/0.3018, allocations: 2.566 MB / 383 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002096/0.3039, allocations: 1.241 MB / 384.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002119/0.306, allocations: 1.664 MB / 385.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000545/0.3066, allocations: 253.8 kB / 386.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002027/0.3086, allocations: 1.007 MB / 387.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001403/0.31, allocations: 1.545 MB / 388.7 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001547/0.3116, allocations: 1.813 MB / 390.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005308/0.3169, allocations: 5.783 MB / 396.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3169, allocations: 3.984 kB / 396.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3169, allocations: 1.844 kB / 396.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001006/0.317, allocations: 0 / 396.3 MB, free: 1.246 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.007459/0.3245, allocations: 3.994 MB / 400.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3246, allocations: 8.469 kB / 400.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005879/0.3304, allocations: 1.772 MB / 402.1 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004455/0.3349, allocations: 1.923 MB / 404 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.3351, allocations: 194.8 kB / 404.2 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005163/0.3356, allocations: 252 kB / 404.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01462/0.3502, allocations: 8.434 MB / 412.9 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.3504, allocations: 43.59 kB / 413 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003603/0.3507, allocations: 125 kB / 413.1 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002715/0.3535, allocations: 1.698 MB / 414.8 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01383/0.3673, allocations: 7.116 MB / 421.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04219/0.4095, allocations: 34.02 MB / 455.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01175/0.4213, allocations: 3.284 MB / 459.2 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003097/0.4245, allocations: 1.465 MB / 460.7 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.435, allocations: 4.456 MB / 465.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.448e-05/0.4351, allocations: 39.12 kB / 465.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 5.24e-06/0.4351, allocations: 0 / 465.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.04868/0.4838, allocations: 11.56 MB / 476.7 MB, free: 0.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001735/0.484, allocations: 137.2 kB / 476.9 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009475/0.4935, allocations: 3.706 MB / 480.6 MB, free: 12.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000397/0.494, allocations: 45.7 kB / 480.6 MB, free: 12.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003041/0.497, allocations: 2.748 MB / 483.4 MB, free: 10.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008438/0.4979, allocations: 0.5255 MB / 483.9 MB, free: 9.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002286/0.5002, allocations: 1.079 MB / 485 MB, free: 8.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.5003, allocations: 305.1 kB / 485.3 MB, free: 8.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00271/0.5031, allocations: 1.712 MB / 487 MB, free: 6.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004321/0.5074, allocations: 5.131 MB / 492.1 MB, free: 15.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007392/0.5148, allocations: 7.42 MB / 499.5 MB, free: 6.473 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.222e-05/0.5149, allocations: 35.98 kB / 499.6 MB, free: 6.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01009/0.525, allocations: 6.73 MB / 0.4944 GB, free: 15.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.76e-05/0.5251, allocations: 59.94 kB / 0.4945 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.5252, allocations: 124 kB / 0.4946 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005867/0.5258, allocations: 320.7 kB / 0.4949 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/0.5294, allocations: 1.244 MB / 0.4961 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002565/0.532, allocations: 2.5 MB / 0.4986 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.5356, allocations: 287.5 kB / 0.4988 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004275/0.536, allocations: 328 kB / 0.4991 GB, free: 10.71 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.002496/0.5385, allocations: 1.805 MB / 0.5009 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004311/0.539, allocations: 304.1 kB / 0.5012 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004463/0.5435, allocations: 2.378 MB / 0.5035 GB, free: 6.199 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.395e-05/0.5435, allocations: 12 kB / 0.5035 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.5435, allocations: 4 kB / 0.5035 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.5436, allocations: 7.984 kB / 0.5035 GB, free: 6.176 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.5557, allocations: 5.911 MB / 0.5093 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.5557, allocations: 4 kB / 0.5093 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008363/0.5565, allocations: 171.7 kB / 0.5095 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/0.5587, allocations: 0.7186 MB / 0.5102 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.721e-05/0.5588, allocations: 18.66 kB / 0.5102 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005841/0.5646, allocations: 4.813 MB / 0.5149 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.5646, allocations: 8.062 kB / 0.5149 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006719/0.5714, allocations: 4.339 MB / 0.5191 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009314/0.5723, allocations: 357 kB / 0.5195 GB, free: 5.617 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003084/0.5726, allocations: 24 kB / 0.5195 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.5737, allocations: 67.84 kB / 0.5196 GB, free: 5.527 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.5739, allocations: 72.55 kB / 0.5196 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.672e-05/0.574, allocations: 38.48 kB / 0.5197 GB, free: 5.418 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003383/0.5774, allocations: 2.315 MB / 0.5219 GB, free: 3.117 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5774, allocations: 0 / 0.5219 GB, free: 3.117 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003679/0.5811, allocations: 0.8008 MB / 0.5227 GB, free: 2.316 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.0003313/0.5815, allocations: 161 kB / 0.5229 GB, free: 2.152 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1796/0.7611, allocations: 4.047 MB / 0.5268 GB, free: 145.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.7611, allocations: 0.5312 kB / 0.5268 GB, free: 145.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003325/0.7645, allocations: 1.115 MB / 0.5279 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004574/0.7691, allocations: 385 kB / 0.5283 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02228/0.7914, allocations: 7.26 MB / 0.5354 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00663/0.7981, allocations: 2.782 MB / 0.5381 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007969/0.8061, allocations: 1.659 MB / 0.5397 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001405/0.8076, allocations: 208.6 kB / 0.5399 GB, free: 140.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.463e-06/0.8076, allocations: 0 / 0.5399 GB, free: 140.8 MB / 446.1 MB Notification: Performance of Templates: time 0.0933/0.9009, allocations: 25.96 MB / 0.5653 GB, free: 124 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 -s gbode -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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches