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.0009158/0.0009158, allocations: 200.1 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007055/0.0007055, allocations: 96.78 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1868/0.1868, allocations: 44.84 MB / 392 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002468, allocations: 12 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09366/0.09392, allocations: 62.96 MB / 0.5153 GB, free: 2.793 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002314/0.09628, allocations: 1.902 MB / 0.5172 GB, free: 0.8711 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.09759, allocations: 0.7912 MB / 0.5179 GB, free: 76 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/0.0978, allocations: 7.938 kB / 0.518 GB, free: 68 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.09793, allocations: 23.72 kB / 0.518 GB, free: 44 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.178/0.2759, allocations: 48.03 kB / 0.518 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.2764, allocations: 103.4 kB / 0.5181 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.2769, allocations: 337.7 kB / 0.5184 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.2771, allocations: 102.2 kB / 0.5185 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.2773, allocations: 115.2 kB / 0.5187 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.2775, allocations: 130.6 kB / 0.5188 GB, free: 9.801 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.537e-05/0.2776, allocations: 14.84 kB / 0.5188 GB, free: 9.801 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.547e-05/0.2777, allocations: 19.39 kB / 0.5188 GB, free: 9.801 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.547e-05/0.2777, allocations: 59.09 kB / 0.5189 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.204e-05/0.2778, allocations: 84.36 kB / 0.5189 GB, free: 9.738 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.2781, allocations: 282.1 kB / 0.5192 GB, free: 9.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2781, allocations: 2.562 kB / 0.5192 GB, free: 9.719 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2781, allocations: 0.9375 kB / 0.5192 GB, free: 9.719 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2782, allocations: 0 / 0.5192 GB, free: 9.719 MB / 346.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.0008453/0.279, allocations: 0.5829 MB / 0.5198 GB, free: 9.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.279, allocations: 8.969 kB / 0.5198 GB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004193/0.2795, allocations: 86.59 kB / 0.5199 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.2799, allocations: 342.2 kB / 0.5202 GB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.28, allocations: 23.81 kB / 0.5202 GB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.316e-05/0.28, allocations: 31.75 kB / 0.5203 GB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.2805, allocations: 276 kB / 0.5205 GB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.2806, allocations: 5.031 kB / 0.5205 GB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.2806, allocations: 12.16 kB / 0.5205 GB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.2806, allocations: 8.141 kB / 0.5205 GB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004243/0.281, allocations: 203.2 kB / 0.5207 GB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.2823, allocations: 0.8477 MB / 0.5216 GB, free: 8.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.2827, allocations: 211.8 kB / 0.5218 GB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.2829, allocations: 100.2 kB / 0.5219 GB, free: 8.562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.2829, allocations: 12.14 kB / 0.5219 GB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003988/0.2833, allocations: 234.6 kB / 0.5221 GB, free: 8.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.624e-06/0.2834, allocations: 0 / 0.5221 GB, free: 8.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007601/0.2841, allocations: 383.5 kB / 0.5225 GB, free: 8.445 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.2842, allocations: 68.89 kB / 0.5225 GB, free: 8.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.2844, allocations: 252.5 kB / 0.5228 GB, free: 8.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2844, allocations: 35.08 kB / 0.5228 GB, free: 8.238 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.2845, allocations: 185.1 kB / 0.523 GB, free: 8.125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.129e-05/0.2846, allocations: 92.8 kB / 0.5231 GB, free: 8.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.554e-05/0.2846, allocations: 9.812 kB / 0.5231 GB, free: 8.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.277e-05/0.2847, allocations: 340.4 kB / 0.5234 GB, free: 7.758 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.2849, allocations: 97.84 kB / 0.5235 GB, free: 7.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.2852, allocations: 225.2 kB / 0.5237 GB, free: 7.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002529/0.2854, allocations: 126 kB / 0.5238 GB, free: 7.578 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.2854, allocations: 5.562 kB / 0.5238 GB, free: 7.574 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006504/0.2861, allocations: 397.2 kB / 0.5242 GB, free: 7.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2861, allocations: 9.438 kB / 0.5242 GB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2861, allocations: 3.781 kB / 0.5242 GB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.2861, allocations: 9.531 kB / 0.5242 GB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.2864, allocations: 71.34 kB / 0.5243 GB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.2865, allocations: 11.64 kB / 0.5243 GB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.2866, allocations: 49.22 kB / 0.5244 GB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.2867, allocations: 19.19 kB / 0.5244 GB, free: 7.441 MB / 346.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.0001325/0.2868, allocations: 167.3 kB / 0.5245 GB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.2869, allocations: 29.61 kB / 0.5246 GB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006045/0.2875, allocations: 336.7 kB / 0.5249 GB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2875, allocations: 3.156 kB / 0.5249 GB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2875, allocations: 4 kB / 0.5249 GB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.2875, allocations: 5.828 kB / 0.5249 GB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008507/0.2884, allocations: 0.7298 MB / 0.5256 GB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2884, allocations: 0.9688 kB / 0.5256 GB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002417/0.2886, allocations: 51.3 kB / 0.5257 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2886, allocations: 1.312 kB / 0.5257 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.2887, allocations: 10.31 kB / 0.5257 GB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.2887, allocations: 1.469 kB / 0.5257 GB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2887, allocations: 0 / 0.5257 GB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007844/0.2895, allocations: 0.5411 MB / 0.5262 GB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.2895, allocations: 101.5 kB / 0.5263 GB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.2896, allocations: 12.58 kB / 0.5263 GB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.2897, allocations: 25.7 kB / 0.5263 GB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.221e-05/0.2898, allocations: 22.34 kB / 0.5264 GB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.2898, allocations: 12.11 kB / 0.5264 GB, free: 6.258 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001368/0.29, allocations: 182.9 kB / 0.5265 GB, free: 6.148 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.29, allocations: 0 / 0.5265 GB, free: 6.148 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003182/0.2903, allocations: 70.78 kB / 0.5266 GB, free: 6.129 MB / 346.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 9.92e-05/0.2904, allocations: 115.3 kB / 0.5267 GB, free: 6.027 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004981/0.2909, allocations: 277.2 kB / 0.527 GB, free: 5.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2909, allocations: 4.672 kB / 0.527 GB, free: 5.941 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.2912, allocations: 134 kB / 0.5271 GB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.2915, allocations: 45.84 kB / 0.5272 GB, free: 5.883 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009048/0.2924, allocations: 0.7601 MB / 0.5279 GB, free: 5.375 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.2927, allocations: 0.7989 MB / 0.5287 GB, free: 4.664 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.052e-05/0.2928, allocations: 35.58 kB / 0.5287 GB, free: 4.652 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2928, allocations: 0 / 0.5287 GB, free: 4.652 MB / 346.7 MB Notification: Performance of Templates: time 0.005589/0.2984, allocations: 3.75 MB / 0.5324 GB, free: 4.305 MB / 346.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