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) 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.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 107.3 kB / 17.74 MB, free: 5.359 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.001279/0.001279, allocations: 192 kB / 18.67 MB, free: 4.434 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.323/1.323, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 51.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2661, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004117/0.2703, allocations: 2.428 MB / 403.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.2717, allocations: 0.5765 MB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.2719, allocations: 7.938 kB / 404.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.2722, allocations: 39.59 kB / 404.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003068/0.2725, allocations: 79.25 kB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002343/0.2728, allocations: 59.92 kB / 404.6 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.2732, allocations: 294.6 kB / 404.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002579/0.2735, allocations: 107.5 kB / 405 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.2737, allocations: 115.6 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.2739, allocations: 123.5 kB / 405.2 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.763e-05/0.274, allocations: 24 kB / 405.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.467e-05/0.274, allocations: 24 kB / 405.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.707e-05/0.2741, allocations: 51.84 kB / 405.3 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.2743, allocations: 139.3 kB / 405.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000382/0.2747, allocations: 292.1 kB / 405.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2747, allocations: 4 kB / 405.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.2747, allocations: 4 kB / 405.7 MB, free: 4.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.2747, allocations: 0 / 405.7 MB, free: 4.52 MB / 318.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.000866/0.2756, allocations: 0.5372 MB / 406.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.2756, allocations: 15.97 kB / 406.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.519e-05/0.2757, allocations: 28.59 kB / 406.3 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/0.276, allocations: 246 kB / 406.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.276, allocations: 16.94 kB / 406.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.204e-05/0.2761, allocations: 36.03 kB / 406.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004436/0.2765, allocations: 220.9 kB / 406.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.2766, allocations: 7.984 kB / 406.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.2766, allocations: 11.98 kB / 406.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.2766, allocations: 8 kB / 406.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.277, allocations: 174.1 kB / 407 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.2782, allocations: 0.7577 MB / 407.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004585/0.2787, allocations: 210.5 kB / 408 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.2789, allocations: 120.8 kB / 408.1 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.2789, allocations: 0 / 408.1 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.279, allocations: 38.56 kB / 408.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.102e-06/0.279, allocations: 0 / 408.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001659/0.2806, allocations: 0.955 MB / 409.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.2807, allocations: 51.41 kB / 409.1 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.2808, allocations: 154.7 kB / 409.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.2809, allocations: 29.7 kB / 409.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.891e-05/0.281, allocations: 164.4 kB / 409.5 MB, free: 492 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.719e-05/0.281, allocations: 98.55 kB / 409.6 MB, free: 392 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-05/0.2811, allocations: 49.7 kB / 409.6 MB, free: 336 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.2813, allocations: 330.8 kB / 410 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.2815, allocations: 75.91 kB / 410 MB, free: 15.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.2817, allocations: 119.1 kB / 410.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003541/0.282, allocations: 203.3 kB / 410.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.282, allocations: 0 / 410.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004835/0.2825, allocations: 269.4 kB / 410.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.2826, allocations: 8 kB / 410.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2826, allocations: 0 / 410.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.2826, allocations: 4 kB / 410.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.2829, allocations: 71.91 kB / 410.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.2829, allocations: 7.984 kB / 410.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.283, allocations: 11.94 kB / 410.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.283, allocations: 8 kB / 410.7 MB, free: 15.2 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.0001332/0.2832, allocations: 153.7 kB / 410.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/0.2832, allocations: 23.7 kB / 410.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.356e-05/0.2833, allocations: 26.56 kB / 410.9 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2833, allocations: 0 / 410.9 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.2833, allocations: 7.938 kB / 410.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.2833, allocations: 0 / 410.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009563/0.2843, allocations: 0.6539 MB / 411.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2843, allocations: 4 kB / 411.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.2846, allocations: 75.89 kB / 411.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.2847, allocations: 0 / 411.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.2847, allocations: 8 kB / 411.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2847, allocations: 3.938 kB / 411.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.2847, allocations: 4 kB / 411.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000695/0.2854, allocations: 439.8 kB / 412.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.379e-05/0.2855, allocations: 92.91 kB / 412.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.2855, allocations: 8.062 kB / 412.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.2857, allocations: 11.94 kB / 412.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.112e-05/0.2857, allocations: 23.97 kB / 412.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.2858, allocations: 8 kB / 412.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.607e-05/0.2859, allocations: 119.5 kB / 412.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2859, allocations: 4 kB / 412.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.2862, allocations: 56 kB / 412.4 MB, free: 13.39 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.0001315/0.2863, allocations: 103.7 kB / 412.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004514/0.2868, allocations: 199.8 kB / 412.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2868, allocations: 0 / 412.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.287, allocations: 107.8 kB / 412.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004255/0.2874, allocations: 42.62 kB / 412.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.2889, allocations: 0.8414 MB / 413.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.2893, allocations: 0.7561 MB / 414.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.355e-05/0.2894, allocations: 27.44 kB / 414.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2894, allocations: 0 / 414.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of Templates: time 0.005792/0.2952, allocations: 2.817 MB / 417.3 MB, free: 8.426 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches