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.001077/0.001077, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 60.62 kB / 306.4 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09921/0.1004, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1839/0.2844, allocations: 34.46 MB / 391.4 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01663/0.301, allocations: 7.725 MB / 399.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006144/0.3072, allocations: 146.5 kB / 399.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003789/0.3111, allocations: 1.854 MB / 401.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004047/0.3151, allocations: 1.522 MB / 402.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.3166, allocations: 0.5669 MB / 403.3 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004498/0.3212, allocations: 3.395 MB / 406.6 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003508/0.3247, allocations: 2.719 MB / 409.4 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.3269, allocations: 1.256 MB / 410.6 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002902/0.3298, allocations: 1.866 MB / 412.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008274/0.3306, allocations: 252 kB / 412.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002556/0.3332, allocations: 1.026 MB / 413.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00215/0.3354, allocations: 1.57 MB / 415.3 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00297/0.3384, allocations: 1.833 MB / 417.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00753/0.3459, allocations: 5.627 MB / 422.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3459, allocations: 0 / 422.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.346, allocations: 4 kB / 422.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000252/0.3462, allocations: 0 / 422.8 MB, free: 9.605 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.008919/0.3551, allocations: 3.987 MB / 426.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3552, allocations: 12.03 kB / 426.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006406/0.3616, allocations: 1.77 MB / 428.6 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003957/0.3656, allocations: 1.877 MB / 430.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/0.3659, allocations: 192.8 kB / 430.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009057/0.3668, allocations: 259.7 kB / 430.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/0.3816, allocations: 8.447 MB / 439.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000121/0.3817, allocations: 39.59 kB / 439.4 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006013/0.3823, allocations: 123.9 kB / 439.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002759/0.3851, allocations: 1.695 MB / 441.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01337/0.3985, allocations: 7.114 MB / 448.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0403/0.4388, allocations: 34.15 MB / 482.5 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007408/0.4463, allocations: 3.283 MB / 485.7 MB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001933/0.4482, allocations: 1.469 MB / 487.2 MB, free: 7.227 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0069/0.4552, allocations: 4.448 MB / 491.7 MB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.4552, allocations: 51.11 kB / 491.7 MB, free: 2.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.829e-06/0.4552, allocations: 3.938 kB / 491.7 MB, free: 2.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.0293/0.4846, allocations: 11.54 MB / 0.4915 GB, free: 6.797 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.916e-05/0.4847, allocations: 153.1 kB / 0.4916 GB, free: 6.617 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005644/0.4903, allocations: 3.705 MB / 0.4952 GB, free: 2.918 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.4905, allocations: 45.69 kB / 0.4953 GB, free: 2.867 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001858/0.4923, allocations: 2.752 MB / 0.4979 GB, free: 76 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005214/0.4929, allocations: 0.5134 MB / 0.4985 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001414/0.4943, allocations: 1.079 MB / 0.4995 GB, free: 14.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.141e-05/0.4944, allocations: 309 kB / 0.4998 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/0.4968, allocations: 1.709 MB / 0.5015 GB, free: 12.44 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004524/0.5014, allocations: 5.135 MB / 0.5065 GB, free: 5.578 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007679/0.5091, allocations: 7.428 MB / 0.5137 GB, free: 12.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.984e-05/0.5092, allocations: 32 kB / 0.5138 GB, free: 12.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01029/0.5195, allocations: 6.722 MB / 0.5203 GB, free: 5.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.947e-05/0.5196, allocations: 62.28 kB / 0.5204 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.5197, allocations: 124 kB / 0.5205 GB, free: 5.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006113/0.5203, allocations: 317.5 kB / 0.5208 GB, free: 5.188 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/0.5238, allocations: 1.248 MB / 0.522 GB, free: 3.938 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/0.5263, allocations: 2.5 MB / 0.5245 GB, free: 1.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003147/0.5294, allocations: 287.5 kB / 0.5247 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003875/0.5298, allocations: 328 kB / 0.5251 GB, free: 0.6914 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.1849/0.7147, allocations: 1.787 MB / 0.5268 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007575/0.7155, allocations: 312.3 kB / 0.5271 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005582/0.7211, allocations: 2.367 MB / 0.5294 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.766e-05/0.7212, allocations: 14.69 kB / 0.5294 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.7212, allocations: 5.562 kB / 0.5294 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.282e-05/0.7212, allocations: 6.609 kB / 0.5294 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.7326, allocations: 5.932 MB / 0.5352 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.7327, allocations: 1.406 kB / 0.5352 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008322/0.7335, allocations: 173.9 kB / 0.5354 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002118/0.7356, allocations: 0.7191 MB / 0.5361 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.7358, allocations: 24.69 kB / 0.5361 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00526/0.741, allocations: 4.81 MB / 0.5408 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7411, allocations: 1.531 kB / 0.5408 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005984/0.7471, allocations: 4.334 MB / 0.5451 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008207/0.7479, allocations: 366 kB / 0.5454 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003285/0.7483, allocations: 30.86 kB / 0.5454 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009998/0.7493, allocations: 64.44 kB / 0.5455 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.7495, allocations: 68.83 kB / 0.5456 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.801e-05/0.7496, allocations: 41.06 kB / 0.5456 GB, free: 109.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002979/0.7526, allocations: 2.317 MB / 0.5479 GB, free: 108.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.062e-06/0.7526, allocations: 0 / 0.5479 GB, free: 108.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004106/0.7567, allocations: 0.8018 MB / 0.5486 GB, free: 108.4 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.0004005/0.7571, allocations: 154 kB / 0.5488 GB, free: 108.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005822/0.763, allocations: 4.428 MB / 0.5531 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.763, allocations: 0 / 0.5531 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.7642, allocations: 1.115 MB / 0.5542 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/0.7668, allocations: 391.4 kB / 0.5546 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.7776, allocations: 8.932 MB / 0.5633 GB, free: 99 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002229/0.7799, allocations: 2.784 MB / 0.566 GB, free: 96.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003698/0.7836, allocations: 1.652 MB / 0.5676 GB, free: 94.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007222/0.7843, allocations: 215.4 kB / 0.5678 GB, free: 94.34 MB / 446.1 MB Notification: Performance of SimCode: time 1.103e-06/0.7843, allocations: 0 / 0.5678 GB, free: 94.34 MB / 446.1 MB Notification: Performance of Templates: time 0.04996/0.8343, allocations: 30.82 MB / 0.5979 GB, free: 63.76 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/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