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.002102/0.002102, allocations: 75.59 kB / 21.24 MB, free: 0.543 MB / 14.72 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.003558/0.003558, allocations: 162.6 kB / 24.5 MB, free: 3.719 MB / 14.72 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 1.554/1.554, allocations: 177.1 MB / 204.7 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] 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.2317/0.2317, allocations: 34.26 MB / 295.4 MB, free: 14.46 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002351/0.002351, allocations: 84.14 kB / 443.1 MB, free: 6.512 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3103, allocations: 66.06 MB / 0.4973 GB, free: 29.77 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002803/0.3131, allocations: 2.193 MB / 0.4994 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.3144, allocations: 0.8595 MB / 0.5002 GB, free: 27.7 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.3145, allocations: 10.31 kB / 0.5003 GB, free: 27.7 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.3146, allocations: 46.53 kB / 0.5003 GB, free: 27.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.3148, allocations: 56.78 kB / 0.5004 GB, free: 27.61 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.3152, allocations: 190.1 kB / 0.5005 GB, free: 27.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.3155, allocations: 391 kB / 0.5009 GB, free: 27.31 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.3156, allocations: 87.94 kB / 0.501 GB, free: 27.26 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.3158, allocations: 160.8 kB / 0.5011 GB, free: 27.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.316, allocations: 152.5 kB / 0.5013 GB, free: 27.1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.285e-05/0.316, allocations: 37.94 kB / 0.5013 GB, free: 27.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.656e-05/0.3161, allocations: 45.06 kB / 0.5014 GB, free: 27.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.913e-05/0.3162, allocations: 93.36 kB / 0.5015 GB, free: 27.03 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.3163, allocations: 136.2 kB / 0.5016 GB, free: 26.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003298/0.3166, allocations: 415.9 kB / 0.502 GB, free: 26.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3166, allocations: 0 / 0.502 GB, free: 26.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3166, allocations: 0 / 0.502 GB, free: 26.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3166, allocations: 0 / 0.502 GB, free: 26.77 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.001009/0.3177, allocations: 0.7319 MB / 0.5027 GB, free: 26.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3177, allocations: 9.562 kB / 0.5027 GB, free: 26.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004307/0.3181, allocations: 86.58 kB / 0.5028 GB, free: 26.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.3186, allocations: 294.4 kB / 0.5031 GB, free: 25.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.3186, allocations: 22.27 kB / 0.5031 GB, free: 25.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.431e-05/0.3186, allocations: 38.64 kB / 0.5031 GB, free: 25.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004219/0.3191, allocations: 272.2 kB / 0.5034 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.3191, allocations: 0 / 0.5034 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.3191, allocations: 11.12 kB / 0.5034 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.3191, allocations: 10.62 kB / 0.5034 GB, free: 25.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003638/0.3195, allocations: 192.8 kB / 0.5036 GB, free: 25.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.3205, allocations: 0.671 MB / 0.5042 GB, free: 25.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.3209, allocations: 191.4 kB / 0.5044 GB, free: 25.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.3211, allocations: 87.84 kB / 0.5045 GB, free: 25.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.3211, allocations: 6.406 kB / 0.5045 GB, free: 25.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003411/0.3214, allocations: 235.4 kB / 0.5047 GB, free: 25.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 1.834e-06/0.3214, allocations: 0 / 0.5047 GB, free: 25.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007025/0.3221, allocations: 379.7 kB / 0.5051 GB, free: 24.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.3222, allocations: 57.53 kB / 0.5052 GB, free: 24.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.3223, allocations: 263.5 kB / 0.5054 GB, free: 24.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.3224, allocations: 36.7 kB / 0.5054 GB, free: 24.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.541e-05/0.3224, allocations: 188.2 kB / 0.5056 GB, free: 24.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.525e-05/0.3225, allocations: 98.03 kB / 0.5057 GB, free: 24.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/0.3226, allocations: 75.41 kB / 0.5058 GB, free: 24.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.549e-05/0.3226, allocations: 346.5 kB / 0.5061 GB, free: 24.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.3228, allocations: 90.73 kB / 0.5062 GB, free: 24.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.323, allocations: 224.8 kB / 0.5064 GB, free: 23.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003885/0.3234, allocations: 345.7 kB / 0.5068 GB, free: 23.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.3234, allocations: 3.094 kB / 0.5068 GB, free: 23.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000519/0.3239, allocations: 387.3 kB / 0.5071 GB, free: 23.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3239, allocations: 9.531 kB / 0.5071 GB, free: 23.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3239, allocations: 3.219 kB / 0.5071 GB, free: 23.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.324, allocations: 6.656 kB / 0.5071 GB, free: 23.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.3242, allocations: 79.61 kB / 0.5072 GB, free: 23.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3242, allocations: 9.094 kB / 0.5072 GB, free: 23.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.3244, allocations: 43.3 kB / 0.5073 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.3244, allocations: 20.27 kB / 0.5073 GB, free: 23.42 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.0001196/0.3246, allocations: 163.8 kB / 0.5074 GB, free: 23.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.3246, allocations: 38.42 kB / 0.5075 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005441/0.3251, allocations: 323.2 kB / 0.5078 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3251, allocations: 3.125 kB / 0.5078 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3251, allocations: 4 kB / 0.5078 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3252, allocations: 0 / 0.5078 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006801/0.3258, allocations: 0.6108 MB / 0.5084 GB, free: 22.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3258, allocations: 0 / 0.5084 GB, free: 22.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002297/0.3261, allocations: 51.53 kB / 0.5084 GB, free: 22.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3261, allocations: 3.25 kB / 0.5084 GB, free: 22.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.3261, allocations: 10.27 kB / 0.5085 GB, free: 22.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3261, allocations: 0 / 0.5085 GB, free: 22.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3261, allocations: 0 / 0.5085 GB, free: 22.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.3268, allocations: 0.539 MB / 0.509 GB, free: 22.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.167e-05/0.3268, allocations: 28.69 kB / 0.509 GB, free: 22.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.459e-05/0.3269, allocations: 14.03 kB / 0.509 GB, free: 22.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.327, allocations: 11.7 kB / 0.509 GB, free: 22.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.408e-05/0.3271, allocations: 25.41 kB / 0.5091 GB, free: 22.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.3271, allocations: 12.44 kB / 0.5091 GB, free: 22.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001186/0.3272, allocations: 190.3 kB / 0.5093 GB, free: 22.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3272, allocations: 4 kB / 0.5093 GB, free: 22.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003374/0.3276, allocations: 67.19 kB / 0.5093 GB, free: 22.26 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.697e-05/0.3277, allocations: 112.7 kB / 0.5094 GB, free: 22.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004696/0.3281, allocations: 253.7 kB / 0.5097 GB, free: 22.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3281, allocations: 0 / 0.5097 GB, free: 22.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002201/0.3284, allocations: 117.4 kB / 0.5098 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.3288, allocations: 39.88 kB / 0.5098 GB, free: 22.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009815/0.3297, allocations: 0.6408 MB / 0.5104 GB, free: 21.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.3299, allocations: 183.5 kB / 0.5106 GB, free: 21.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.33, allocations: 48.67 kB / 0.5107 GB, free: 21.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.524e-05/0.3301, allocations: 37.72 kB / 0.5107 GB, free: 21.52 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3301, allocations: 4 kB / 0.5107 GB, free: 21.52 MB / 446.1 MB Notification: Performance of Templates: time 0.007497/0.3376, allocations: 2.731 MB / 0.5134 GB, free: 21.15 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.2965913959778845]