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.001045/0.001045, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 104.9 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1973/0.1973, allocations: 45.16 MB / 383.8 MB, free: 236 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.642e-05/1.665e-05, allocations: 4 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3772/0.491, allocations: 88.67 MB / 0.5909 GB, free: 13.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001818/0.4912, allocations: 65.09 kB / 0.591 GB, free: 13.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01338/0.5046, allocations: 4.62 MB / 0.5955 GB, free: 10.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5047, allocations: 0 / 0.5955 GB, free: 10.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.5047, allocations: 8 kB / 0.5955 GB, free: 10.08 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.001029/0.5058, allocations: 0.5635 MB / 0.5961 GB, free: 9.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.5058, allocations: 12.03 kB / 0.5961 GB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004862/0.5063, allocations: 83.48 kB / 0.5962 GB, free: 9.406 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005717/0.5069, allocations: 325.4 kB / 0.5965 GB, free: 9.082 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.5069, allocations: 12 kB / 0.5965 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.123e-05/0.507, allocations: 16 kB / 0.5965 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003239/0.5073, allocations: 158.8 kB / 0.5967 GB, free: 8.953 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003848/0.5077, allocations: 212.9 kB / 0.5969 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.5078, allocations: 3.938 kB / 0.5969 GB, free: 8.789 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.5078, allocations: 3.5 kB / 0.5969 GB, free: 8.789 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.5078, allocations: 11.98 kB / 0.5969 GB, free: 8.777 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.5092, allocations: 0.7841 MB / 0.5976 GB, free: 8.102 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.5094, allocations: 181.7 kB / 0.5978 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.5096, allocations: 81.11 kB / 0.5979 GB, free: 7.918 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.5096, allocations: 8.422 kB / 0.5979 GB, free: 7.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.5099, allocations: 204.9 kB / 0.5981 GB, free: 7.738 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.51, allocations: 0 / 0.5981 GB, free: 7.738 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004249/0.5104, allocations: 241.9 kB / 0.5983 GB, free: 7.547 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.5104, allocations: 59.39 kB / 0.5984 GB, free: 7.477 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.5106, allocations: 214.7 kB / 0.5986 GB, free: 7.297 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.5107, allocations: 29.02 kB / 0.5986 GB, free: 7.266 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.793e-05/0.5108, allocations: 182.5 kB / 0.5988 GB, free: 7.117 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.825e-05/0.5109, allocations: 96.5 kB / 0.5989 GB, free: 7.035 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.446e-05/0.5109, allocations: 3.938 kB / 0.5989 GB, free: 7.031 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.511, allocations: 340.3 kB / 0.5992 GB, free: 6.703 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.5111, allocations: 72.05 kB / 0.5993 GB, free: 6.656 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.5113, allocations: 193.9 kB / 0.5995 GB, free: 6.445 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.5115, allocations: 107 kB / 0.5996 GB, free: 6.371 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.5115, allocations: 0 / 0.5996 GB, free: 6.371 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004379/0.5119, allocations: 310.7 kB / 0.5999 GB, free: 6.117 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.512, allocations: 8 kB / 0.5999 GB, free: 6.109 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.512, allocations: 8 kB / 0.5999 GB, free: 6.102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.512, allocations: 8 kB / 0.5999 GB, free: 6.094 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.5123, allocations: 83.61 kB / 0.6 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.5123, allocations: 8 kB / 0.6 GB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.5125, allocations: 27.73 kB / 0.6 GB, free: 5.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/0.5126, allocations: 19.12 kB / 0.6 GB, free: 5.965 MB / 394.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.0001058/0.5127, allocations: 124.1 kB / 0.6001 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.316e-05/0.5127, allocations: 31.7 kB / 0.6002 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004514/0.5132, allocations: 275.4 kB / 0.6004 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.5132, allocations: 4.141 kB / 0.6004 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.5132, allocations: 3.984 kB / 0.6004 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5132, allocations: 0 / 0.6004 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006768/0.5139, allocations: 0.625 MB / 0.601 GB, free: 5.039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5139, allocations: 4 kB / 0.6011 GB, free: 5.035 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.5142, allocations: 55.28 kB / 0.6011 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.5142, allocations: 0 / 0.6011 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.528e-05/0.5142, allocations: 7.984 kB / 0.6011 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.5142, allocations: 0 / 0.6011 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5142, allocations: 4 kB / 0.6011 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005547/0.5148, allocations: 466.3 kB / 0.6016 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.095e-05/0.5149, allocations: 112.4 kB / 0.6017 GB, free: 4.484 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.554e-05/0.5149, allocations: 0 / 0.6017 GB, free: 4.484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.5151, allocations: 11.98 kB / 0.6017 GB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.246e-05/0.5152, allocations: 23.22 kB / 0.6017 GB, free: 4.453 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.5152, allocations: 15.86 kB / 0.6017 GB, free: 4.441 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001299/0.5153, allocations: 166.2 kB / 0.6019 GB, free: 4.305 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5153, allocations: 0 / 0.6019 GB, free: 4.305 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003562/0.5157, allocations: 75.58 kB / 0.6019 GB, free: 4.234 MB / 394.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.0001499/0.5159, allocations: 115.6 kB / 0.6021 GB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003225/0.5162, allocations: 221.3 kB / 0.6023 GB, free: 3.953 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5162, allocations: 0 / 0.6023 GB, free: 3.953 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.5163, allocations: 112.4 kB / 0.6024 GB, free: 3.875 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.5166, allocations: 35.09 kB / 0.6024 GB, free: 3.852 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008181/0.5174, allocations: 464.8 kB / 0.6029 GB, free: 3.422 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.5178, allocations: 0.7961 MB / 0.6036 GB, free: 2.598 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.518, allocations: 47.53 kB / 0.6037 GB, free: 2.555 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.394e-05/0.5181, allocations: 27 kB / 0.6037 GB, free: 2.531 MB / 394.7 MB Notification: Performance of SimCode: time 4.3e-07/0.5181, allocations: 0 / 0.6037 GB, free: 2.531 MB / 394.7 MB Notification: Performance of Templates: time 0.00526/0.5233, allocations: 2.239 MB / 0.6059 GB, free: 320 kB / 394.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/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