Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001513/0.001513, allocations: 180.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.042/2.042, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 98.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.109e-05, allocations: 8 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09755, allocations: 47.56 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3952/0.4928, allocations: 77.84 MB / 446.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4931, allocations: 72.47 kB / 447 MB, free: 15.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01829/0.5114, allocations: 4.331 MB / 451.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.5115, allocations: 0 / 451.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.09e-05/0.5115, allocations: 8 kB / 451.3 MB, free: 11.68 MB / 330.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.0009156/0.5124, allocations: 489.8 kB / 451.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.5125, allocations: 12.03 kB / 451.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/0.5126, allocations: 32.33 kB / 451.9 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.5129, allocations: 236.1 kB / 452.1 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.513, allocations: 18.88 kB / 452.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-05/0.5131, allocations: 30.61 kB / 452.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005261/0.5136, allocations: 200.6 kB / 452.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.5136, allocations: 0 / 452.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.5137, allocations: 15.06 kB / 452.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.5137, allocations: 10.19 kB / 452.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004155/0.5141, allocations: 145.8 kB / 452.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.5157, allocations: 0.7552 MB / 453.3 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005734/0.5163, allocations: 205.7 kB / 453.5 MB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.5166, allocations: 99.66 kB / 453.6 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.5166, allocations: 11.89 kB / 453.6 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.5167, allocations: 37.94 kB / 453.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.906e-06/0.5167, allocations: 0 / 453.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.001738/0.5184, allocations: 0.8216 MB / 454.4 MB, free: 8.875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.5185, allocations: 59.34 kB / 454.5 MB, free: 8.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.5187, allocations: 139.8 kB / 454.6 MB, free: 8.672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.5187, allocations: 33.2 kB / 454.6 MB, free: 8.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.5189, allocations: 207.3 kB / 454.9 MB, free: 8.445 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/0.519, allocations: 99.69 kB / 454.9 MB, free: 8.363 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.746e-05/0.519, allocations: 7.75 kB / 455 MB, free: 8.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5192, allocations: 318 kB / 455.3 MB, free: 8.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.5194, allocations: 61.88 kB / 455.3 MB, free: 8.004 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.5196, allocations: 108.6 kB / 455.4 MB, free: 7.914 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.5198, allocations: 73.48 kB / 455.5 MB, free: 7.867 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.5198, allocations: 0 / 455.5 MB, free: 7.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005349/0.5204, allocations: 233.9 kB / 455.7 MB, free: 7.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.5204, allocations: 7.984 kB / 455.7 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.5204, allocations: 0 / 455.7 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.5204, allocations: 4 kB / 455.7 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005531/0.521, allocations: 79.44 kB / 455.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.521, allocations: 0 / 455.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.5213, allocations: 19.11 kB / 455.8 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.5213, allocations: 7.438 kB / 455.8 MB, free: 7.578 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.5214, allocations: 115.7 kB / 456 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.068e-05/0.5215, allocations: 19.77 kB / 456 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.983e-05/0.5216, allocations: 35.11 kB / 456 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.5216, allocations: 7.984 kB / 456 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5216, allocations: 0 / 456 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.5216, allocations: 3.938 kB / 456 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.5229, allocations: 0.6352 MB / 456.7 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5229, allocations: 0 / 456.7 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006591/0.5236, allocations: 72.03 kB / 456.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-06/0.5236, allocations: 4 kB / 456.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.5236, allocations: 6.5 kB / 456.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.722e-06/0.5236, allocations: 4 kB / 456.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.5236, allocations: 7.922 kB / 456.8 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007511/0.5244, allocations: 427.9 kB / 457.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.026e-05/0.5245, allocations: 92.92 kB / 457.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.413e-05/0.5246, allocations: 7.859 kB / 457.3 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.5248, allocations: 11.31 kB / 457.3 MB, free: 6.262 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.215e-05/0.5249, allocations: 19.78 kB / 457.3 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.948e-05/0.5249, allocations: 15.95 kB / 457.3 MB, free: 6.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001156/0.5251, allocations: 118.8 kB / 457.4 MB, free: 6.125 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.738e-06/0.5251, allocations: 0 / 457.4 MB, free: 6.125 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004248/0.5255, allocations: 63.5 kB / 457.5 MB, free: 6.07 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001559/0.5257, allocations: 99.12 kB / 457.6 MB, free: 5.965 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004552/0.5261, allocations: 181.9 kB / 457.8 MB, free: 5.836 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.5262, allocations: 0 / 457.8 MB, free: 5.836 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.5264, allocations: 100.4 kB / 457.9 MB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.5268, allocations: 33.3 kB / 457.9 MB, free: 5.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.5286, allocations: 0.7032 MB / 458.6 MB, free: 5.043 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.5291, allocations: 0.76 MB / 459.4 MB, free: 4.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.5292, allocations: 23.44 kB / 459.4 MB, free: 4.23 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5292, allocations: 3.938 kB / 459.4 MB, free: 4.227 MB / 330.7 MB Notification: Performance of Templates: time 0.006731/0.5359, allocations: 2.688 MB / 462.1 MB, free: 1.57 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches