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.001382/0.001382, allocations: 114.4 kB / 17.12 MB, free: 5.891 MB / 14.72 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.001491/0.001491, allocations: 211.2 kB / 20.09 MB, free: 2.941 MB / 14.72 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 1.634/1.634, allocations: 207.6 MB / 230.5 MB, free: 4.023 MB / 174.1 MB " [Timeout remaining time 178] 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.359/0.359, allocations: 44.23 MB / 326.6 MB, free: 6.801 MB / 254.1 MB " [Timeout remaining time 179] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 71.89 kB / 462.2 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2989, allocations: 61 MB / 0.5109 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003154/0.3021, allocations: 2.244 MB / 0.5131 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.3035, allocations: 0.822 MB / 0.5139 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.3036, allocations: 7.75 kB / 0.5139 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.3037, allocations: 31.59 kB / 0.514 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.3039, allocations: 67.3 kB / 0.514 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002657/0.3042, allocations: 138.1 kB / 0.5142 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.3045, allocations: 358.9 kB / 0.5145 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.3047, allocations: 91.06 kB / 0.5146 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.3049, allocations: 143.1 kB / 0.5147 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.3051, allocations: 155.7 kB / 0.5149 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.241e-05/0.3051, allocations: 33.19 kB / 0.5149 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.929e-05/0.3052, allocations: 32.56 kB / 0.5149 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.92e-05/0.3052, allocations: 85.48 kB / 0.515 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.3053, allocations: 156.1 kB / 0.5152 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.3056, allocations: 360.9 kB / 0.5155 GB, free: 9.648 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3057, allocations: 0 / 0.5155 GB, free: 9.648 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3057, allocations: 1.375 kB / 0.5155 GB, free: 9.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.3057, allocations: 0 / 0.5155 GB, free: 9.648 MB / 382.1 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.001014/0.3067, allocations: 0.6226 MB / 0.5161 GB, free: 9.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3067, allocations: 13.48 kB / 0.5161 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.822e-05/0.3068, allocations: 70.23 kB / 0.5162 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/0.3069, allocations: 49.27 kB / 0.5163 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004428/0.3073, allocations: 336 kB / 0.5166 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.3074, allocations: 26.06 kB / 0.5166 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.568e-05/0.3074, allocations: 30.53 kB / 0.5166 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000525/0.3079, allocations: 274.7 kB / 0.5169 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.308, allocations: 1 kB / 0.5169 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.308, allocations: 18.92 kB / 0.5169 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.308, allocations: 9.734 kB / 0.5169 GB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000419/0.3084, allocations: 189.8 kB / 0.5171 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.3096, allocations: 0.8077 MB / 0.5179 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003695/0.31, allocations: 194.8 kB / 0.5181 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.3101, allocations: 92.75 kB / 0.5182 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.3102, allocations: 4 kB / 0.5182 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003569/0.3105, allocations: 227.1 kB / 0.5184 GB, free: 7.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.3105, allocations: 0 / 0.5184 GB, free: 7.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007232/0.3113, allocations: 378.1 kB / 0.5187 GB, free: 6.777 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.3113, allocations: 59.41 kB / 0.5188 GB, free: 6.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.3115, allocations: 233 kB / 0.519 GB, free: 6.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.3115, allocations: 37.69 kB / 0.5191 GB, free: 6.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/0.3115, allocations: 176.7 kB / 0.5192 GB, free: 6.254 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.3116, allocations: 107.1 kB / 0.5193 GB, free: 6.148 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.3117, allocations: 70.06 kB / 0.5194 GB, free: 6.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.699e-05/0.3117, allocations: 342.8 kB / 0.5197 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.3119, allocations: 88.69 kB / 0.5198 GB, free: 5.641 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.3121, allocations: 238.3 kB / 0.52 GB, free: 5.348 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/0.3125, allocations: 336.8 kB / 0.5204 GB, free: 4.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3125, allocations: 4 kB / 0.5204 GB, free: 4.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005153/0.313, allocations: 372.8 kB / 0.5207 GB, free: 4.582 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.313, allocations: 8.469 kB / 0.5207 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.313, allocations: 4 kB / 0.5207 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3131, allocations: 15.98 kB / 0.5207 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/0.3133, allocations: 75.84 kB / 0.5208 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.3133, allocations: 7.984 kB / 0.5208 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.3135, allocations: 27.84 kB / 0.5208 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.3135, allocations: 20 kB / 0.5209 GB, free: 4.426 MB / 382.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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.0001144/0.3136, allocations: 169.6 kB / 0.521 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.3137, allocations: 27.86 kB / 0.5211 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005402/0.3142, allocations: 323.4 kB / 0.5214 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3142, allocations: 4 kB / 0.5214 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3142, allocations: 0 / 0.5214 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.3142, allocations: 0 / 0.5214 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000728/0.315, allocations: 0.7168 MB / 0.5221 GB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.315, allocations: 0 / 0.5221 GB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.3152, allocations: 47.91 kB / 0.5221 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.3152, allocations: 4 kB / 0.5221 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.3152, allocations: 11.98 kB / 0.5221 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3152, allocations: 4 kB / 0.5221 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3152, allocations: 0 / 0.5221 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007079/0.3159, allocations: 0.519 MB / 0.5226 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.269e-05/0.316, allocations: 108.9 kB / 0.5227 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/0.316, allocations: 7.984 kB / 0.5227 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.3162, allocations: 16.12 kB / 0.5228 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.3163, allocations: 31.89 kB / 0.5228 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.3163, allocations: 19.92 kB / 0.5228 GB, free: 2.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.3164, allocations: 168.4 kB / 0.523 GB, free: 2.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3164, allocations: 0 / 0.523 GB, free: 2.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003406/0.3167, allocations: 71.81 kB / 0.523 GB, free: 2.094 MB / 382.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.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.0008998/0.3176, allocations: 1.068 MB / 0.5241 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004919/0.3181, allocations: 252.4 kB / 0.5243 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3181, allocations: 0 / 0.5243 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002136/0.3183, allocations: 116.6 kB / 0.5244 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.3187, allocations: 49.2 kB / 0.5245 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003958/0.3226, allocations: 3.084 MB / 0.5275 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.3231, allocations: 0.7881 MB / 0.5283 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.3232, allocations: 47.22 kB / 0.5283 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.3234, allocations: 107.4 kB / 0.5284 GB, free: 12.34 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3234, allocations: 0 / 0.5284 GB, free: 12.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.3531, allocations: 5.555 MB / 0.5338 GB, free: 6.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.384/8.737, allocations: 7.938 kB / 0.5338 GB, free: 6.766 MB / 398.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/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: 11.946568170009414]