Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.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.001295/0.001295, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001443/0.001443, allocations: 215.4 kB / 23.04 MB, free: 5.07 MB / 14.72 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 1.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002532/0.002532, allocations: 277.1 kB / 313.5 MB, free: 2.785 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.203/1.203, allocations: 180.6 MB / 0.5377 GB, free: 13 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 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.002813/0.002813, allocations: 94.22 kB / 0.7404 GB, free: 28.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2169, allocations: 95.38 MB / 0.8335 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002981/0.2198, allocations: 1.571 MB / 0.835 GB, free: 7.035 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003831/0.2202, allocations: 116.5 kB / 0.8351 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.174e-05/0.2203, allocations: 0 / 0.8351 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.2204, allocations: 19.86 kB / 0.8352 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.742e-05/0.2204, allocations: 11.86 kB / 0.8352 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.2207, allocations: 27.91 kB / 0.8352 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.2208, allocations: 51.84 kB / 0.8352 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.2209, allocations: 19.98 kB / 0.8353 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.461e-05/0.221, allocations: 19.92 kB / 0.8353 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.135e-05/0.221, allocations: 39.83 kB / 0.8353 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.2211, allocations: 4 kB / 0.8353 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.2211, allocations: 15.98 kB / 0.8353 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.149e-05/0.2212, allocations: 15.98 kB / 0.8354 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 4.359e-05/0.2212, allocations: 23.81 kB / 0.8354 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.2214, allocations: 71.94 kB / 0.8355 GB, free: 6.602 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2214, allocations: 4 kB / 0.8355 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2214, allocations: 0 / 0.8355 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.2214, allocations: 0 / 0.8355 GB, free: 6.598 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005763/0.2219, allocations: 302.1 kB / 0.8357 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.222, allocations: 9.344 kB / 0.8358 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.199e-05/0.222, allocations: 8.188 kB / 0.8358 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.94e-05/0.222, allocations: 30.75 kB / 0.8358 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.2221, allocations: 8.891 kB / 0.8358 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.2222, allocations: 122.5 kB / 0.8359 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.2222, allocations: 4.375 kB / 0.8359 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.2222, allocations: 4.375 kB / 0.8359 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.2225, allocations: 93.89 kB / 0.836 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2225, allocations: 0 / 0.836 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.2226, allocations: 4 kB / 0.836 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2226, allocations: 0 / 0.836 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.2229, allocations: 87.84 kB / 0.8361 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005433/0.2234, allocations: 299.7 kB / 0.8364 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.2236, allocations: 58.53 kB / 0.8364 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.2238, allocations: 38.59 kB / 0.8365 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.2239, allocations: 3.984 kB / 0.8365 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.2239, allocations: 38.59 kB / 0.8365 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2239, allocations: 4 kB / 0.8365 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0005667/0.2245, allocations: 133.6 kB / 0.8367 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.2245, allocations: 51.41 kB / 0.8367 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.2246, allocations: 109.8 kB / 0.8368 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.2246, allocations: 33.64 kB / 0.8368 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.2247, allocations: 100.1 kB / 0.8369 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.2247, allocations: 11.84 kB / 0.8369 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/0.2247, allocations: 17.72 kB / 0.837 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.2249, allocations: 322.8 kB / 0.8373 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.225, allocations: 27.97 kB / 0.8373 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.2252, allocations: 43.95 kB / 0.8373 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.2255, allocations: 76.72 kB / 0.8374 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2255, allocations: 0 / 0.8374 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003265/0.2258, allocations: 105.9 kB / 0.8375 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2258, allocations: 4 kB / 0.8375 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.2258, allocations: 0 / 0.8375 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.2258, allocations: 8.031 kB / 0.8375 GB, free: 4.285 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.2259, allocations: 11.98 kB / 0.8375 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2259, allocations: 0 / 0.8375 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.562e-05/0.226, allocations: 11.98 kB / 0.8375 GB, free: 4.262 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.226, allocations: 3.938 kB / 0.8375 GB, free: 4.258 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.94e-05/0.2261, allocations: 126.4 kB / 0.8377 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.2262, allocations: 11.95 kB / 0.8377 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003817/0.2265, allocations: 109.6 kB / 0.8378 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2265, allocations: 0 / 0.8378 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.2266, allocations: 3.984 kB / 0.8378 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.2266, allocations: 3.938 kB / 0.8378 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.2267, allocations: 156.7 kB / 0.8379 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2267, allocations: 3.984 kB / 0.8379 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.293e-05/0.2268, allocations: 15.98 kB / 0.838 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.2268, allocations: 0 / 0.838 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.2269, allocations: 0 / 0.838 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2269, allocations: 0 / 0.838 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2269, allocations: 4 kB / 0.838 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003906/0.2272, allocations: 211.3 kB / 0.8382 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.576e-06/0.2273, allocations: 0 / 0.8382 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.2273, allocations: 0 / 0.8382 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.2274, allocations: 11.98 kB / 0.8382 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.038e-05/0.2274, allocations: 7.984 kB / 0.8382 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.2275, allocations: 4 kB / 0.8382 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.482e-05/0.2275, allocations: 99.2 kB / 0.8383 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.2275, allocations: 0 / 0.8383 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002363/0.2278, allocations: 11.95 kB / 0.8383 GB, free: 3.41 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0008201/0.2286, allocations: 0.7319 MB / 0.839 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003871/0.229, allocations: 83.84 kB / 0.8391 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.229, allocations: 0 / 0.8391 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.2291, allocations: 31.97 kB / 0.8391 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.2295, allocations: 8 kB / 0.8391 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.2316, allocations: 1.433 MB / 0.8405 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.2319, allocations: 0.6885 MB / 0.8412 GB, free: 316 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 4.225e-05/0.232, allocations: 8.359 kB / 0.8412 GB, free: 308 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.495e-05/0.232, allocations: 23.42 kB / 0.8412 GB, free: 284 kB / 0.5762 GB Notification: Performance of SimCode: time 4.91e-07/0.232, allocations: 0 / 0.8412 GB, free: 284 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.2548, allocations: 1.977 MB / 0.8432 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.16, allocations: 15.16 kB / 0.8432 GB, free: 14.44 MB / 0.5919 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.48644020804204] Failed to read output from testmodel.py, exit status != 0: 11.318347950000316 11.336665389 11.111924823 Calling exit ...