Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",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.001046/0.001046, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001089/0.001089, allocations: 191.1 kB / 16.14 MB, free: 6.711 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.265/1.265, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.45/2.45, allocations: 461.9 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 68.64 kB / 0.8985 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.227, allocations: 157.4 MB / 1.052 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002349/0.2294, allocations: 1.595 MB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 8.97e-05/0.2295, allocations: 27.86 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.925e-05/0.2295, allocations: 3.938 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.901e-05/0.2296, allocations: 15.92 kB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.043e-05/0.2297, allocations: 7.938 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 7.976e-05/0.2298, allocations: 19.97 kB / 1.054 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.053e-05/0.2298, allocations: 35.92 kB / 1.054 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2299, allocations: 31.97 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.176e-05/0.23, allocations: 23.91 kB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.082e-05/0.23, allocations: 31.84 kB / 1.054 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.2301, allocations: 4 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.098e-05/0.2301, allocations: 4 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.055e-05/0.2301, allocations: 15.92 kB / 1.054 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.39e-05/0.2302, allocations: 27.88 kB / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.603e-05/0.2302, allocations: 56.02 kB / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2303, allocations: 3.938 kB / 1.054 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of FrontEnd: time 5.31e-07/0.2303, allocations: 0 / 1.054 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.407e-06/0.2303, allocations: 0 / 1.054 GB, free: 6.285 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003129/0.2306, allocations: 367.4 kB / 1.054 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.2306, allocations: 11.97 kB / 1.054 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.826e-05/0.2307, allocations: 34.75 kB / 1.054 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.215e-05/0.2307, allocations: 12.84 kB / 1.054 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.2308, allocations: 180.2 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.2308, allocations: 12.36 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.2309, allocations: 4.375 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.231, allocations: 100.8 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.231, allocations: 7.938 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.231, allocations: 0 / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.231, allocations: 0 / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.19e-05/0.2311, allocations: 47.91 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004605/0.2316, allocations: 0.6362 MB / 1.055 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.975e-05/0.2316, allocations: 169.1 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.604e-05/0.2317, allocations: 88.14 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.2317, allocations: 75.28 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.2317, allocations: 113.8 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.2317, allocations: 0 / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 6.23e-05/0.2318, allocations: 41.48 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.2319, allocations: 126.7 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.232, allocations: 166.3 kB / 1.056 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.232, allocations: 25.7 kB / 1.056 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.948e-05/0.2321, allocations: 104 kB / 1.056 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-06/0.2321, allocations: 0 / 1.056 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.2321, allocations: 21.66 kB / 1.056 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.548e-05/0.2322, allocations: 322.8 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.2322, allocations: 4 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.858e-05/0.2322, allocations: 18.58 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.656e-05/0.2323, allocations: 38.45 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2323, allocations: 0 / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001011/0.2324, allocations: 57.53 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.2324, allocations: 4 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2324, allocations: 7.938 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.596e-06/0.2324, allocations: 0 / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.574e-05/0.2325, allocations: 4 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.2325, allocations: 0 / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.345e-05/0.2325, allocations: 15.84 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-06/0.2325, allocations: 4.094 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 7.946e-05/0.2326, allocations: 197 kB / 1.057 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.2327, allocations: 112.9 kB / 1.057 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.901e-05/0.2327, allocations: 112.9 kB / 1.057 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.837e-05/0.2328, allocations: 188.2 kB / 1.057 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.494e-05/0.2328, allocations: 176.3 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.532e-05/0.2329, allocations: 192.2 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.2331, allocations: 425.2 kB / 1.058 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.84e-05/0.2331, allocations: 101.1 kB / 1.058 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.667e-05/0.2331, allocations: 108.9 kB / 1.058 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.391e-05/0.2332, allocations: 176.3 kB / 1.058 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.902e-05/0.2332, allocations: 192.1 kB / 1.059 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-05/0.2333, allocations: 180.2 kB / 1.059 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.22e-05/0.2333, allocations: 176.3 kB / 1.059 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.807e-05/0.2334, allocations: 311.7 kB / 1.059 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-05/0.2335, allocations: 193.9 kB / 1.059 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.218e-05/0.2336, allocations: 188.2 kB / 1.06 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-05/0.2337, allocations: 101 kB / 1.06 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.2337, allocations: 180.2 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.2337, allocations: 105 kB / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.476e-05/0.2338, allocations: 131.1 kB / 1.06 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2338, allocations: 0 / 1.06 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002035/0.234, allocations: 12 kB / 1.06 GB, free: 15.53 MB / 0.8262 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 (0): * Single equations (assignments): 0 * 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.0003/0.2343, allocations: 0.8225 MB / 1.061 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 5.05e-05/0.2344, allocations: 4 kB / 1.061 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.2344, allocations: 8.125 kB / 1.061 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.474e-06/0.2344, allocations: 4 kB / 1.061 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.2347, allocations: 0.5301 MB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.2359, allocations: 1.63 MB / 1.063 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.2361, allocations: 0.6926 MB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.143e-05/0.2362, allocations: 11.84 kB / 1.064 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.404e-05/0.2362, allocations: 23.44 kB / 1.064 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2362, allocations: 0 / 1.064 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8359/1.072, allocations: 1.539 MB / 1.065 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002095/1.072, allocations: 222.1 kB / 1.066 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.93/3.002, allocations: 0 / 1.066 GB, free: 9.977 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; mkfifo Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; head -c 1048576 < Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe >> ../files/Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat --tempDir=temp_Buildings_latest_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.fmu > Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches