Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 88.2 kB / 20.94 MB, free: 3.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 169 kB / 24.24 MB, free: 312 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9981/0.9981, allocations: 158.6 MB / 186 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1313/0.1313, allocations: 32.37 MB / 270.7 MB, free: 14.77 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 347.6 MB, free: 9.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.514e-05/1.663e-05, allocations: 10.25 kB / 347.7 MB, free: 9.781 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001871/0.001888, allocations: 2.179 MB / 349.8 MB, free: 7.598 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008056/0.002693, allocations: 0.8032 MB / 350.6 MB, free: 6.785 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.002801, allocations: 7.938 kB / 350.6 MB, free: 6.777 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.002911, allocations: 35.53 kB / 350.7 MB, free: 6.742 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.003075, allocations: 71.38 kB / 350.8 MB, free: 6.672 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001976/0.003273, allocations: 151.6 kB / 350.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.003472, allocations: 354.9 kB / 351.2 MB, free: 6.176 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.00363, allocations: 88.83 kB / 351.3 MB, free: 6.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.003778, allocations: 199.6 kB / 351.5 MB, free: 5.895 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.003899, allocations: 111.6 kB / 351.6 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.003935, allocations: 36 kB / 351.7 MB, free: 5.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.546e-05/0.00396, allocations: 32 kB / 351.7 MB, free: 5.719 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.285e-05/0.004013, allocations: 91.66 kB / 351.8 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.906e-05/0.004082, allocations: 95.73 kB / 351.9 MB, free: 5.535 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001863/0.004269, allocations: 251 kB / 352.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.004271, allocations: 0 / 352.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.004271, allocations: 0 / 352.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.004275, allocations: 0 / 352.1 MB, free: 5.289 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0006342/0.00491, allocations: 0.7856 MB / 352.9 MB, free: 4.445 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.004939, allocations: 12.03 kB / 352.9 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.00501, allocations: 52.75 kB / 353 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.005263, allocations: 279.9 kB / 353.3 MB, free: 4.082 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.005285, allocations: 20.88 kB / 353.3 MB, free: 4.062 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.283e-05/0.005318, allocations: 28.38 kB / 353.3 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.00555, allocations: 205.3 kB / 353.5 MB, free: 3.828 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.005562, allocations: 192 / 353.5 MB, free: 3.828 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.005582, allocations: 16.12 kB / 353.5 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.005589, allocations: 4 kB / 353.5 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.005716, allocations: 86.92 kB / 353.6 MB, free: 3.719 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006349/0.006351, allocations: 0.6665 MB / 354.3 MB, free: 3.016 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.006553, allocations: 159.2 kB / 354.4 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.771e-05/0.00662, allocations: 51.66 kB / 354.5 MB, free: 2.793 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.006641, allocations: 7.984 kB / 354.5 MB, free: 2.785 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.006812, allocations: 176.8 kB / 354.7 MB, free: 2.598 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.006813, allocations: 4 kB / 354.7 MB, free: 2.594 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003372/0.007151, allocations: 257.4 kB / 354.9 MB, free: 2.336 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.007176, allocations: 63.39 kB / 355 MB, free: 2.262 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.007295, allocations: 284.2 kB / 355.3 MB, free: 1.965 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.007312, allocations: 49.56 kB / 355.3 MB, free: 1.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.369e-05/0.007366, allocations: 207.5 kB / 355.5 MB, free: 1.703 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.007409, allocations: 103.1 kB / 355.6 MB, free: 1.602 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.007472, allocations: 83.7 kB / 355.7 MB, free: 1.508 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.169e-05/0.007524, allocations: 0.5079 MB / 356.2 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.074e-05/0.007584, allocations: 40.72 kB / 356.2 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.007686, allocations: 242.9 kB / 356.5 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.007876, allocations: 309.4 kB / 356.8 MB, free: 248 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.007879, allocations: 0 / 356.8 MB, free: 248 kB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002837/0.008163, allocations: 301.4 kB / 357.1 MB, free: 15.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.008177, allocations: 11.98 kB / 357.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.008183, allocations: 4 kB / 357.1 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.008199, allocations: 8 kB / 357.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.008374, allocations: 75.84 kB / 357.2 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.008383, allocations: 11.92 kB / 357.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.255e-05/0.008475, allocations: 35.78 kB / 357.2 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.008492, allocations: 16 kB / 357.2 MB, free: 15.78 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001054/0.008597, allocations: 196.4 kB / 357.4 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.008634, allocations: 35.86 kB / 357.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.008929, allocations: 239.5 kB / 357.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.008933, allocations: 4 kB / 357.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.008936, allocations: 0 / 357.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.008941, allocations: 3.938 kB / 357.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004225/0.009363, allocations: 0.5557 MB / 358.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.009366, allocations: 4 kB / 358.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.009505, allocations: 51.91 kB / 358.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/0.009507, allocations: 0 / 358.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.009526, allocations: 11.98 kB / 358.3 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.009528, allocations: 4 kB / 358.3 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.009531, allocations: 3.938 kB / 358.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/0.009914, allocations: 440 kB / 358.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.208e-05/0.009936, allocations: 27.75 kB / 358.8 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.951e-05/0.009965, allocations: 15.98 kB / 358.8 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.509e-05/0.01004, allocations: 8 kB / 358.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.542e-05/0.0101, allocations: 31.89 kB / 358.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.01011, allocations: 11.98 kB / 358.9 MB, free: 14.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.333e-05/0.0102, allocations: 197.1 kB / 359 MB, free: 13.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0102, allocations: 0 / 359 MB, free: 13.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000215/0.01042, allocations: 59.89 kB / 359.1 MB, free: 13.84 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 7.514e-05/0.01049, allocations: 115.2 kB / 359.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.01073, allocations: 179.9 kB / 359.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.01073, allocations: 7.938 kB / 359.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.01083, allocations: 91.5 kB / 359.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002214/0.01105, allocations: 48.84 kB / 359.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007758/0.01183, allocations: 0.5585 MB / 360.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.8e-05/0.01189, allocations: 97.53 kB / 360.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.311e-05/0.01197, allocations: 34.97 kB / 360.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.997e-05/0.01203, allocations: 40.48 kB / 360.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01203, allocations: 0 / 360.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Templates: time 0.004493/0.01652, allocations: 2.537 MB / 362.8 MB, free: 10.1 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3224670130293816]