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.001281/0.001281, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001559/0.001559, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 9.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001309, allocations: 57.84 kB / 306.9 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09859/0.09993, allocations: 50.54 MB / 357.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1979/0.2979, allocations: 34.45 MB / 391.9 MB, free: 1.035 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01839/0.3163, allocations: 7.835 MB / 399.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007663/0.324, allocations: 146.8 kB / 399.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004238/0.3284, allocations: 1.925 MB / 401.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004778/0.3332, allocations: 1.515 MB / 403.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.3348, allocations: 0.5491 MB / 403.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006303/0.3411, allocations: 4.773 MB / 408.6 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003325/0.3445, allocations: 2.529 MB / 411.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.3465, allocations: 1.093 MB / 412.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.3488, allocations: 1.787 MB / 414 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005079/0.3494, allocations: 176 kB / 414.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002016/0.3514, allocations: 1.002 MB / 415.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.3528, allocations: 1.5 MB / 416.7 MB, free: 276 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001953/0.3548, allocations: 1.743 MB / 418.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004401/0.3592, allocations: 4.495 MB / 423 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3592, allocations: 0 / 423 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3593, allocations: 4 kB / 423 MB, free: 10 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001386/0.3594, allocations: 0 / 423 MB, free: 10 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.007902/0.3673, allocations: 3.997 MB / 427 MB, free: 5.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.3674, allocations: 8.031 kB / 427 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006043/0.3734, allocations: 1.77 MB / 428.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003713/0.3772, allocations: 1.885 MB / 430.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.3774, allocations: 196.8 kB / 430.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005906/0.378, allocations: 251.8 kB / 431.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01366/0.3916, allocations: 8.439 MB / 439.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-05/0.3918, allocations: 43.59 kB / 439.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003662/0.3921, allocations: 127.9 kB / 439.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002733/0.3949, allocations: 1.695 MB / 441.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0139/0.4088, allocations: 7.106 MB / 448.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0413/0.4501, allocations: 34.16 MB / 482.6 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007756/0.4579, allocations: 3.284 MB / 485.9 MB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002044/0.46, allocations: 1.466 MB / 487.4 MB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007474/0.4675, allocations: 4.456 MB / 491.8 MB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/0.4676, allocations: 47.12 kB / 491.9 MB, free: 2.883 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.799e-06/0.4676, allocations: 4 kB / 491.9 MB, free: 2.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03069/0.4983, allocations: 11.54 MB / 0.4916 GB, free: 7.188 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.082e-05/0.4985, allocations: 149.1 kB / 0.4918 GB, free: 7.012 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00653/0.505, allocations: 3.705 MB / 0.4954 GB, free: 3.312 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002517/0.5053, allocations: 45.7 kB / 0.4954 GB, free: 3.262 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002173/0.5075, allocations: 2.748 MB / 0.4981 GB, free: 484 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007005/0.5082, allocations: 0.5211 MB / 0.4986 GB, free: 15.94 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001948/0.5102, allocations: 1.075 MB / 0.4997 GB, free: 14.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.5103, allocations: 305.1 kB / 0.5 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/0.513, allocations: 1.709 MB / 0.5016 GB, free: 12.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004983/0.518, allocations: 5.139 MB / 0.5066 GB, free: 5.973 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00853/0.5266, allocations: 7.427 MB / 0.5139 GB, free: 12.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001246/0.5268, allocations: 39.94 kB / 0.5139 GB, free: 12.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01236/0.5391, allocations: 6.723 MB / 0.5205 GB, free: 6.074 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.5393, allocations: 59.94 kB / 0.5206 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/0.5395, allocations: 124 kB / 0.5207 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007065/0.5402, allocations: 325.2 kB / 0.521 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003848/0.5441, allocations: 1.252 MB / 0.5222 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002442/0.5465, allocations: 2.271 MB / 0.5244 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003577/0.5501, allocations: 291.4 kB / 0.5247 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007714/0.5509, allocations: 332 kB / 0.525 GB, free: 1.301 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.1963/0.7473, allocations: 1.785 MB / 0.5268 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006871/0.748, allocations: 312.6 kB / 0.5271 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005203/0.7532, allocations: 2.368 MB / 0.5294 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.385e-05/0.7532, allocations: 17.16 kB / 0.5294 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.7532, allocations: 3.688 kB / 0.5294 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.7533, allocations: 6.406 kB / 0.5294 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01146/0.7647, allocations: 5.927 MB / 0.5352 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.7648, allocations: 1.281 kB / 0.5352 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008562/0.7656, allocations: 177.1 kB / 0.5354 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002121/0.7678, allocations: 0.7102 MB / 0.536 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.7679, allocations: 23.03 kB / 0.5361 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004945/0.7729, allocations: 4.475 MB / 0.5404 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.7729, allocations: 5.281 kB / 0.5404 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005741/0.7786, allocations: 4.335 MB / 0.5447 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006633/0.7793, allocations: 363.8 kB / 0.545 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003124/0.7796, allocations: 20.25 kB / 0.545 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009739/0.7806, allocations: 68.31 kB / 0.5451 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.7808, allocations: 74.59 kB / 0.5452 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.843e-05/0.7809, allocations: 37.5 kB / 0.5452 GB, free: 109.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002982/0.7839, allocations: 2.313 MB / 0.5475 GB, free: 108.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7839, allocations: 0 / 0.5475 GB, free: 108.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00364/0.7876, allocations: 0.8073 MB / 0.5483 GB, free: 108.8 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.0003324/0.7879, allocations: 153.8 kB / 0.5484 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004693/0.7926, allocations: 4.043 MB / 0.5524 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.7926, allocations: 0 / 0.5524 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.7939, allocations: 1.116 MB / 0.5534 GB, free: 107.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.796, allocations: 364.6 kB / 0.5538 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.8064, allocations: 9.319 MB / 0.5629 GB, free: 99.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001937/0.8084, allocations: 2.788 MB / 0.5656 GB, free: 97.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007559/0.8092, allocations: 247.4 kB / 0.5659 GB, free: 96.82 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.8092, allocations: 6.031 kB / 0.5659 GB, free: 96.82 MB / 446.1 MB Notification: Performance of Templates: time 0.06201/0.8712, allocations: 63.69 MB / 0.6281 GB, free: 33.24 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/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