Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002005/0.003211, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001637/0.002973, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9586/0.9586, allocations: 177.5 MB / 190 MB, free: 4.75 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09637/1.055, allocations: 53.87 MB / 243.9 MB, free: 14.81 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2795/0.2795, allocations: 34.88 MB / 279.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02323/0.3028, allocations: 13.25 MB / 292.8 MB, free: 6.348 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 294.1 MB, free: 5.055 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.116e-05/1.243e-05, allocations: 3.734 kB / 294.1 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003178/0.00319, allocations: 2.304 MB / 296.4 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.004557, allocations: 0.9154 MB / 297.3 MB, free: 1.812 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.004693, allocations: 7.938 kB / 297.3 MB, free: 1.805 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.629e-05/0.004789, allocations: 35.48 kB / 297.4 MB, free: 1.77 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.004953, allocations: 67.33 kB / 297.4 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.005282, allocations: 191.5 kB / 297.6 MB, free: 1.516 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.005622, allocations: 390.8 kB / 298 MB, free: 1.133 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.00578, allocations: 95.45 kB / 298.1 MB, free: 1.043 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.00605, allocations: 264 kB / 298.4 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.006202, allocations: 119.6 kB / 298.5 MB, free: 0.668 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.006242, allocations: 32 kB / 298.5 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.497e-05/0.006327, allocations: 51.98 kB / 298.6 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.613e-05/0.006383, allocations: 71.73 kB / 298.6 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.2e-05/0.006455, allocations: 83.75 kB / 298.7 MB, free: 444 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.006709, allocations: 258.9 kB / 299 MB, free: 184 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.829e-06/0.006718, allocations: 0 / 299 MB, free: 184 kB / 282.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.006719, allocations: 4 kB / 299 MB, free: 180 kB / 282.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.006728, allocations: 0 / 299 MB, free: 180 kB / 282.7 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.0006877/0.007415, allocations: 0.6245 MB / 299.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.007447, allocations: 8.031 kB / 299.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002935/0.00774, allocations: 169.8 kB / 299.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.007993, allocations: 253.7 kB / 300 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.008014, allocations: 21.03 kB / 300 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.008054, allocations: 36.36 kB / 300.1 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.008268, allocations: 195.2 kB / 300.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.00828, allocations: 4.188 kB / 300.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.008301, allocations: 16.11 kB / 300.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.008308, allocations: 8 kB / 300.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.243e-05/0.008391, allocations: 64.56 kB / 300.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.009026, allocations: 0.4996 MB / 300.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.009195, allocations: 120.4 kB / 301 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.864e-05/0.009243, allocations: 48.77 kB / 301 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.009268, allocations: 7.984 kB / 301 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001809/0.009449, allocations: 163.2 kB / 301.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.403e-06/0.00945, allocations: 0 / 301.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002298/0.00968, allocations: 173.5 kB / 301.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.009717, allocations: 63.34 kB / 301.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.009853, allocations: 250.9 kB / 301.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.009876, allocations: 37.7 kB / 301.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.19e-05/0.009938, allocations: 161.1 kB / 301.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.201e-05/0.01, allocations: 103.1 kB / 301.9 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.397e-05/0.01006, allocations: 70.03 kB / 302 MB, free: 12.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.182e-05/0.01016, allocations: 346.8 kB / 302.4 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.075e-05/0.0102, allocations: 32.72 kB / 302.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.0103, allocations: 170.3 kB / 302.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.01048, allocations: 254 kB / 302.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.01049, allocations: 4 kB / 302.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002089/0.0107, allocations: 222.9 kB / 303 MB, free: 11.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.01071, allocations: 16.02 kB / 303 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.01072, allocations: 4 kB / 303 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.01074, allocations: 8 kB / 303 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.01093, allocations: 87.89 kB / 303.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.01094, allocations: 15.88 kB / 303.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.541e-05/0.01101, allocations: 31.77 kB / 303.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.01103, allocations: 16 kB / 303.2 MB, free: 11.63 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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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 9.218e-05/0.01112, allocations: 136.6 kB / 303.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.786e-05/0.01115, allocations: 27.97 kB / 303.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.01135, allocations: 171.9 kB / 303.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.01135, allocations: 4 kB / 303.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.01136, allocations: 3.938 kB / 303.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.01136, allocations: 0 / 303.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.0117, allocations: 394.9 kB / 303.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.0117, allocations: 0 / 303.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.01183, allocations: 51.91 kB / 304 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.01186, allocations: 35.73 kB / 304 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.01186, allocations: 4 kB / 304 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.01188, allocations: 11.94 kB / 304 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.01188, allocations: 4 kB / 304 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01189, allocations: 0 / 304 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.01215, allocations: 302.5 kB / 304.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.01218, allocations: 8.062 kB / 304.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.294e-05/0.01225, allocations: 15.98 kB / 304.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.01229, allocations: 27.89 kB / 304.4 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.01231, allocations: 11.98 kB / 304.4 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.379e-05/0.01237, allocations: 92.62 kB / 304.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01237, allocations: 0 / 304.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001836/0.01255, allocations: 75.78 kB / 304.5 MB, free: 10.22 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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 7.976e-05/0.01263, allocations: 101.5 kB / 304.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001629/0.0128, allocations: 158.8 kB / 304.8 MB, free: 9.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/0.01281, allocations: 8.188 kB / 304.8 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.848e-05/0.01289, allocations: 92.95 kB / 304.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.01316, allocations: 288.1 kB / 305.2 MB, free: 9.527 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.0145, allocations: 0.574 MB / 305.8 MB, free: 8.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.692e-05/0.01455, allocations: 97.53 kB / 305.8 MB, free: 8.801 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.826e-05/0.01463, allocations: 43.38 kB / 305.9 MB, free: 8.758 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.01474, allocations: 103.3 kB / 306 MB, free: 8.656 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01474, allocations: 0 / 306 MB, free: 8.656 MB / 298.7 MB Notification: Performance of Templates: time 0.00443/0.01917, allocations: 2.974 MB / 309 MB, free: 5.75 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7684256909415126]