Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002127/0.002127, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002369/0.002369, allocations: 190.8 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 39.94 kB / 370.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2698, allocations: 52.19 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003866/0.2737, allocations: 2.313 MB / 425.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.2747, allocations: 0.5571 MB / 425.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.2748, allocations: 4 kB / 425.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.275, allocations: 39.59 kB / 426 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.2752, allocations: 79.27 kB / 426 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.2753, allocations: 63.92 kB / 426.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003468/0.2757, allocations: 294.6 kB / 426.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.2759, allocations: 71.36 kB / 426.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.276, allocations: 115.6 kB / 426.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.2762, allocations: 111.4 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.127e-05/0.2763, allocations: 20 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.74e-05/0.2763, allocations: 24 kB / 426.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.739e-05/0.2764, allocations: 55.78 kB / 426.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.2765, allocations: 115.5 kB / 426.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003776/0.2769, allocations: 301 kB / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2769, allocations: 4 kB / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2769, allocations: 0 / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.2769, allocations: 4 kB / 427.2 MB, free: 10.34 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008382/0.2777, allocations: 477.8 kB / 427.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2778, allocations: 8.031 kB / 427.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.313e-05/0.2778, allocations: 32.69 kB / 427.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003422/0.2782, allocations: 190.7 kB / 427.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.2782, allocations: 20.97 kB / 427.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.903e-05/0.2782, allocations: 28.12 kB / 427.9 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.2787, allocations: 226.1 kB / 428.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.2787, allocations: 4 kB / 428.2 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.2788, allocations: 11.94 kB / 428.2 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.2788, allocations: 8 kB / 428.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004115/0.2792, allocations: 174.5 kB / 428.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.2804, allocations: 0.59 MB / 428.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.2809, allocations: 202.5 kB / 429.1 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.2811, allocations: 104 kB / 429.2 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.2811, allocations: 11.92 kB / 429.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.2812, allocations: 38.55 kB / 429.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 2.274e-06/0.2812, allocations: 0 / 429.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001788/0.283, allocations: 0.8065 MB / 430.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.283, allocations: 55.41 kB / 430.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.2832, allocations: 149.7 kB / 430.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.2832, allocations: 29.7 kB / 430.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.2833, allocations: 144.8 kB / 430.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.125e-05/0.2834, allocations: 111 kB / 430.6 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.2835, allocations: 49.7 kB / 430.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.2836, allocations: 326.8 kB / 430.9 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.2838, allocations: 75.95 kB / 431 MB, free: 6.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.2841, allocations: 120 kB / 431.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.2845, allocations: 211.2 kB / 431.3 MB, free: 5.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.2845, allocations: 0 / 431.3 MB, free: 5.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005136/0.285, allocations: 269.3 kB / 431.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.285, allocations: 4 kB / 431.6 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.285, allocations: 4 kB / 431.6 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.2851, allocations: 0 / 431.6 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002912/0.2853, allocations: 79.98 kB / 431.7 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.2854, allocations: 3.984 kB / 431.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.2855, allocations: 15.98 kB / 431.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.2855, allocations: 16 kB / 431.7 MB, free: 5.57 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.2856, allocations: 138.2 kB / 431.9 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.391e-05/0.2857, allocations: 15.91 kB / 431.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.161e-05/0.2858, allocations: 25.97 kB / 431.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.2858, allocations: 4 kB / 431.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.2858, allocations: 3.984 kB / 431.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.2858, allocations: 4 kB / 431.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009629/0.2867, allocations: 0.5585 MB / 432.5 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2867, allocations: 3.938 kB / 432.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.2871, allocations: 75.95 kB / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2871, allocations: 0 / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.2871, allocations: 8 kB / 432.6 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2871, allocations: 4 kB / 432.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2871, allocations: 4 kB / 432.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007749/0.2879, allocations: 443.2 kB / 433 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.826e-05/0.2879, allocations: 15.89 kB / 433 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/0.2879, allocations: 8.062 kB / 433 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.2881, allocations: 8 kB / 433 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.304e-05/0.2881, allocations: 23.89 kB / 433.1 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.2882, allocations: 15.94 kB / 433.1 MB, free: 4.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.279e-05/0.2882, allocations: 107.3 kB / 433.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2882, allocations: 0 / 433.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003096/0.2886, allocations: 60 kB / 433.2 MB, free: 3.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001194/0.2887, allocations: 103.2 kB / 433.3 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004637/0.2891, allocations: 191.8 kB / 433.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2891, allocations: 0 / 433.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002099/0.2894, allocations: 104 kB / 433.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.2898, allocations: 35.98 kB / 433.7 MB, free: 3.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.2912, allocations: 0.8123 MB / 434.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001565/0.2914, allocations: 146.5 kB / 434.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.387e-05/0.2914, allocations: 13.95 kB / 434.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.355e-05/0.2915, allocations: 19.44 kB / 434.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2915, allocations: 0 / 434.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of Templates: time 0.006192/0.2977, allocations: 2.421 MB / 437.1 MB, free: 128 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.585670771077275]