Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 110.9 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 54.73 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09409, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01029/0.1044, allocations: 10.22 MB / 361.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007036/0.1115, allocations: 3.79 MB / 365.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009255/0.1124, allocations: 51.88 kB / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003269/0.1158, allocations: 1.946 MB / 367.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003014/0.1188, allocations: 1.661 MB / 369.2 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.12, allocations: 0.6121 MB / 369.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1661/0.2861, allocations: 3.313 MB / 373.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003335/0.2895, allocations: 2.572 MB / 375.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002515/0.292, allocations: 1.245 MB / 376.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003479/0.2955, allocations: 1.661 MB / 378.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.2966, allocations: 260.7 kB / 378.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002882/0.2995, allocations: 1.031 MB / 379.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002095/0.3016, allocations: 1.568 MB / 381.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001944/0.3035, allocations: 1.827 MB / 383.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006517/0.3101, allocations: 5.829 MB / 389.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3101, allocations: 0 / 389.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3101, allocations: 0 / 389.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001318/0.3103, allocations: 0 / 389.1 MB, free: 6.652 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.009039/0.3193, allocations: 4.014 MB / 393.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3194, allocations: 13.42 kB / 393.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006338/0.3257, allocations: 1.78 MB / 394.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004277/0.33, allocations: 1.946 MB / 396.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.3302, allocations: 192.7 kB / 397 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005842/0.3308, allocations: 257.2 kB / 397.3 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.345, allocations: 8.428 MB / 405.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.3452, allocations: 37.16 kB / 405.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003648/0.3456, allocations: 128.6 kB / 405.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00263/0.3482, allocations: 1.693 MB / 407.6 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.3616, allocations: 7.103 MB / 414.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04213/0.4038, allocations: 34.02 MB / 448.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007338/0.4112, allocations: 3.268 MB / 452 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001888/0.4131, allocations: 1.457 MB / 453.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007471/0.4206, allocations: 4.366 MB / 457.8 MB, free: 5.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.4206, allocations: 51.06 kB / 457.8 MB, free: 5.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 5.34e-06/0.4207, allocations: 0 / 457.8 MB, free: 5.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.0292/0.4499, allocations: 11.51 MB / 469.3 MB, free: 9.906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.423e-05/0.45, allocations: 141.2 kB / 469.5 MB, free: 9.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005804/0.4558, allocations: 3.713 MB / 473.2 MB, free: 6.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003695/0.4562, allocations: 45.7 kB / 473.2 MB, free: 5.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/0.4583, allocations: 2.757 MB / 476 MB, free: 3.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007578/0.4591, allocations: 0.5156 MB / 476.5 MB, free: 2.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001524/0.4606, allocations: 1.075 MB / 477.6 MB, free: 1.629 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.693e-05/0.4607, allocations: 305.1 kB / 477.9 MB, free: 1.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002359/0.4631, allocations: 1.705 MB / 479.6 MB, free: 15.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004587/0.4677, allocations: 5.131 MB / 484.7 MB, free: 8.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008678/0.4764, allocations: 7.421 MB / 492.1 MB, free: 15.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001082/0.4765, allocations: 39.94 kB / 492.2 MB, free: 15.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01155/0.4881, allocations: 6.722 MB / 498.9 MB, free: 8.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.193e-05/0.4882, allocations: 59.94 kB / 499 MB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.4883, allocations: 124.9 kB / 499.1 MB, free: 8.715 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005874/0.4889, allocations: 320.7 kB / 499.4 MB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003861/0.4928, allocations: 1.24 MB / 0.4889 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.4955, allocations: 2.505 MB / 0.4913 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003904/0.4994, allocations: 279.5 kB / 0.4916 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006775/0.5001, allocations: 339.8 kB / 0.4919 GB, free: 3.91 MB / 414.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.002832/0.5029, allocations: 1.79 MB / 0.4937 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007627/0.5037, allocations: 308 kB / 0.494 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004734/0.5084, allocations: 2.369 MB / 0.4963 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.667e-05/0.5085, allocations: 16 kB / 0.4963 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.5085, allocations: 4 kB / 0.4963 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.5085, allocations: 3.984 kB / 0.4963 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/0.5219, allocations: 5.912 MB / 0.5021 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.5219, allocations: 4 kB / 0.5021 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000808/0.5227, allocations: 171.7 kB / 0.5023 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002094/0.5249, allocations: 0.7147 MB / 0.5029 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.525, allocations: 20 kB / 0.503 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006089/0.5311, allocations: 4.809 MB / 0.5077 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.5311, allocations: 11.97 kB / 0.5077 GB, free: 3.574 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006645/0.5378, allocations: 4.325 MB / 0.5119 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009883/0.5388, allocations: 360.9 kB / 0.5122 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/0.5391, allocations: 30.09 kB / 0.5123 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.5402, allocations: 63.86 kB / 0.5123 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.5404, allocations: 68.5 kB / 0.5124 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.5405, allocations: 39.98 kB / 0.5124 GB, free: 14.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003874/0.5444, allocations: 2.315 MB / 0.5147 GB, free: 12.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5444, allocations: 4.062 kB / 0.5147 GB, free: 12.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004539/0.5489, allocations: 0.8188 MB / 0.5155 GB, free: 11.52 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.000377/0.5493, allocations: 154.5 kB / 0.5156 GB, free: 11.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005989/0.5553, allocations: 4.042 MB / 0.5196 GB, free: 7.344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.5553, allocations: 0.625 kB / 0.5196 GB, free: 7.344 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.5568, allocations: 1.116 MB / 0.5207 GB, free: 6.211 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.5591, allocations: 386.8 kB / 0.5211 GB, free: 5.836 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1705/0.7296, allocations: 7.244 MB / 0.5281 GB, free: 148.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004056/0.7337, allocations: 2.781 MB / 0.5308 GB, free: 147.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0038/0.7375, allocations: 1.66 MB / 0.5325 GB, free: 147.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006805/0.7382, allocations: 207.5 kB / 0.5327 GB, free: 147.6 MB / 446.1 MB Notification: Performance of SimCode: time 9.91e-07/0.7382, allocations: 0 / 0.5327 GB, free: 147.6 MB / 446.1 MB Notification: Performance of Templates: time 0.04695/0.7852, allocations: 26.11 MB / 0.5582 GB, free: 135.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches