Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001294/0.001294, allocations: 182.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.31/1.31, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008014/0.0008014, allocations: 85.02 kB / 267 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3536/0.3536, allocations: 43.47 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.841e-05/3.846e-05, allocations: 4 kB / 425.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 58.85 MB / 484.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3845/0.4979, allocations: 87.21 MB / 0.558 GB, free: 16.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001761/0.4981, allocations: 64.42 kB / 0.558 GB, free: 16.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01174/0.5099, allocations: 4.289 MB / 0.5622 GB, free: 14.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5099, allocations: 0 / 0.5622 GB, free: 14.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.51, allocations: 8 kB / 0.5622 GB, free: 14.31 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008123/0.5108, allocations: 0.52 MB / 0.5627 GB, free: 13.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.5109, allocations: 12.03 kB / 0.5628 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.959e-05/0.5109, allocations: 39.53 kB / 0.5628 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.5113, allocations: 312.8 kB / 0.5631 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.5114, allocations: 25.36 kB / 0.5631 GB, free: 13.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/0.5115, allocations: 35.06 kB / 0.5631 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.5119, allocations: 237.2 kB / 0.5634 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.5119, allocations: 3.906 kB / 0.5634 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.5119, allocations: 11.16 kB / 0.5634 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.512, allocations: 7.953 kB / 0.5634 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.5123, allocations: 157.5 kB / 0.5635 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.5135, allocations: 0.7997 MB / 0.5643 GB, free: 12.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.5138, allocations: 194.4 kB / 0.5645 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.5139, allocations: 84.52 kB / 0.5646 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.514, allocations: 4 kB / 0.5646 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003329/0.5143, allocations: 211.3 kB / 0.5648 GB, free: 12.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.5143, allocations: 3.938 kB / 0.5648 GB, free: 12.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004315/0.5148, allocations: 257 kB / 0.565 GB, free: 12.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.5148, allocations: 59.34 kB / 0.5651 GB, free: 12.1 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.515, allocations: 200.2 kB / 0.5653 GB, free: 11.94 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.515, allocations: 38 kB / 0.5653 GB, free: 11.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.5151, allocations: 164.9 kB / 0.5655 GB, free: 11.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.437e-05/0.5152, allocations: 103 kB / 0.5656 GB, free: 11.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/0.5152, allocations: 7.812 kB / 0.5656 GB, free: 11.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.572e-05/0.5153, allocations: 344.6 kB / 0.5659 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.5154, allocations: 71.66 kB / 0.566 GB, free: 11.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.5156, allocations: 217 kB / 0.5662 GB, free: 11.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.5157, allocations: 115.4 kB / 0.5663 GB, free: 11.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.5157, allocations: 0 / 0.5663 GB, free: 11.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004524/0.5162, allocations: 334 kB / 0.5666 GB, free: 10.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.5162, allocations: 8 kB / 0.5666 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.5162, allocations: 4 kB / 0.5666 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.5163, allocations: 4.469 kB / 0.5666 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.5166, allocations: 86.83 kB / 0.5667 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.5166, allocations: 11.31 kB / 0.5667 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.5167, allocations: 39.02 kB / 0.5668 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.5168, allocations: 17.88 kB / 0.5668 GB, free: 10.66 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,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * 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 7.757e-05/0.5168, allocations: 138.9 kB / 0.5669 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.5169, allocations: 29.08 kB / 0.5669 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004374/0.5173, allocations: 299.1 kB / 0.5672 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.5173, allocations: 7.938 kB / 0.5672 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5174, allocations: 0 / 0.5672 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5174, allocations: 0 / 0.5672 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005838/0.518, allocations: 0.6856 MB / 0.5679 GB, free: 9.676 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.518, allocations: 4 kB / 0.5679 GB, free: 9.672 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/0.5182, allocations: 51.53 kB / 0.568 GB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.5182, allocations: 4 kB / 0.568 GB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.5182, allocations: 7.562 kB / 0.568 GB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.5182, allocations: 3.984 kB / 0.568 GB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5183, allocations: 1.453 kB / 0.568 GB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005228/0.5188, allocations: 498.1 kB / 0.5685 GB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.5188, allocations: 108.3 kB / 0.5686 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.5189, allocations: 7.312 kB / 0.5686 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.519, allocations: 15.67 kB / 0.5686 GB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.75e-05/0.5191, allocations: 22.66 kB / 0.5686 GB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.5192, allocations: 19.17 kB / 0.5686 GB, free: 9.051 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001092/0.5193, allocations: 164.7 kB / 0.5688 GB, free: 8.918 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5193, allocations: 0 / 0.5688 GB, free: 8.918 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003122/0.5196, allocations: 63.09 kB / 0.5688 GB, free: 8.863 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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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.0001311/0.5197, allocations: 122.3 kB / 0.569 GB, free: 8.742 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003581/0.5201, allocations: 232.9 kB / 0.5692 GB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5201, allocations: 1.125 kB / 0.5692 GB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.5203, allocations: 120.3 kB / 0.5693 GB, free: 8.484 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.5205, allocations: 35.5 kB / 0.5693 GB, free: 8.461 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.5212, allocations: 455.4 kB / 0.5698 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001895/0.5214, allocations: 0.7841 MB / 0.5705 GB, free: 7.246 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.5215, allocations: 34.06 kB / 0.5706 GB, free: 7.215 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.886e-05/0.5216, allocations: 35.23 kB / 0.5706 GB, free: 7.184 MB / 394.7 MB Notification: Performance of SimCode: time 3e-07/0.5216, allocations: 0 / 0.5706 GB, free: 7.184 MB / 394.7 MB Notification: Performance of Templates: time 0.004771/0.5264, allocations: 2.228 MB / 0.5728 GB, free: 4.984 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches