Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.5 MB / 230.7 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009536/0.0009535, allocations: 91.14 kB / 281.6 MB, free: 5.344 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1891/0.1891, allocations: 44.15 MB / 376.5 MB, free: 3.078 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.662e-05/1.65e-05, allocations: 4.219 kB / 444.6 MB, free: 15.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1215, allocations: 61.93 MB / 0.4947 GB, free: 1.293 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3834/0.5049, allocations: 87.59 MB / 0.5802 GB, free: 8.973 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.5052, allocations: 59.97 kB / 0.5803 GB, free: 8.914 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01392/0.5191, allocations: 4.39 MB / 0.5845 GB, free: 4.523 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.5192, allocations: 0 / 0.5845 GB, free: 4.523 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.725e-05/0.5192, allocations: 8 kB / 0.5846 GB, free: 4.516 MB / 394.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.001241/0.5204, allocations: 0.5488 MB / 0.5851 GB, free: 3.922 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.5205, allocations: 11.98 kB / 0.5851 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.5206, allocations: 35.62 kB / 0.5851 GB, free: 3.875 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007134/0.5214, allocations: 320.9 kB / 0.5854 GB, free: 3.523 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.5214, allocations: 11.95 kB / 0.5854 GB, free: 3.512 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-05/0.5215, allocations: 16 kB / 0.5855 GB, free: 3.496 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004845/0.522, allocations: 161.1 kB / 0.5856 GB, free: 3.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005781/0.5226, allocations: 215.8 kB / 0.5858 GB, free: 3.121 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.5226, allocations: 3.984 kB / 0.5858 GB, free: 3.117 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.655e-05/0.5227, allocations: 4 kB / 0.5858 GB, free: 3.113 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.5227, allocations: 4 kB / 0.5858 GB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.5246, allocations: 0.7674 MB / 0.5866 GB, free: 2.297 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004626/0.5251, allocations: 170.9 kB / 0.5867 GB, free: 2.121 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.5253, allocations: 80.8 kB / 0.5868 GB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.5254, allocations: 11.98 kB / 0.5868 GB, free: 2.027 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004945/0.5259, allocations: 199.2 kB / 0.587 GB, free: 1.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 3.297e-06/0.5259, allocations: 4 kB / 0.587 GB, free: 1.816 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006739/0.5266, allocations: 241.2 kB / 0.5873 GB, free: 1.574 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.5266, allocations: 55.41 kB / 0.5873 GB, free: 1.508 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.527, allocations: 200.5 kB / 0.5875 GB, free: 1.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.527, allocations: 26.64 kB / 0.5875 GB, free: 1.273 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.5272, allocations: 172.8 kB / 0.5877 GB, free: 1.098 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.5273, allocations: 94.59 kB / 0.5878 GB, free: 1.004 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.16e-05/0.5273, allocations: 0 / 0.5878 GB, free: 1.004 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.5275, allocations: 346.8 kB / 0.5881 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.5277, allocations: 64.75 kB / 0.5882 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.528, allocations: 198.2 kB / 0.5884 GB, free: 344 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.5283, allocations: 99.83 kB / 0.5885 GB, free: 244 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.5283, allocations: 0 / 0.5885 GB, free: 244 kB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007531/0.5291, allocations: 297 kB / 0.5887 GB, free: 15.94 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.5291, allocations: 8 kB / 0.5888 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.5291, allocations: 7.953 kB / 0.5888 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/0.5292, allocations: 8 kB / 0.5888 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005015/0.5297, allocations: 79.83 kB / 0.5888 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.5297, allocations: 12.64 kB / 0.5889 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.53, allocations: 32.02 kB / 0.5889 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.5301, allocations: 20 kB / 0.5889 GB, free: 15.78 MB / 410.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 () * 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.0001554/0.5302, allocations: 120.8 kB / 0.589 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/0.5303, allocations: 27.72 kB / 0.589 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007058/0.531, allocations: 280.7 kB / 0.5893 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.531, allocations: 7.953 kB / 0.5893 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5311, allocations: 0 / 0.5893 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.5311, allocations: 3.984 kB / 0.5893 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009936/0.5321, allocations: 0.6121 MB / 0.5899 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5321, allocations: 0 / 0.5899 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.5325, allocations: 55.95 kB / 0.59 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.5325, allocations: 0 / 0.59 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.5325, allocations: 11.95 kB / 0.59 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.5325, allocations: 3.938 kB / 0.59 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.5326, allocations: 4 kB / 0.59 GB, free: 14.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009086/0.5335, allocations: 455.2 kB / 0.5904 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.298e-05/0.5336, allocations: 108.7 kB / 0.5905 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.628e-05/0.5337, allocations: 12.06 kB / 0.5905 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.5339, allocations: 15.94 kB / 0.5906 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-05/0.5341, allocations: 27.97 kB / 0.5906 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.5341, allocations: 11.98 kB / 0.5906 GB, free: 13.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001873/0.5343, allocations: 152.5 kB / 0.5907 GB, free: 13.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5343, allocations: 0 / 0.5907 GB, free: 13.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006227/0.5349, allocations: 63.78 kB / 0.5908 GB, free: 13.74 MB / 410.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) * 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.0002314/0.5352, allocations: 107.2 kB / 0.5909 GB, free: 13.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.5357, allocations: 219.8 kB / 0.5911 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5357, allocations: 0 / 0.5911 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002341/0.536, allocations: 104.4 kB / 0.5912 GB, free: 13.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.5364, allocations: 24.42 kB / 0.5912 GB, free: 13.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.5377, allocations: 442.7 kB / 0.5917 GB, free: 12.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.5383, allocations: 0.7971 MB / 0.5924 GB, free: 12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002332/0.5385, allocations: 38.33 kB / 0.5925 GB, free: 11.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.5387, allocations: 31.42 kB / 0.5925 GB, free: 11.94 MB / 410.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5387, allocations: 0 / 0.5925 GB, free: 11.94 MB / 410.7 MB Notification: Performance of Templates: time 0.007731/0.5464, allocations: 2.087 MB / 0.5945 GB, free: 9.859 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches