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.001048/0.001048, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009006/0.000901, allocations: 93.89 kB / 292.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2303/0.2303, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.018e-05, allocations: 8 kB / 460.4 MB, free: 70.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 63.24 MB / 0.5113 GB, free: 6.824 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3957/0.5082, allocations: 89.33 MB / 0.5986 GB, free: 4.723 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.5085, allocations: 66.59 kB / 0.5986 GB, free: 4.691 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01332/0.5218, allocations: 4.662 MB / 0.6032 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5219, allocations: 0 / 0.6032 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.5219, allocations: 8 kB / 0.6032 GB, free: 0.7383 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.0009712/0.5229, allocations: 0.5592 MB / 0.6038 GB, free: 160 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.5229, allocations: 15.97 kB / 0.6038 GB, free: 144 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004716/0.5234, allocations: 83.48 kB / 0.6039 GB, free: 60 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005338/0.524, allocations: 329.8 kB / 0.6042 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.524, allocations: 25.38 kB / 0.6042 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.593e-05/0.5241, allocations: 37.86 kB / 0.6042 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004717/0.5246, allocations: 244.8 kB / 0.6045 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.5246, allocations: 4 kB / 0.6045 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.5246, allocations: 14.48 kB / 0.6045 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.5246, allocations: 8 kB / 0.6045 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.5249, allocations: 163.3 kB / 0.6046 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.5263, allocations: 0.8539 MB / 0.6055 GB, free: 14.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.5266, allocations: 190.6 kB / 0.6057 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.5268, allocations: 82.94 kB / 0.6057 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.5268, allocations: 4.438 kB / 0.6057 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003486/0.5272, allocations: 220.7 kB / 0.6059 GB, free: 14.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.944e-06/0.5272, allocations: 0 / 0.6059 GB, free: 14.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004909/0.5277, allocations: 254.1 kB / 0.6062 GB, free: 14.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.5277, allocations: 62.89 kB / 0.6063 GB, free: 14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.528, allocations: 231.6 kB / 0.6065 GB, free: 13.81 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.528, allocations: 32.33 kB / 0.6065 GB, free: 13.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.762e-05/0.5281, allocations: 181.6 kB / 0.6067 GB, free: 13.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.5282, allocations: 103.1 kB / 0.6068 GB, free: 13.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.564e-05/0.5283, allocations: 10.19 kB / 0.6068 GB, free: 13.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.5284, allocations: 344.9 kB / 0.6071 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.5286, allocations: 71.75 kB / 0.6072 GB, free: 13.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.5288, allocations: 213 kB / 0.6074 GB, free: 12.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.529, allocations: 115.8 kB / 0.6075 GB, free: 12.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.529, allocations: 4 kB / 0.6075 GB, free: 12.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004853/0.5295, allocations: 342 kB / 0.6078 GB, free: 12.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.5295, allocations: 9.125 kB / 0.6078 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.5295, allocations: 11.94 kB / 0.6078 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/0.5295, allocations: 8 kB / 0.6079 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.5298, allocations: 71.89 kB / 0.6079 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.5299, allocations: 15.92 kB / 0.6079 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.53, allocations: 34.98 kB / 0.608 GB, free: 12.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.5301, allocations: 19.44 kB / 0.608 GB, free: 12.42 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.0001149/0.5302, allocations: 139.5 kB / 0.6081 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.011e-05/0.5302, allocations: 27.72 kB / 0.6081 GB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004883/0.5307, allocations: 293.9 kB / 0.6084 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.5307, allocations: 4 kB / 0.6084 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.5308, allocations: 0 / 0.6084 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.5308, allocations: 3.984 kB / 0.6084 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007614/0.5315, allocations: 0.6962 MB / 0.6091 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5315, allocations: 0 / 0.6091 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.5318, allocations: 47.91 kB / 0.6092 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.5318, allocations: 4 kB / 0.6092 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.5318, allocations: 15.67 kB / 0.6092 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5319, allocations: 0 / 0.6092 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5319, allocations: 0 / 0.6092 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006085/0.5325, allocations: 0.4896 MB / 0.6097 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.808e-05/0.5325, allocations: 104.7 kB / 0.6098 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.5326, allocations: 14.42 kB / 0.6098 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.5328, allocations: 19.42 kB / 0.6098 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-05/0.5328, allocations: 19.53 kB / 0.6098 GB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.5329, allocations: 14.73 kB / 0.6098 GB, free: 10.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001508/0.533, allocations: 184 kB / 0.61 GB, free: 10.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.533, allocations: 0 / 0.61 GB, free: 10.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000341/0.5334, allocations: 77.47 kB / 0.6101 GB, free: 10.58 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.0001669/0.5336, allocations: 125.8 kB / 0.6102 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003859/0.534, allocations: 244.4 kB / 0.6104 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.534, allocations: 4.062 kB / 0.6104 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.5341, allocations: 110.5 kB / 0.6105 GB, free: 10.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.5344, allocations: 35.11 kB / 0.6106 GB, free: 10.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007917/0.5352, allocations: 481.1 kB / 0.611 GB, free: 9.742 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.5355, allocations: 0.7992 MB / 0.6118 GB, free: 8.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.5357, allocations: 38.97 kB / 0.6118 GB, free: 8.867 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.305e-05/0.5358, allocations: 31.42 kB / 0.6119 GB, free: 8.836 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5358, allocations: 0 / 0.6119 GB, free: 8.836 MB / 410.7 MB Notification: Performance of Templates: time 0.005277/0.5411, allocations: 2.406 MB / 0.6142 GB, free: 6.457 MB / 410.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