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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2893/0.2893, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.377, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004242/0.3813, allocations: 2.316 MB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.3831, allocations: 0.902 MB / 0.5337 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.3833, allocations: 9.312 kB / 0.5337 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.3835, allocations: 43.47 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.3837, allocations: 64.61 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.3842, allocations: 184.3 kB / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004905/0.3847, allocations: 389.5 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.385, allocations: 126.1 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.3853, allocations: 161.8 kB / 0.5346 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.3856, allocations: 164.8 kB / 0.5347 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.022e-05/0.3857, allocations: 36.25 kB / 0.5348 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.3858, allocations: 47.47 kB / 0.5348 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.3859, allocations: 89.55 kB / 0.5349 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.3861, allocations: 173.5 kB / 0.5351 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005503/0.3867, allocations: 415.6 kB / 0.5355 GB, free: 9.543 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3867, allocations: 1.375 kB / 0.5355 GB, free: 9.543 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3867, allocations: 0 / 0.5355 GB, free: 9.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3867, allocations: 0 / 0.5355 GB, free: 9.543 MB / 398.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.001244/0.388, allocations: 0.6696 MB / 0.5361 GB, free: 8.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.388, allocations: 8.844 kB / 0.5361 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.3881, allocations: 86.09 kB / 0.5362 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004813/0.3886, allocations: 85.38 kB / 0.5363 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005727/0.3892, allocations: 362.7 kB / 0.5366 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.3893, allocations: 26.22 kB / 0.5367 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.3893, allocations: 39.44 kB / 0.5367 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007092/0.3901, allocations: 290.1 kB / 0.537 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.3901, allocations: 5.156 kB / 0.537 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.517e-05/0.3901, allocations: 11.31 kB / 0.537 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.3902, allocations: 6.906 kB / 0.537 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005809/0.3908, allocations: 197.6 kB / 0.5372 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.3927, allocations: 0.8632 MB / 0.538 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.3933, allocations: 205.5 kB / 0.5382 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.3936, allocations: 97.31 kB / 0.5383 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.3936, allocations: 19.47 kB / 0.5383 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005421/0.3942, allocations: 220 kB / 0.5386 GB, free: 7.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.044e-06/0.3942, allocations: 0 / 0.5386 GB, free: 7.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001085/0.3953, allocations: 370.4 kB / 0.5389 GB, free: 6.992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.3954, allocations: 64.14 kB / 0.539 GB, free: 6.922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003868/0.3958, allocations: 272.9 kB / 0.5392 GB, free: 6.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.3958, allocations: 40.48 kB / 0.5393 GB, free: 6.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.396, allocations: 195 kB / 0.5395 GB, free: 6.508 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.713e-05/0.3961, allocations: 95.72 kB / 0.5395 GB, free: 6.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.3963, allocations: 74.69 kB / 0.5396 GB, free: 6.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.3965, allocations: 345.8 kB / 0.5399 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.3967, allocations: 89.3 kB / 0.54 GB, free: 5.992 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003661/0.3971, allocations: 231.5 kB / 0.5403 GB, free: 5.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006223/0.3977, allocations: 349 kB / 0.5406 GB, free: 5.484 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3978, allocations: 2.281 kB / 0.5406 GB, free: 5.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007489/0.3985, allocations: 374.1 kB / 0.5409 GB, free: 5.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.3985, allocations: 7.156 kB / 0.541 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.3986, allocations: 4.125 kB / 0.541 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.3986, allocations: 6.969 kB / 0.541 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003213/0.3989, allocations: 74.48 kB / 0.541 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.3989, allocations: 6.875 kB / 0.541 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.3991, allocations: 44.55 kB / 0.5411 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.3992, allocations: 21.22 kB / 0.5411 GB, free: 5.23 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.0002145/0.3994, allocations: 167.6 kB / 0.5413 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/0.3995, allocations: 30.72 kB / 0.5413 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006928/0.4002, allocations: 325.4 kB / 0.5416 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.4002, allocations: 11.53 kB / 0.5416 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4002, allocations: 0 / 0.5416 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4002, allocations: 0 / 0.5416 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.4012, allocations: 0.7327 MB / 0.5423 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.4012, allocations: 0 / 0.5423 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.4015, allocations: 48.09 kB / 0.5424 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.4015, allocations: 5.531 kB / 0.5424 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.4016, allocations: 14.92 kB / 0.5424 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.039e-05/0.4016, allocations: 5.406 kB / 0.5424 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4016, allocations: 0 / 0.5424 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000959/0.4025, allocations: 0.5232 MB / 0.5429 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.365e-05/0.4026, allocations: 113.7 kB / 0.543 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.351e-05/0.4027, allocations: 15.42 kB / 0.543 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.4029, allocations: 17.55 kB / 0.543 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.198e-05/0.403, allocations: 22.22 kB / 0.5431 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.403, allocations: 8.906 kB / 0.5431 GB, free: 3.781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002525/0.4033, allocations: 189.3 kB / 0.5433 GB, free: 3.648 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.405e-06/0.4033, allocations: 0 / 0.5433 GB, free: 3.648 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00044/0.4038, allocations: 79.41 kB / 0.5433 GB, free: 3.621 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.001523/0.4053, allocations: 1.073 MB / 0.5444 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007061/0.406, allocations: 267.6 kB / 0.5446 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.406, allocations: 1.188 kB / 0.5446 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003128/0.4063, allocations: 126.8 kB / 0.5448 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.4068, allocations: 53.2 kB / 0.5448 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.4119, allocations: 3.249 MB / 0.548 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.4123, allocations: 0.7997 MB / 0.5488 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.4125, allocations: 47.22 kB / 0.5488 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.4126, allocations: 123.6 kB / 0.5489 GB, free: 14.2 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4126, allocations: 0 / 0.5489 GB, free: 14.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0346/0.4473, allocations: 5.989 MB / 0.5548 GB, free: 8.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/8.627, allocations: 7.922 kB / 0.5548 GB, free: 8.262 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches