Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001242, allocations: 197.5 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 244.7 MB, free: 6.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008345/0.0008344, allocations: 101 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002437, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1996, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02029/0.2199, allocations: 31.39 MB / 439.4 MB, free: 12.21 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01374/0.2337, allocations: 7.458 MB / 446.9 MB, free: 4.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003867/0.2376, allocations: 151.6 kB / 447 MB, free: 4.602 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003243/0.2409, allocations: 1.571 MB / 448.6 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01076/0.2517, allocations: 4.86 MB / 453.5 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.2539, allocations: 0.546 MB / 454 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00483/0.2588, allocations: 3.869 MB / 457.9 MB, free: 9.719 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00421/0.263, allocations: 3.178 MB / 461.1 MB, free: 6.469 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.2647, allocations: 1.039 MB / 462.1 MB, free: 5.426 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/0.2668, allocations: 1.596 MB / 463.7 MB, free: 3.824 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003765/0.2672, allocations: 116 kB / 463.8 MB, free: 3.711 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.2689, allocations: 0.9243 MB / 464.7 MB, free: 2.785 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.2703, allocations: 1.395 MB / 466.1 MB, free: 1.387 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.2718, allocations: 1.578 MB / 467.7 MB, free: 15.79 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004214/0.276, allocations: 4.42 MB / 472.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.276, allocations: 0 / 472.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.276, allocations: 0 / 472.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001297/0.2762, allocations: 4 kB / 472.1 MB, free: 11.36 MB / 346.7 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.00578/0.282, allocations: 3.316 MB / 475.5 MB, free: 7.977 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.282, allocations: 12.03 kB / 475.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005807/0.2878, allocations: 1.821 MB / 477.3 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/0.2912, allocations: 1.888 MB / 479.2 MB, free: 4.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.2913, allocations: 188.8 kB / 479.4 MB, free: 4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004734/0.2918, allocations: 255.8 kB / 479.6 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.3045, allocations: 8.415 MB / 488 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.449e-05/0.3046, allocations: 43.58 kB / 488.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003343/0.3049, allocations: 131.9 kB / 488.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00262/0.3076, allocations: 1.695 MB / 489.9 MB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01277/0.3204, allocations: 7.071 MB / 497 MB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2048/0.5252, allocations: 34.14 MB / 0.5186 GB, free: 69.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006273/0.5315, allocations: 3.275 MB / 0.5218 GB, free: 68.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.533, allocations: 1.462 MB / 0.5233 GB, free: 68.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004969/0.538, allocations: 4.355 MB / 0.5275 GB, free: 65.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.5381, allocations: 49.47 kB / 0.5276 GB, free: 65.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 4.298e-06/0.5381, allocations: 3.5 kB / 0.5276 GB, free: 65.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.02376/0.5618, allocations: 11.47 MB / 0.5388 GB, free: 57.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.5619, allocations: 144.6 kB / 0.5389 GB, free: 57.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00381/0.5657, allocations: 3.696 MB / 0.5425 GB, free: 53.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001482/0.5659, allocations: 46.88 kB / 0.5426 GB, free: 53.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.567, allocations: 2.749 MB / 0.5453 GB, free: 50.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003422/0.5674, allocations: 0.5146 MB / 0.5458 GB, free: 50.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.5675, allocations: 109.4 kB / 0.5459 GB, free: 50.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.5677, allocations: 0.5292 MB / 0.5464 GB, free: 49.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/0.5697, allocations: 1.681 MB / 0.548 GB, free: 48.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/0.5726, allocations: 5.109 MB / 0.553 GB, free: 41.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005528/0.5782, allocations: 7.395 MB / 0.5602 GB, free: 32.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.665e-05/0.5782, allocations: 32 kB / 0.5603 GB, free: 32.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.00857/0.5868, allocations: 6.687 MB / 0.5668 GB, free: 25.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.059e-05/0.5869, allocations: 56 kB / 0.5668 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-05/0.587, allocations: 124 kB / 0.567 GB, free: 25.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005036/0.5875, allocations: 321.4 kB / 0.5673 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003148/0.5907, allocations: 1.244 MB / 0.5685 GB, free: 23.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.5926, allocations: 2.293 MB / 0.5707 GB, free: 21.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003017/0.5956, allocations: 283.5 kB / 0.571 GB, free: 21.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003516/0.5959, allocations: 341.2 kB / 0.5713 GB, free: 20.73 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002016/0.598, allocations: 1.783 MB / 0.5731 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/0.5983, allocations: 304.1 kB / 0.5733 GB, free: 18.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003844/0.6022, allocations: 2.363 MB / 0.5757 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/0.6022, allocations: 22.89 kB / 0.5757 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.6022, allocations: 4 kB / 0.5757 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.6023, allocations: 3.984 kB / 0.5757 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008746/0.611, allocations: 5.934 MB / 0.5815 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.611, allocations: 0 / 0.5815 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007183/0.6118, allocations: 175.8 kB / 0.5816 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00187/0.6136, allocations: 0.7069 MB / 0.5823 GB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.339e-05/0.6137, allocations: 23.98 kB / 0.5824 GB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004452/0.6182, allocations: 4.468 MB / 0.5867 GB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6182, allocations: 3.938 kB / 0.5867 GB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00534/0.6236, allocations: 4.313 MB / 0.5909 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006587/0.6243, allocations: 372.9 kB / 0.5913 GB, free: 24 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/0.6245, allocations: 20.69 kB / 0.5913 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009702/0.6255, allocations: 68.61 kB / 0.5914 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.6257, allocations: 68.5 kB / 0.5914 GB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.125e-05/0.6258, allocations: 36.92 kB / 0.5915 GB, free: 15.84 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003464/0.6293, allocations: 2.299 MB / 0.5937 GB, free: 13.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6293, allocations: 0 / 0.5937 GB, free: 13.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004096/0.6334, allocations: 0.8197 MB / 0.5945 GB, free: 12.73 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003732/0.6338, allocations: 159.1 kB / 0.5947 GB, free: 12.58 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00605/0.6398, allocations: 4.007 MB / 0.5986 GB, free: 8.586 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.6399, allocations: 0 / 0.5986 GB, free: 8.586 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.6414, allocations: 1.107 MB / 0.5997 GB, free: 7.465 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002411/0.6438, allocations: 370.6 kB / 0.6 GB, free: 7.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.6553, allocations: 9.018 MB / 0.6088 GB, free: 14.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/0.6579, allocations: 2.781 MB / 0.6116 GB, free: 11.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007841/0.6587, allocations: 259.4 kB / 0.6118 GB, free: 10.99 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6587, allocations: 0 / 0.6118 GB, free: 10.99 MB / 410.7 MB Notification: Performance of Templates: time 0.2368/0.8955, allocations: 63.31 MB / 0.6736 GB, free: 153.9 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches