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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 114.5 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 187.7 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2243/0.2243, allocations: 44.18 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4155, allocations: 60.82 MB / 0.5184 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00287/0.4184, allocations: 2.239 MB / 0.5206 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.4196, allocations: 0.7724 MB / 0.5214 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.4197, allocations: 3.625 kB / 0.5214 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.4199, allocations: 34.45 kB / 0.5214 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.4201, allocations: 61.86 kB / 0.5215 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.4204, allocations: 151.6 kB / 0.5216 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.4207, allocations: 372.9 kB / 0.522 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.421, allocations: 128.5 kB / 0.5221 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.4212, allocations: 141.6 kB / 0.5222 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.4214, allocations: 153.2 kB / 0.5224 GB, free: 460 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.75e-05/0.4214, allocations: 35.38 kB / 0.5224 GB, free: 460 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.343e-05/0.4215, allocations: 38 kB / 0.5224 GB, free: 456 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.295e-05/0.4216, allocations: 92.08 kB / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.4217, allocations: 161.8 kB / 0.5227 GB, free: 280 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.4222, allocations: 379.1 kB / 0.523 GB, free: 108 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.4222, allocations: 3.938 kB / 0.523 GB, free: 104 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4222, allocations: 0 / 0.523 GB, free: 104 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.4222, allocations: 4.906 kB / 0.523 GB, free: 100 kB / 382.1 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.001154/0.4234, allocations: 0.6262 MB / 0.5237 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4234, allocations: 9.344 kB / 0.5237 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.4235, allocations: 80.27 kB / 0.5237 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.306e-05/0.4236, allocations: 42.28 kB / 0.5238 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005516/0.4242, allocations: 347.7 kB / 0.5241 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.4242, allocations: 22.17 kB / 0.5241 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.35e-05/0.4243, allocations: 40.64 kB / 0.5242 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.4249, allocations: 288.6 kB / 0.5245 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.4249, allocations: 0 / 0.5245 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.4249, allocations: 11.98 kB / 0.5245 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.4249, allocations: 7.672 kB / 0.5245 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004557/0.4254, allocations: 198.3 kB / 0.5247 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.4268, allocations: 0.848 MB / 0.5255 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.4273, allocations: 203 kB / 0.5257 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.4275, allocations: 94.47 kB / 0.5258 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.4275, allocations: 4.984 kB / 0.5258 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004613/0.428, allocations: 227.4 kB / 0.526 GB, free: 14.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.428, allocations: 0 / 0.526 GB, free: 14.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008713/0.4289, allocations: 367.3 kB / 0.5263 GB, free: 14.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.429, allocations: 65.38 kB / 0.5264 GB, free: 14.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.4293, allocations: 231 kB / 0.5266 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.342e-05/0.4293, allocations: 37.98 kB / 0.5267 GB, free: 13.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.4295, allocations: 183.8 kB / 0.5268 GB, free: 13.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.809e-05/0.4296, allocations: 99.41 kB / 0.5269 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.4297, allocations: 77.55 kB / 0.527 GB, free: 13.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4299, allocations: 345.6 kB / 0.5273 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.4301, allocations: 88.83 kB / 0.5274 GB, free: 13.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.4304, allocations: 228.2 kB / 0.5276 GB, free: 12.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005458/0.431, allocations: 344.4 kB / 0.528 GB, free: 12.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.431, allocations: 5.312 kB / 0.528 GB, free: 12.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006825/0.4317, allocations: 371.4 kB / 0.5283 GB, free: 12.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4317, allocations: 9.312 kB / 0.5283 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.4317, allocations: 4.406 kB / 0.5283 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.4318, allocations: 6.875 kB / 0.5283 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.4321, allocations: 79.89 kB / 0.5284 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.755e-05/0.4321, allocations: 9.969 kB / 0.5284 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.4323, allocations: 39.83 kB / 0.5285 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.4323, allocations: 21.81 kB / 0.5285 GB, free: 12.42 MB / 398.1 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,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000199/0.4325, allocations: 165.3 kB / 0.5286 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.949e-05/0.4326, allocations: 25.23 kB / 0.5287 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006983/0.4333, allocations: 329.9 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.4333, allocations: 4.312 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.4333, allocations: 4 kB / 0.529 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4333, allocations: 3.984 kB / 0.529 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009986/0.4343, allocations: 0.7169 MB / 0.5297 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4343, allocations: 4 kB / 0.5297 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000246/0.4346, allocations: 47.25 kB / 0.5297 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4346, allocations: 5.312 kB / 0.5298 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.4346, allocations: 12.23 kB / 0.5298 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.4347, allocations: 5.344 kB / 0.5298 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4347, allocations: 0 / 0.5298 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009333/0.4356, allocations: 0.5229 MB / 0.5303 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.326e-05/0.4357, allocations: 104.4 kB / 0.5304 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.346e-05/0.4358, allocations: 15.14 kB / 0.5304 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.4359, allocations: 17.39 kB / 0.5304 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.382e-05/0.436, allocations: 22.5 kB / 0.5304 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.4361, allocations: 13.64 kB / 0.5304 GB, free: 10.99 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.4363, allocations: 168.4 kB / 0.5306 GB, free: 10.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4363, allocations: 0 / 0.5306 GB, free: 10.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003993/0.4367, allocations: 77.58 kB / 0.5307 GB, free: 10.84 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001432/0.4381, allocations: 1.062 MB / 0.5317 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005704/0.4387, allocations: 262.3 kB / 0.532 GB, free: 9.879 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4387, allocations: 2.156 kB / 0.532 GB, free: 9.879 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.439, allocations: 131.8 kB / 0.5321 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/0.4394, allocations: 44.77 kB / 0.5321 GB, free: 9.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004468/0.4439, allocations: 3.092 MB / 0.5352 GB, free: 7.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006117/0.4445, allocations: 0.7891 MB / 0.5359 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002162/0.4447, allocations: 37.25 kB / 0.536 GB, free: 6.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.445, allocations: 114.1 kB / 0.5361 GB, free: 6.555 MB / 398.1 MB Notification: Performance of SimCode: time 1.653e-06/0.445, allocations: 9.625 kB / 0.5361 GB, free: 6.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03123/0.4762, allocations: 5.521 MB / 0.5415 GB, free: 3.777 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.63, allocations: 10.59 kB / 0.5415 GB, free: 3.77 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches