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.001068/0.001068, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001081/0.001081, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 54.22 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09029/0.09149, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01066/0.1022, allocations: 10.19 MB / 369.1 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.163/0.2653, allocations: 3.789 MB / 372.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001472/0.2668, allocations: 58.94 kB / 372.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003498/0.2703, allocations: 1.948 MB / 374.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003655/0.274, allocations: 1.631 MB / 376.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.2753, allocations: 0.6078 MB / 377.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004502/0.2799, allocations: 3.36 MB / 380.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003122/0.283, allocations: 2.569 MB / 383.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002096/0.2851, allocations: 1.237 MB / 384.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.2871, allocations: 1.664 MB / 386 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000552/0.2877, allocations: 253.5 kB / 386.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.2896, allocations: 1.011 MB / 387.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001216/0.2908, allocations: 1.553 MB / 388.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.2923, allocations: 1.809 MB / 390.6 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004738/0.2971, allocations: 5.776 MB / 396.4 MB, free: 1.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2971, allocations: 4 kB / 396.4 MB, free: 1.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2971, allocations: 3.984 kB / 396.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.836e-05/0.2972, allocations: 0 / 396.4 MB, free: 1.207 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.006278/0.3035, allocations: 3.991 MB / 400.4 MB, free: 14.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3036, allocations: 13.91 kB / 400.4 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005754/0.3093, allocations: 1.767 MB / 402.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00408/0.3134, allocations: 1.913 MB / 404 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.3136, allocations: 197.6 kB / 404.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004933/0.3141, allocations: 253.9 kB / 404.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/0.3266, allocations: 8.439 MB / 412.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.641e-05/0.3267, allocations: 39.66 kB / 413 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003283/0.3271, allocations: 124.4 kB / 413.1 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002556/0.3296, allocations: 1.698 MB / 414.8 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0127/0.3423, allocations: 7.118 MB / 421.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03732/0.3797, allocations: 34.02 MB / 455.9 MB, free: 6.066 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006987/0.3867, allocations: 3.286 MB / 459.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/0.3885, allocations: 1.466 MB / 460.7 MB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00672/0.3952, allocations: 4.451 MB / 465.1 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.3953, allocations: 47.06 kB / 465.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 3.126e-06/0.3953, allocations: 0 / 465.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.02662/0.4219, allocations: 11.56 MB / 476.7 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/0.422, allocations: 141.1 kB / 476.9 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004624/0.4267, allocations: 3.705 MB / 480.6 MB, free: 12.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.4268, allocations: 48.06 kB / 480.6 MB, free: 12.83 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00173/0.4286, allocations: 2.744 MB / 483.4 MB, free: 10.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004319/0.429, allocations: 0.5207 MB / 483.9 MB, free: 9.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.4303, allocations: 1.083 MB / 485 MB, free: 8.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.32e-05/0.4304, allocations: 305.1 kB / 485.3 MB, free: 8.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002388/0.4328, allocations: 1.709 MB / 487 MB, free: 6.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004412/0.4372, allocations: 5.135 MB / 492.1 MB, free: 15.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007927/0.4451, allocations: 7.417 MB / 499.5 MB, free: 6.473 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.247e-05/0.4452, allocations: 32 kB / 499.6 MB, free: 6.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01045/0.4557, allocations: 6.734 MB / 0.4944 GB, free: 15.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.026e-05/0.4558, allocations: 59.94 kB / 0.4945 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/0.4559, allocations: 124.5 kB / 0.4946 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005914/0.4565, allocations: 324.6 kB / 0.4949 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0036/0.4601, allocations: 1.244 MB / 0.4961 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/0.4627, allocations: 2.499 MB / 0.4986 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.4663, allocations: 287.5 kB / 0.4988 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007292/0.467, allocations: 339.9 kB / 0.4992 GB, free: 10.7 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.002973/0.47, allocations: 1.787 MB / 0.5009 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000613/0.4707, allocations: 312 kB / 0.5012 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004594/0.4753, allocations: 2.374 MB / 0.5035 GB, free: 6.195 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/0.4753, allocations: 16 kB / 0.5035 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4753, allocations: 0 / 0.5035 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.4753, allocations: 7.984 kB / 0.5035 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.4868, allocations: 5.906 MB / 0.5093 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.4869, allocations: 7.984 kB / 0.5093 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008436/0.4877, allocations: 179.7 kB / 0.5095 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002121/0.4899, allocations: 0.7209 MB / 0.5102 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.49, allocations: 16 kB / 0.5102 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005817/0.4958, allocations: 4.812 MB / 0.5149 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4959, allocations: 0 / 0.5149 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006606/0.5025, allocations: 4.347 MB / 0.5192 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009283/0.5034, allocations: 361 kB / 0.5195 GB, free: 5.613 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003475/0.5038, allocations: 20 kB / 0.5195 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.5048, allocations: 67.84 kB / 0.5196 GB, free: 5.527 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.505, allocations: 72.5 kB / 0.5196 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.5051, allocations: 32.06 kB / 0.5197 GB, free: 5.422 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003317/0.5084, allocations: 2.319 MB / 0.5219 GB, free: 3.117 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5085, allocations: 0 / 0.5219 GB, free: 3.117 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003909/0.5124, 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.000363/0.5127, allocations: 161.5 kB / 0.5229 GB, free: 2.152 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1522/0.6649, allocations: 4.05 MB / 0.5268 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.665, allocations: 0 / 0.5268 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00162/0.6666, allocations: 1.119 MB / 0.5279 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.6688, allocations: 386.7 kB / 0.5283 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.6796, allocations: 7.259 MB / 0.5354 GB, free: 141.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003074/0.6827, allocations: 2.779 MB / 0.5381 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003745/0.6865, allocations: 1.666 MB / 0.5397 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000573/0.687, allocations: 208.8 kB / 0.5399 GB, free: 140.6 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6871, allocations: 0 / 0.5399 GB, free: 140.6 MB / 446.1 MB Notification: Performance of Templates: time 0.0435/0.7306, 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 cvode -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