Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001833/0.001833, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009628/0.0009627, allocations: 98.94 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 50.44 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003666/0.2613, allocations: 2.479 MB / 409.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.2624, allocations: 0.606 MB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2625, allocations: 11.94 kB / 410.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.2627, allocations: 29.77 kB / 410.2 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.2629, allocations: 63.47 kB / 410.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001714/0.2631, allocations: 51.95 kB / 410.3 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000275/0.2633, allocations: 286.6 kB / 410.6 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.2636, allocations: 99.47 kB / 410.7 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.2637, allocations: 99.58 kB / 410.8 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.2638, allocations: 119.5 kB / 410.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.2639, allocations: 16 kB / 410.9 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.967e-05/0.2639, allocations: 16 kB / 410.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.257e-05/0.264, allocations: 47.84 kB / 411 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.2641, allocations: 135.3 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.2644, allocations: 276.5 kB / 411.4 MB, free: 23.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2644, allocations: 0 / 411.4 MB, free: 23.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2644, allocations: 3.938 kB / 411.4 MB, free: 23.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.2644, allocations: 0 / 411.4 MB, free: 23.5 MB / 298.7 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.0007942/0.2652, allocations: 0.5381 MB / 411.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.2653, allocations: 16.03 kB / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.504e-05/0.2653, allocations: 28.56 kB / 411.9 MB, free: 22.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.2656, allocations: 235.5 kB / 412.2 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.2656, allocations: 20.94 kB / 412.2 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.2657, allocations: 28.12 kB / 412.2 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005356/0.2662, allocations: 228.8 kB / 412.4 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.2663, allocations: 0 / 412.4 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.2663, allocations: 12 kB / 412.5 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2663, allocations: 4 kB / 412.5 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005004/0.2668, allocations: 182.1 kB / 412.6 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.2681, allocations: 0.7655 MB / 413.4 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.2686, allocations: 220 kB / 413.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002709/0.2689, allocations: 109.7 kB / 413.7 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.269, allocations: 4 kB / 413.7 MB, free: 20.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.269, allocations: 38.5 kB / 413.8 MB, free: 20.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 2.074e-06/0.269, allocations: 3.938 kB / 413.8 MB, free: 20.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001931/0.2709, allocations: 0.9619 MB / 414.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.271, allocations: 55.41 kB / 414.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.2711, allocations: 154.7 kB / 414.9 MB, free: 19.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.2711, allocations: 29.7 kB / 415 MB, free: 19.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.2712, allocations: 144.5 kB / 415.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.64e-05/0.2713, allocations: 102.5 kB / 415.2 MB, free: 19.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.277e-05/0.2714, allocations: 57.7 kB / 415.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.173e-05/0.2715, allocations: 330.8 kB / 415.6 MB, free: 18.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.2717, allocations: 75.81 kB / 415.7 MB, free: 18.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.272, allocations: 116.2 kB / 415.8 MB, free: 18.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000476/0.2724, allocations: 199.4 kB / 416 MB, free: 18.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2725, allocations: 7.938 kB / 416 MB, free: 18.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005999/0.2731, allocations: 257.3 kB / 416.2 MB, free: 18.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.2731, allocations: 10.75 kB / 416.2 MB, free: 18.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2731, allocations: 0 / 416.2 MB, free: 18.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2731, allocations: 4 kB / 416.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.2735, allocations: 79.89 kB / 416.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.2735, allocations: 0 / 416.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.2737, allocations: 19.97 kB / 416.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.2738, allocations: 8 kB / 416.3 MB, free: 18.17 MB / 298.7 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.0001231/0.2739, allocations: 145.7 kB / 416.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-05/0.274, allocations: 19.75 kB / 416.5 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.192e-05/0.274, allocations: 30.55 kB / 416.5 MB, free: 17.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2741, allocations: 4 kB / 416.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2741, allocations: 0 / 416.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.2741, allocations: 0 / 416.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.2752, allocations: 0.6496 MB / 417.2 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2752, allocations: 3.984 kB / 417.2 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.2756, allocations: 71.91 kB / 417.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.2756, allocations: 4 kB / 417.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.2757, allocations: 4 kB / 417.3 MB, free: 17.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.2757, allocations: 7.938 kB / 417.3 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2757, allocations: 7.922 kB / 417.3 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003434/0.2791, allocations: 2.144 MB / 419.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.981e-05/0.2792, allocations: 88.92 kB / 419.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.2792, allocations: 12.06 kB / 419.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.2795, allocations: 11.98 kB / 419.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.246e-05/0.2795, allocations: 19.92 kB / 419.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.2796, allocations: 8 kB / 419.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.165e-05/0.2797, allocations: 115.2 kB / 419.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2797, allocations: 4 kB / 419.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006906/0.2804, allocations: 84 kB / 419.8 MB, free: 14.52 MB / 298.7 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.0001/0.2805, allocations: 107.2 kB / 419.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000528/0.281, allocations: 203.7 kB / 420.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.281, allocations: 0 / 420.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.2813, allocations: 108.1 kB / 420.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006553/0.282, allocations: 39.97 kB / 420.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001741/0.2837, allocations: 1.114 MB / 421.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.2839, allocations: 0.7525 MB / 422.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.2841, allocations: 29.92 kB / 422.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.013e-05/0.2841, allocations: 27.38 kB / 422.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2842, allocations: 0 / 422.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of Templates: time 0.006387/0.2905, allocations: 2.455 MB / 424.6 MB, free: 9.633 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches