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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 104.6 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3483/0.3483, allocations: 44.83 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 67.89 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3119, allocations: 62.01 MB / 0.5151 GB, free: 37.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002931/0.3149, allocations: 2.351 MB / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.3161, allocations: 0.8385 MB / 0.5183 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.3162, allocations: 2.906 kB / 0.5183 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.3164, allocations: 25.73 kB / 0.5183 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.3166, allocations: 47.31 kB / 0.5183 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.3169, allocations: 149 kB / 0.5185 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.3172, allocations: 355.4 kB / 0.5188 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.3174, allocations: 116.3 kB / 0.5189 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.3176, allocations: 132.5 kB / 0.5191 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.3178, allocations: 158 kB / 0.5192 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.391e-05/0.3179, allocations: 19.34 kB / 0.5192 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.796e-05/0.318, allocations: 38.25 kB / 0.5193 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.299e-05/0.3181, allocations: 67.67 kB / 0.5193 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.3182, allocations: 155 kB / 0.5195 GB, free: 34.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.3185, allocations: 377.1 kB / 0.5198 GB, free: 34.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3185, allocations: 0 / 0.5198 GB, free: 34.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3185, allocations: 0 / 0.5198 GB, free: 34.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3185, allocations: 0 / 0.5198 GB, free: 34.72 MB / 378.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.0009498/0.3195, allocations: 0.6463 MB / 0.5205 GB, free: 34.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.3195, allocations: 11.06 kB / 0.5205 GB, free: 34.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004019/0.3199, allocations: 76.56 kB / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.3203, allocations: 345.7 kB / 0.5209 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.3204, allocations: 24.41 kB / 0.5209 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.3204, allocations: 36.06 kB / 0.5209 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004446/0.3209, allocations: 270.2 kB / 0.5212 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.3209, allocations: 2.719 kB / 0.5212 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.3209, allocations: 18.16 kB / 0.5212 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.321, allocations: 9.422 kB / 0.5212 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003605/0.3213, allocations: 193.8 kB / 0.5214 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.3224, allocations: 0.8307 MB / 0.5222 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.3228, allocations: 205.6 kB / 0.5224 GB, free: 33.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.323, allocations: 99.19 kB / 0.5225 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.323, allocations: 6.812 kB / 0.5225 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003401/0.3233, allocations: 226.9 kB / 0.5227 GB, free: 32.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.3234, allocations: 0 / 0.5227 GB, free: 32.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006723/0.324, allocations: 385.3 kB / 0.5231 GB, free: 32.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.3241, allocations: 58.38 kB / 0.5232 GB, free: 32.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.3243, allocations: 254.4 kB / 0.5234 GB, free: 32.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.3243, allocations: 36.58 kB / 0.5234 GB, free: 32.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.3244, allocations: 185.1 kB / 0.5236 GB, free: 32.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.225e-05/0.3244, allocations: 95.86 kB / 0.5237 GB, free: 32.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.272e-05/0.3245, allocations: 72.31 kB / 0.5238 GB, free: 32.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.293e-05/0.3246, allocations: 344 kB / 0.5241 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.3248, allocations: 91.78 kB / 0.5242 GB, free: 31.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.325, allocations: 230.4 kB / 0.5244 GB, free: 31.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.3254, allocations: 338.4 kB / 0.5247 GB, free: 31.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3254, allocations: 0 / 0.5247 GB, free: 31.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000521/0.3259, allocations: 379 kB / 0.5251 GB, free: 31.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3259, allocations: 8.438 kB / 0.5251 GB, free: 31.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3259, allocations: 3.281 kB / 0.5251 GB, free: 31.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.326, allocations: 8.375 kB / 0.5251 GB, free: 31.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/0.3263, allocations: 83.78 kB / 0.5252 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.3263, allocations: 5.344 kB / 0.5252 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.3264, allocations: 36.62 kB / 0.5252 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.3265, allocations: 17.66 kB / 0.5252 GB, free: 31.24 MB / 378.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 0.0001251/0.3266, allocations: 170.4 kB / 0.5254 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.673e-05/0.3266, allocations: 32.16 kB / 0.5254 GB, free: 31.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005644/0.3272, allocations: 321.8 kB / 0.5257 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3272, allocations: 2.75 kB / 0.5257 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3272, allocations: 0 / 0.5257 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.3272, allocations: 5.984 kB / 0.5258 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007167/0.328, allocations: 0.7225 MB / 0.5265 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.328, allocations: 96 / 0.5265 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002205/0.3282, allocations: 53.2 kB / 0.5265 GB, free: 30.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.3282, allocations: 2.469 kB / 0.5265 GB, free: 30.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.3282, allocations: 14.03 kB / 0.5265 GB, free: 30.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.3283, allocations: 0 / 0.5265 GB, free: 30.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3283, allocations: 2.562 kB / 0.5265 GB, free: 30.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.3304, allocations: 2.015 MB / 0.5285 GB, free: 29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-05/0.3304, allocations: 112.4 kB / 0.5286 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.3305, allocations: 10.88 kB / 0.5286 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.3306, allocations: 17.2 kB / 0.5286 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.78e-05/0.3307, allocations: 26.42 kB / 0.5287 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.3307, allocations: 18.52 kB / 0.5287 GB, free: 28.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001211/0.3309, allocations: 177.7 kB / 0.5288 GB, free: 28.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3309, allocations: 0 / 0.5288 GB, free: 28.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004191/0.3313, allocations: 85.81 kB / 0.5289 GB, free: 28.73 MB / 378.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 0.0001099/0.3314, allocations: 111.5 kB / 0.529 GB, free: 28.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000453/0.3319, allocations: 272.4 kB / 0.5293 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3319, allocations: 0 / 0.5293 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.3321, allocations: 134.1 kB / 0.5294 GB, free: 28.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.3324, allocations: 38.36 kB / 0.5295 GB, free: 28.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009549/0.3334, allocations: 0.9589 MB / 0.5304 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.3336, allocations: 0.798 MB / 0.5312 GB, free: 27.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001434/0.3338, allocations: 46.27 kB / 0.5312 GB, free: 27.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.123e-05/0.3338, allocations: 27.98 kB / 0.5312 GB, free: 27.07 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.3338, allocations: 0 / 0.5312 GB, free: 27.07 MB / 378.7 MB Notification: Performance of Templates: time 0.005256/0.3391, allocations: 2.68 MB / 0.5339 GB, free: 26.85 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches