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.00166/0.00166, allocations: 117.2 kB / 17.79 MB, free: 5.254 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.001791/0.001791, allocations: 184.2 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.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2222/0.2222, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003144/0.003144, allocations: 63.88 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3642, allocations: 60.82 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002959/0.3672, allocations: 2.238 MB / 0.5206 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.3684, allocations: 0.778 MB / 0.5214 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.3685, allocations: 4.125 kB / 0.5214 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.3687, allocations: 38.88 kB / 0.5214 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.3689, allocations: 57.7 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.3692, allocations: 157 kB / 0.5216 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003724/0.3695, allocations: 368.3 kB / 0.522 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.3697, allocations: 96.22 kB / 0.5221 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.3699, allocations: 145.1 kB / 0.5222 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.3701, allocations: 153.8 kB / 0.5223 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.636e-05/0.3702, allocations: 39.08 kB / 0.5224 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.192e-05/0.3702, allocations: 33.56 kB / 0.5224 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.498e-05/0.3703, allocations: 81.05 kB / 0.5225 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.3704, allocations: 167.3 kB / 0.5227 GB, free: 408 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.3709, allocations: 379.2 kB / 0.523 GB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3709, allocations: 1.438 kB / 0.523 GB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3709, allocations: 0 / 0.523 GB, free: 236 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.3709, allocations: 4.703 kB / 0.523 GB, free: 232 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.001099/0.372, allocations: 0.6256 MB / 0.5236 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.372, allocations: 9.844 kB / 0.5236 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.3721, allocations: 83.92 kB / 0.5237 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.317e-05/0.3722, allocations: 46.36 kB / 0.5238 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.3728, allocations: 347.3 kB / 0.5241 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.3728, allocations: 22.75 kB / 0.5241 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.819e-05/0.3728, allocations: 36.02 kB / 0.5242 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005964/0.3734, allocations: 289 kB / 0.5244 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.3735, allocations: 3.938 kB / 0.5244 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.3735, allocations: 17.44 kB / 0.5244 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.3735, allocations: 6.219 kB / 0.5245 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.374, allocations: 198.5 kB / 0.5246 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.3754, allocations: 0.8354 MB / 0.5255 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/0.3758, allocations: 186.3 kB / 0.5256 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.3761, allocations: 93.83 kB / 0.5257 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.3761, allocations: 7.719 kB / 0.5257 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004428/0.3765, allocations: 232.6 kB / 0.526 GB, free: 14.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.3765, allocations: 0 / 0.526 GB, free: 14.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008627/0.3774, allocations: 361.8 kB / 0.5263 GB, free: 14.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.3775, allocations: 58.02 kB / 0.5264 GB, free: 14.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.3777, allocations: 237 kB / 0.5266 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.203e-05/0.3778, allocations: 36.86 kB / 0.5266 GB, free: 13.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.3779, allocations: 190 kB / 0.5268 GB, free: 13.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.383e-05/0.378, allocations: 106.6 kB / 0.5269 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.3781, allocations: 69.59 kB / 0.527 GB, free: 13.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3783, allocations: 345.1 kB / 0.5273 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.3785, allocations: 92.5 kB / 0.5274 GB, free: 13.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003088/0.3788, allocations: 225.7 kB / 0.5276 GB, free: 13.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005334/0.3793, allocations: 347.8 kB / 0.5279 GB, free: 12.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.3793, allocations: 1.25 kB / 0.5279 GB, free: 12.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006363/0.38, allocations: 364.4 kB / 0.5283 GB, free: 12.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.38, allocations: 6.062 kB / 0.5283 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.38, allocations: 8.391 kB / 0.5283 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.38, allocations: 6.688 kB / 0.5283 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.3803, allocations: 75.5 kB / 0.5284 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.3803, allocations: 9.641 kB / 0.5284 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.3805, allocations: 32.94 kB / 0.5284 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.3805, allocations: 29.38 kB / 0.5284 GB, free: 12.54 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.0001951/0.3807, allocations: 168.6 kB / 0.5286 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.3807, allocations: 25.36 kB / 0.5286 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007118/0.3815, allocations: 331.2 kB / 0.5289 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.3815, allocations: 3.844 kB / 0.5289 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3815, allocations: 4 kB / 0.5289 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3815, allocations: 4 kB / 0.529 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.3825, allocations: 0.728 MB / 0.5297 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3825, allocations: 0 / 0.5297 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.3828, allocations: 48.72 kB / 0.5297 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3828, allocations: 1.969 kB / 0.5297 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.829e-05/0.3828, allocations: 9.859 kB / 0.5297 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.3828, allocations: 9.875 kB / 0.5297 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3828, allocations: 0 / 0.5297 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009316/0.3838, allocations: 0.5149 MB / 0.5302 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.3838, allocations: 104.7 kB / 0.5303 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.3839, allocations: 15.09 kB / 0.5303 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.3841, allocations: 22.08 kB / 0.5304 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.146e-05/0.3841, allocations: 22.72 kB / 0.5304 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.3842, allocations: 11.98 kB / 0.5304 GB, free: 11.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001734/0.3843, allocations: 168.9 kB / 0.5306 GB, free: 10.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3843, allocations: 0 / 0.5306 GB, free: 10.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003695/0.3847, allocations: 69.47 kB / 0.5306 GB, free: 10.96 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.001294/0.386, allocations: 1.073 MB / 0.5317 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005418/0.3865, allocations: 244.1 kB / 0.5319 GB, free: 9.996 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3866, allocations: 3.938 kB / 0.5319 GB, free: 9.992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.3868, allocations: 121 kB / 0.532 GB, free: 9.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.3871, allocations: 32.94 kB / 0.5321 GB, free: 9.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004053/0.3912, allocations: 3.105 MB / 0.5351 GB, free: 7.523 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004259/0.3916, allocations: 0.7879 MB / 0.5359 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.3918, allocations: 46.69 kB / 0.5359 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.392, allocations: 114.4 kB / 0.536 GB, free: 6.664 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.392, allocations: 0 / 0.536 GB, free: 6.664 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.4208, allocations: 5.543 MB / 0.5414 GB, free: 3.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.273/8.693, allocations: 5.219 kB / 0.5414 GB, free: 3.891 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