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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007805/0.0007805, allocations: 75.7 kB / 20.01 MB, free: 4.508 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008198/0.0008198, allocations: 177.9 kB / 23.32 MB, free: 1.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8172/0.8172, allocations: 158.6 MB / 185.1 MB, free: 3.012 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1213/0.1213, allocations: 32.37 MB / 269.7 MB, free: 14.92 MB / 266.7 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 407 MB, free: 13.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.057e-05/2.231e-05, allocations: 5.234 kB / 407 MB, free: 13.42 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002312/0.002335, allocations: 2.123 MB / 409.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.003342, allocations: 0.7796 MB / 409.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.003466, allocations: 7.938 kB / 410 MB, free: 10.49 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.003596, allocations: 31.61 kB / 410 MB, free: 10.46 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.003782, allocations: 59.39 kB / 410 MB, free: 10.4 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.004047, allocations: 151.6 kB / 410.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.004303, allocations: 355 kB / 410.5 MB, free: 9.906 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.004468, allocations: 96.77 kB / 410.6 MB, free: 9.809 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.004652, allocations: 207.5 kB / 410.8 MB, free: 9.605 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.004794, allocations: 115.6 kB / 411 MB, free: 9.492 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.004832, allocations: 32 kB / 411 MB, free: 9.461 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.005e-05/0.004862, allocations: 32 kB / 411 MB, free: 9.43 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.004921, allocations: 83.73 kB / 411.1 MB, free: 9.348 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.707e-05/0.005009, allocations: 99.67 kB / 411.2 MB, free: 9.25 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.005284, allocations: 382.7 kB / 411.6 MB, free: 8.875 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.005286, allocations: 0 / 411.6 MB, free: 8.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.005287, allocations: 0 / 411.6 MB, free: 8.875 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.005291, allocations: 4 kB / 411.6 MB, free: 8.871 MB / 346.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.0008979/0.006189, allocations: 0.664 MB / 412.2 MB, free: 8.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.006225, allocations: 12.03 kB / 412.2 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.726e-05/0.006303, allocations: 75.28 kB / 412.3 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.491e-05/0.006358, allocations: 44.69 kB / 412.4 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.006671, allocations: 285.2 kB / 412.6 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.006688, allocations: 25.03 kB / 412.7 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.006724, allocations: 40.36 kB / 412.7 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.007051, allocations: 266.6 kB / 413 MB, free: 7.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.007067, allocations: 12.12 kB / 413 MB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.007087, allocations: 11.94 kB / 413 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.007094, allocations: 8 kB / 413 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002476/0.007342, allocations: 202.4 kB / 413.2 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007735/0.008115, allocations: 0.6869 MB / 413.9 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.008374, allocations: 186.8 kB / 414.1 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.008485, allocations: 88.81 kB / 414.2 MB, free: 6.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.008505, allocations: 4 kB / 414.2 MB, free: 6.145 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.008756, allocations: 231.1 kB / 414.4 MB, free: 5.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.483e-06/0.008757, allocations: 0 / 414.4 MB, free: 5.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005005/0.009258, allocations: 381.2 kB / 414.8 MB, free: 5.527 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.009291, allocations: 55.41 kB / 414.8 MB, free: 5.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.009439, allocations: 233.9 kB / 415 MB, free: 5.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.009461, allocations: 33.7 kB / 415.1 MB, free: 5.184 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.009536, allocations: 176.7 kB / 415.2 MB, free: 5.008 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.278e-05/0.009589, allocations: 103.2 kB / 415.3 MB, free: 4.906 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.644e-05/0.009656, allocations: 74.06 kB / 415.4 MB, free: 4.824 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.009735, allocations: 338.8 kB / 415.7 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.00986, allocations: 92.69 kB / 415.8 MB, free: 4.395 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.01003, allocations: 226.3 kB / 416.1 MB, free: 4.113 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.01034, allocations: 344.8 kB / 416.4 MB, free: 3.715 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.01034, allocations: 4 kB / 416.4 MB, free: 3.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003818/0.01072, allocations: 373.3 kB / 416.8 MB, free: 3.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.01073, allocations: 12 kB / 416.8 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.01074, allocations: 7.938 kB / 416.8 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.01075, allocations: 8 kB / 416.8 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.01092, allocations: 67.91 kB / 416.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.01093, allocations: 15.92 kB / 416.9 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.944e-05/0.01102, allocations: 35.78 kB / 416.9 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.01103, allocations: 19.98 kB / 416.9 MB, free: 3.176 MB / 346.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,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,mean.y,$PRE.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * 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.0001108/0.01114, allocations: 165.6 kB / 417.1 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.01117, allocations: 39.73 kB / 417.1 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003861/0.01156, allocations: 319.5 kB / 417.4 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.01156, allocations: 7.938 kB / 417.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.01156, allocations: 0 / 417.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.01157, allocations: 4 kB / 417.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005452/0.01211, allocations: 0.6496 MB / 418.1 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.01212, allocations: 0 / 418.1 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.01225, allocations: 51.91 kB / 418.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.01225, allocations: 0 / 418.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.01226, allocations: 11.98 kB / 418.2 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.01227, allocations: 4 kB / 418.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01227, allocations: 0 / 418.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006785/0.01295, allocations: 0.5266 MB / 418.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.536e-05/0.01297, allocations: 31.95 kB / 418.7 MB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.013, allocations: 15.97 kB / 418.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.996e-05/0.01308, allocations: 8 kB / 418.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.714e-05/0.01314, allocations: 23.95 kB / 418.8 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.01316, allocations: 19.98 kB / 418.8 MB, free: 1.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.231e-05/0.01325, allocations: 165.2 kB / 419 MB, free: 1.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01325, allocations: 0 / 419 MB, free: 1.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000227/0.01348, allocations: 67.84 kB / 419 MB, free: 1.004 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * 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.0006884/0.01417, allocations: 1.071 MB / 420.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003252/0.01449, allocations: 252.7 kB / 420.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01449, allocations: 0 / 420.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.01463, allocations: 127.8 kB / 420.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.01487, allocations: 32.47 kB / 420.5 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.0173, allocations: 3.057 MB / 423.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.01742, allocations: 182.1 kB / 423.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.641e-05/0.01752, allocations: 43.22 kB / 423.8 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.01764, allocations: 112.5 kB / 423.9 MB, free: 11.9 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01764, allocations: 0 / 423.9 MB, free: 11.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01772/0.03536, allocations: 6.325 MB / 430.2 MB, free: 5.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.024/7.059, allocations: 7.188 kB / 430.2 MB, free: 5.566 MB / 362.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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.000219736 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mean.x in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.211322563700378]