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.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.0008658/0.0008658, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001651/0.001651, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9295/0.9295, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2779/0.2779, allocations: 32.79 MB / 293.5 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.143e-05/2.333e-05, allocations: 2.281 kB / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002731/0.002754, allocations: 2.18 MB / 441.8 MB, free: 2.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.003977, allocations: 0.8606 MB / 442.6 MB, free: 1.203 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.004127, allocations: 7.938 kB / 442.6 MB, free: 1.195 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.00427, allocations: 43.53 kB / 442.7 MB, free: 1.152 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.004499, allocations: 71.31 kB / 442.7 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.004885, allocations: 183.5 kB / 442.9 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.00521, allocations: 398.8 kB / 443.3 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.00542, allocations: 88.77 kB / 443.4 MB, free: 432 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002901/0.00571, allocations: 227.5 kB / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.005865, allocations: 119.6 kB / 443.7 MB, free: 84 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.719e-05/0.005902, allocations: 36 kB / 443.8 MB, free: 48 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1966/0.2025, allocations: 50.94 kB / 443.8 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.2026, allocations: 87.66 kB / 443.9 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.2028, allocations: 113.4 kB / 444 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.2032, allocations: 434.9 kB / 444.4 MB, free: 43.73 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2032, allocations: 0 / 444.4 MB, free: 43.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2033, allocations: 0 / 444.4 MB, free: 43.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2033, allocations: 0 / 444.4 MB, free: 43.73 MB / 410.7 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.0008443/0.2041, allocations: 0.7228 MB / 445.2 MB, free: 43.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.2041, allocations: 8.75 kB / 445.2 MB, free: 43.3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.823e-05/0.2042, allocations: 82.08 kB / 445.2 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002435/0.2045, allocations: 83.02 kB / 445.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.2048, allocations: 299.3 kB / 445.6 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.2048, allocations: 24.69 kB / 445.6 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.2048, allocations: 40.67 kB / 445.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.2052, allocations: 288.9 kB / 446 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.2052, allocations: 1.125 kB / 446 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.2052, allocations: 13.66 kB / 446 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.2052, allocations: 15.06 kB / 446 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002367/0.2054, allocations: 202.1 kB / 446.2 MB, free: 43.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000778/0.2062, allocations: 0.7418 MB / 446.9 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002587/0.2065, allocations: 193.3 kB / 447.1 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.936e-05/0.2066, allocations: 85.25 kB / 447.2 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.2066, allocations: 9.625 kB / 447.2 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.2068, allocations: 226.2 kB / 447.4 MB, free: 42.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.854e-06/0.2068, allocations: 0 / 447.4 MB, free: 42.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004682/0.2073, allocations: 383.7 kB / 447.8 MB, free: 42.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.2073, allocations: 56.91 kB / 447.9 MB, free: 42.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.2075, allocations: 262.4 kB / 448.1 MB, free: 42.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.2075, allocations: 39.22 kB / 448.2 MB, free: 42.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.815e-05/0.2075, allocations: 191.5 kB / 448.3 MB, free: 42.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.858e-05/0.2076, allocations: 105.7 kB / 448.5 MB, free: 42.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-05/0.2076, allocations: 73.75 kB / 448.5 MB, free: 42.13 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.774e-05/0.2077, allocations: 341 kB / 448.9 MB, free: 41.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.2078, allocations: 93.27 kB / 448.9 MB, free: 41.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.2079, allocations: 228.6 kB / 449.2 MB, free: 41.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.2082, allocations: 348 kB / 449.5 MB, free: 41.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2082, allocations: 7.547 kB / 449.5 MB, free: 41.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003315/0.2085, allocations: 370.2 kB / 449.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2085, allocations: 8.656 kB / 449.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2085, allocations: 3.781 kB / 449.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2085, allocations: 8.594 kB / 449.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.2087, allocations: 74.55 kB / 450 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.2087, allocations: 15.3 kB / 450 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.332e-05/0.2088, allocations: 31.53 kB / 450 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.2088, allocations: 21.39 kB / 450 MB, free: 41.19 MB / 410.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_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.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 9.846e-05/0.2089, allocations: 173.3 kB / 450.2 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.2089, allocations: 36.88 kB / 450.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003727/0.2093, allocations: 325.7 kB / 450.6 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2093, allocations: 2.906 kB / 450.6 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2093, allocations: 0 / 450.6 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2093, allocations: 4 kB / 450.6 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004882/0.2098, allocations: 0.6713 MB / 451.2 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2098, allocations: 2.75 kB / 451.2 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.2099, allocations: 51.69 kB / 451.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/0.2099, allocations: 2.844 kB / 451.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.21, allocations: 10.08 kB / 451.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.21, allocations: 0 / 451.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.21, allocations: 3 kB / 451.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004426/0.2104, allocations: 0.535 MB / 451.8 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.2104, allocations: 31.58 kB / 451.9 MB, free: 40.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.2105, allocations: 6.938 kB / 451.9 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.879e-05/0.2105, allocations: 15.38 kB / 451.9 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.2106, allocations: 22.36 kB / 451.9 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.2106, allocations: 15.86 kB / 451.9 MB, free: 40.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.13e-05/0.2107, allocations: 189.1 kB / 452.1 MB, free: 40.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2107, allocations: 4 kB / 452.1 MB, free: 40.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002366/0.2109, allocations: 78.86 kB / 452.2 MB, free: 40.01 MB / 410.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_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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.0005768/0.2115, allocations: 1.068 MB / 453.3 MB, free: 39.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000286/0.2118, allocations: 255.7 kB / 453.5 MB, free: 39.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2118, allocations: 0 / 453.5 MB, free: 39.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.2119, allocations: 129.8 kB / 453.6 MB, free: 39.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.2122, allocations: 37.28 kB / 453.7 MB, free: 39.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.2142, allocations: 3.237 MB / 456.9 MB, free: 36.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.931e-05/0.2143, allocations: 197.8 kB / 457.1 MB, free: 36.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.207e-05/0.2144, allocations: 45.7 kB / 457.2 MB, free: 36.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.2145, allocations: 125 kB / 457.3 MB, free: 36.75 MB / 410.7 MB Notification: Performance of SimCode: time 8.22e-07/0.2145, allocations: 0 / 457.3 MB, free: 36.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.2354, allocations: 6.845 MB / 464.1 MB, free: 35.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.752/6.987, allocations: 17.25 kB / 464.1 MB, free: 35.42 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.073477116413414]