Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 200 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 226.6 MB / 243.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007646/0.0007645, allocations: 92.94 kB / 295.5 MB, free: 6.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2963/0.2963, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.0002671, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2702, allocations: 62.96 MB / 0.5159 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001969/0.2722, allocations: 1.91 MB / 0.5177 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.2732, allocations: 0.793 MB / 0.5185 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.2734, allocations: 6.969 kB / 0.5185 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.751e-05/0.2735, allocations: 21.16 kB / 0.5185 GB, free: 35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.2737, allocations: 48.97 kB / 0.5186 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.2739, allocations: 111.6 kB / 0.5187 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.2742, allocations: 336.8 kB / 0.519 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.2744, allocations: 127.4 kB / 0.5191 GB, free: 34.67 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.2746, allocations: 115.9 kB / 0.5192 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.2748, allocations: 127.4 kB / 0.5194 GB, free: 34.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.541e-05/0.2748, allocations: 15.66 kB / 0.5194 GB, free: 34.55 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.267e-05/0.2749, allocations: 26.17 kB / 0.5194 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.829e-05/0.275, allocations: 55.09 kB / 0.5195 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.2751, allocations: 159.2 kB / 0.5196 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.2753, allocations: 280.6 kB / 0.5199 GB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2753, allocations: 0 / 0.5199 GB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.2753, allocations: 0 / 0.5199 GB, free: 34.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2754, allocations: 0 / 0.5199 GB, free: 34.33 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.0007692/0.2761, allocations: 0.5847 MB / 0.5204 GB, free: 33.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.2762, allocations: 8.281 kB / 0.5205 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003883/0.2766, allocations: 85.53 kB / 0.5205 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.277, allocations: 351.8 kB / 0.5209 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.277, allocations: 25.12 kB / 0.5209 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.2771, allocations: 37.52 kB / 0.5209 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.2775, allocations: 277.4 kB / 0.5212 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.2775, allocations: 3.906 kB / 0.5212 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.2776, allocations: 10.78 kB / 0.5212 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.2776, allocations: 6.125 kB / 0.5212 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003688/0.278, allocations: 207.7 kB / 0.5214 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2791, allocations: 0.8497 MB / 0.5222 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004254/0.2795, allocations: 215.4 kB / 0.5224 GB, free: 32.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.2797, allocations: 96.73 kB / 0.5225 GB, free: 32.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.2797, allocations: 14.52 kB / 0.5226 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003403/0.2801, allocations: 225.7 kB / 0.5228 GB, free: 32.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.694e-06/0.2801, allocations: 0 / 0.5228 GB, free: 32.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006844/0.2808, allocations: 396.2 kB / 0.5231 GB, free: 32.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.095e-05/0.2808, allocations: 57.62 kB / 0.5232 GB, free: 32.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.281, allocations: 259.1 kB / 0.5234 GB, free: 32.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.2811, allocations: 35.69 kB / 0.5235 GB, free: 32.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.504e-05/0.2811, allocations: 180.9 kB / 0.5237 GB, free: 32.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.79e-05/0.2812, allocations: 94.66 kB / 0.5237 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/0.2812, allocations: 8 kB / 0.5238 GB, free: 31.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.498e-05/0.2813, allocations: 341 kB / 0.5241 GB, free: 31.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.2815, allocations: 94.69 kB / 0.5242 GB, free: 31.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.2817, allocations: 235.7 kB / 0.5244 GB, free: 31.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/0.2821, allocations: 355.6 kB / 0.5247 GB, free: 31.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2822, allocations: 0 / 0.5247 GB, free: 31.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005515/0.2827, allocations: 391.4 kB / 0.5251 GB, free: 30.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.2827, allocations: 8.344 kB / 0.5251 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2828, allocations: 2.75 kB / 0.5251 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.2828, allocations: 8.531 kB / 0.5251 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.2831, allocations: 83.42 kB / 0.5252 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.2831, allocations: 8.469 kB / 0.5252 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.2833, allocations: 38.59 kB / 0.5252 GB, free: 30.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.2833, allocations: 21.62 kB / 0.5253 GB, free: 30.9 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,$PRE.mean.y_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001283/0.2834, allocations: 166.5 kB / 0.5254 GB, free: 30.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.2835, allocations: 34.7 kB / 0.5255 GB, free: 30.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005477/0.284, allocations: 334.6 kB / 0.5258 GB, free: 30.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.284, allocations: 6.297 kB / 0.5258 GB, free: 30.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.284, allocations: 4 kB / 0.5258 GB, free: 30.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2841, allocations: 0 / 0.5258 GB, free: 30.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007267/0.2848, allocations: 0.7212 MB / 0.5265 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2848, allocations: 7.031 kB / 0.5265 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.2851, allocations: 60.27 kB / 0.5266 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2851, allocations: 0 / 0.5266 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.2851, allocations: 11.91 kB / 0.5266 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2851, allocations: 3.938 kB / 0.5266 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2851, allocations: 0 / 0.5266 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007057/0.2858, allocations: 0.5404 MB / 0.5271 GB, free: 29.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.2859, allocations: 108.4 kB / 0.5272 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/0.2859, allocations: 10.94 kB / 0.5272 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.2861, allocations: 15.64 kB / 0.5272 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.381e-05/0.2862, allocations: 29.5 kB / 0.5273 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.2862, allocations: 15.75 kB / 0.5273 GB, free: 29.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001224/0.2863, allocations: 176.9 kB / 0.5274 GB, free: 29.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2863, allocations: 0 / 0.5274 GB, free: 29.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003383/0.2867, allocations: 76.11 kB / 0.5275 GB, free: 29.56 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001088/0.2868, allocations: 115 kB / 0.5276 GB, free: 29.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000458/0.2872, allocations: 281.7 kB / 0.5279 GB, free: 29.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2873, allocations: 0 / 0.5279 GB, free: 29.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.2875, allocations: 138.9 kB / 0.528 GB, free: 29.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.2878, allocations: 33.12 kB / 0.5281 GB, free: 29.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008432/0.2887, allocations: 0.7631 MB / 0.5288 GB, free: 28.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.2889, allocations: 0.7913 MB / 0.5296 GB, free: 28.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.147e-05/0.289, allocations: 31.56 kB / 0.5296 GB, free: 28.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.289, allocations: 3.938 kB / 0.5296 GB, free: 28.1 MB / 378.7 MB Notification: Performance of Templates: time 0.004581/0.2936, allocations: 3.75 MB / 0.5333 GB, free: 27.74 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches