Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.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.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.952/1.952, allocations: 205.2 MB / 219.8 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.001177/0.001177, allocations: 94.62 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.168e-05/3.169e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1245, allocations: 47.57 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3776/0.5022, allocations: 77.17 MB / 447.2 MB, free: 84 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.5024, allocations: 67.75 kB / 447.3 MB, free: 52 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007371/0.5098, allocations: 2.58 MB / 449.8 MB, free: 13.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5099, allocations: 192 / 449.8 MB, free: 13.85 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.5099, allocations: 4 kB / 449.8 MB, free: 13.84 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0004938/0.5104, allocations: 412.7 kB / 450.2 MB, free: 13.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.5104, allocations: 8.031 kB / 450.3 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/0.5105, allocations: 19.8 kB / 450.3 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.5107, allocations: 192.8 kB / 450.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.5108, allocations: 18.81 kB / 450.5 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.5108, allocations: 23.08 kB / 450.5 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.5111, allocations: 132 kB / 450.6 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.5111, allocations: 3.906 kB / 450.6 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.5111, allocations: 10.72 kB / 450.6 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.5112, allocations: 4 kB / 450.7 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.5113, allocations: 82.86 kB / 450.7 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009191/0.5123, allocations: 0.5336 MB / 451.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.5124, allocations: 76.44 kB / 451.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.115e-05/0.5125, allocations: 27.67 kB / 451.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.5125, allocations: 0 / 451.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.5126, allocations: 30.56 kB / 451.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.5126, allocations: 0 / 451.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.001012/0.5136, allocations: 0.5555 MB / 452 MB, free: 11.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.5136, allocations: 55.41 kB / 452 MB, free: 11.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.5138, allocations: 112.9 kB / 452.1 MB, free: 11.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.5138, allocations: 28.83 kB / 452.1 MB, free: 11.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/0.5139, allocations: 138 kB / 452.3 MB, free: 11.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.127e-05/0.5139, allocations: 37.89 kB / 452.3 MB, free: 11.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-06/0.514, allocations: 7.375 kB / 452.3 MB, free: 11.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.5141, allocations: 321.5 kB / 452.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.36e-05/0.5142, allocations: 29.88 kB / 452.7 MB, free: 11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.5143, allocations: 80.97 kB / 452.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.99e-05/0.5144, allocations: 41.92 kB / 452.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.5144, allocations: 0 / 452.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002198/0.5146, allocations: 141.9 kB / 452.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5147, allocations: 8 kB / 452.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.5147, allocations: 0 / 452.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.5147, allocations: 4 kB / 452.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.5149, allocations: 46.81 kB / 453 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.5149, allocations: 7.984 kB / 453 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.199e-05/0.515, allocations: 7.25 kB / 453 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.515, allocations: 8 kB / 453 MB, free: 10.69 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 9.769e-05/0.5151, allocations: 104.5 kB / 453.1 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.5151, allocations: 15.84 kB / 453.1 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.364e-05/0.5152, allocations: 13.19 kB / 453.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.5152, allocations: 0 / 453.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.5152, allocations: 7.953 kB / 453.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.5152, allocations: 8.266 kB / 453.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005406/0.5158, allocations: 440.1 kB / 453.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.5158, allocations: 0 / 453.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.516, allocations: 27.98 kB / 453.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.516, allocations: 4.016 kB / 453.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.516, allocations: 7.312 kB / 453.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.516, allocations: 4 kB / 453.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.516, allocations: 0 / 453.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003482/0.5164, allocations: 261 kB / 453.9 MB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.978e-05/0.5165, allocations: 85.02 kB / 454 MB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.5165, allocations: 7.625 kB / 454 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.461e-05/0.5166, allocations: 7.984 kB / 454 MB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.5166, allocations: 4 kB / 454 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.5166, allocations: 3.984 kB / 454 MB, free: 9.684 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.647e-05/0.5167, allocations: 99.03 kB / 454.1 MB, free: 9.594 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5167, allocations: 4 kB / 454.1 MB, free: 9.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002473/0.517, allocations: 23.69 kB / 454.1 MB, free: 9.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001494/0.5171, allocations: 106.8 kB / 454.2 MB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000164/0.5173, allocations: 82.17 kB / 454.3 MB, free: 9.398 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5173, allocations: 3.938 kB / 454.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.818e-05/0.5174, allocations: 35.19 kB / 454.3 MB, free: 9.367 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.5176, allocations: 15.69 kB / 454.3 MB, free: 9.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006409/0.5183, allocations: 303.5 kB / 454.6 MB, free: 9.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.5186, allocations: 0.7199 MB / 455.4 MB, free: 8.305 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.497e-05/0.5187, allocations: 4.891 kB / 455.4 MB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.5187, allocations: 15.44 kB / 455.4 MB, free: 8.277 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5187, allocations: 0 / 455.4 MB, free: 8.277 MB / 330.7 MB Notification: Performance of Templates: time 0.003173/0.5219, allocations: 0.7969 MB / 456.2 MB, free: 7.492 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches