Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001612/0.001612, allocations: 71.75 kB / 21.24 MB, free: 404 kB / 14.72 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.002008/0.002008, allocations: 168.9 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 177.2 MB / 204.9 MB, free: 9.039 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2229/0.2229, allocations: 34.27 MB / 295.5 MB, free: 14.6 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 59.91 kB / 443.1 MB, free: 6.727 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3394, allocations: 66.02 MB / 0.4972 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002953/0.3424, allocations: 2.189 MB / 0.4994 GB, free: 28.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.3438, allocations: 0.866 MB / 0.5002 GB, free: 27.76 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.344, allocations: 7.25 kB / 0.5002 GB, free: 27.76 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.3441, allocations: 41.7 kB / 0.5002 GB, free: 27.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.3444, allocations: 64.58 kB / 0.5003 GB, free: 27.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.3447, allocations: 188.6 kB / 0.5005 GB, free: 27.56 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.345, allocations: 389 kB / 0.5009 GB, free: 27.37 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.3453, allocations: 84.48 kB / 0.5009 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.3455, allocations: 163.8 kB / 0.5011 GB, free: 27.24 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.3456, allocations: 143.4 kB / 0.5012 GB, free: 27.17 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.3457, allocations: 38.38 kB / 0.5013 GB, free: 27.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.86e-05/0.3458, allocations: 48.86 kB / 0.5013 GB, free: 27.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.891e-05/0.3458, allocations: 93.2 kB / 0.5014 GB, free: 27.1 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.346, allocations: 136.3 kB / 0.5015 GB, free: 27.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003998/0.3464, allocations: 418.4 kB / 0.5019 GB, free: 26.83 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3464, allocations: 3.219 kB / 0.5019 GB, free: 26.83 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3464, allocations: 0 / 0.5019 GB, free: 26.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.3464, allocations: 0 / 0.5019 GB, free: 26.83 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001193/0.3476, allocations: 0.7329 MB / 0.5026 GB, free: 26.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.3476, allocations: 9.219 kB / 0.5027 GB, free: 26.29 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004731/0.3481, allocations: 82.97 kB / 0.5027 GB, free: 26.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004674/0.3486, allocations: 286.6 kB / 0.503 GB, free: 26.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.3486, allocations: 25.81 kB / 0.503 GB, free: 26.04 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.018e-05/0.3486, allocations: 33.77 kB / 0.5031 GB, free: 26.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004872/0.3491, allocations: 281.5 kB / 0.5033 GB, free: 25.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.3491, allocations: 3.094 kB / 0.5033 GB, free: 25.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.3492, allocations: 9.875 kB / 0.5033 GB, free: 25.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3492, allocations: 5.969 kB / 0.5034 GB, free: 25.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003941/0.3496, allocations: 193.6 kB / 0.5035 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.3507, allocations: 0.6747 MB / 0.5042 GB, free: 25.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.3511, allocations: 182.2 kB / 0.5044 GB, free: 25.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.3513, allocations: 90.14 kB / 0.5045 GB, free: 25.31 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.3513, allocations: 7.125 kB / 0.5045 GB, free: 25.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003794/0.3517, allocations: 239.3 kB / 0.5047 GB, free: 25.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.255e-06/0.3517, allocations: 0 / 0.5047 GB, free: 25.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007559/0.3525, allocations: 378.2 kB / 0.5051 GB, free: 25.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.3525, allocations: 60.52 kB / 0.5051 GB, free: 24.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.3527, allocations: 262.7 kB / 0.5054 GB, free: 24.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.3527, allocations: 36.83 kB / 0.5054 GB, free: 24.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.3528, allocations: 185 kB / 0.5056 GB, free: 24.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/0.3529, allocations: 102.8 kB / 0.5057 GB, free: 24.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-05/0.353, allocations: 71.66 kB / 0.5057 GB, free: 24.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.75e-05/0.3531, allocations: 351 kB / 0.5061 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.3532, allocations: 89.39 kB / 0.5062 GB, free: 24.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.3535, allocations: 226.8 kB / 0.5064 GB, free: 23.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.3539, allocations: 341.1 kB / 0.5067 GB, free: 23.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3539, allocations: 3.062 kB / 0.5067 GB, free: 23.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000561/0.3545, allocations: 383.5 kB / 0.5071 GB, free: 23.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3545, allocations: 9.5 kB / 0.5071 GB, free: 23.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.3545, allocations: 6 kB / 0.5071 GB, free: 23.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.3545, allocations: 6.375 kB / 0.5071 GB, free: 23.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.3548, allocations: 76.3 kB / 0.5072 GB, free: 23.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3548, allocations: 12.94 kB / 0.5072 GB, free: 23.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.355, allocations: 35.23 kB / 0.5072 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.355, allocations: 16.06 kB / 0.5072 GB, free: 23.5 MB / 446.1 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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * 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.0001603/0.3552, allocations: 169.3 kB / 0.5074 GB, free: 23.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.446e-05/0.3552, allocations: 32.06 kB / 0.5074 GB, free: 23.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006017/0.3558, allocations: 328.8 kB / 0.5077 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3559, allocations: 3.031 kB / 0.5077 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3559, allocations: 96 / 0.5077 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3559, allocations: 3.938 kB / 0.5077 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007547/0.3566, allocations: 0.6178 MB / 0.5083 GB, free: 22.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3566, allocations: 0 / 0.5083 GB, free: 22.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.3569, allocations: 53 kB / 0.5084 GB, free: 22.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3569, allocations: 0 / 0.5084 GB, free: 22.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.3569, allocations: 10.28 kB / 0.5084 GB, free: 22.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.3569, allocations: 2.969 kB / 0.5084 GB, free: 22.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3569, allocations: 0 / 0.5084 GB, free: 22.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007543/0.3577, allocations: 0.5293 MB / 0.5089 GB, free: 22.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/0.3577, allocations: 33.12 kB / 0.509 GB, free: 22.49 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.3577, allocations: 7.219 kB / 0.509 GB, free: 22.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.3579, allocations: 17.3 kB / 0.509 GB, free: 22.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.555e-05/0.358, allocations: 27.06 kB / 0.509 GB, free: 22.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.358, allocations: 16.23 kB / 0.509 GB, free: 22.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.3582, allocations: 186.7 kB / 0.5092 GB, free: 22.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3582, allocations: 0 / 0.5092 GB, free: 22.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000376/0.3585, allocations: 76.88 kB / 0.5093 GB, free: 22.33 MB / 446.1 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_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last) * 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 9.943e-05/0.3586, allocations: 127.1 kB / 0.5094 GB, free: 22.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004943/0.3591, allocations: 252.7 kB / 0.5096 GB, free: 22.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3591, allocations: 0 / 0.5096 GB, free: 22.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.3594, allocations: 116.9 kB / 0.5097 GB, free: 22.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.3598, allocations: 40.38 kB / 0.5098 GB, free: 22.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009895/0.3607, allocations: 0.6363 MB / 0.5104 GB, free: 21.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.3609, allocations: 190.7 kB / 0.5106 GB, free: 21.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.361, allocations: 42.5 kB / 0.5106 GB, free: 21.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.393e-05/0.3611, allocations: 31.89 kB / 0.5107 GB, free: 21.59 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3611, allocations: 0 / 0.5107 GB, free: 21.59 MB / 446.1 MB Notification: Performance of Templates: time 0.00712/0.3682, allocations: 2.73 MB / 0.5133 GB, free: 21.23 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.134491442004219]