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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001043/0.001043, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.268/1.268, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.479/2.479, allocations: 461.9 MB / 0.7346 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 65.25 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2227, allocations: 157.4 MB / 1.053 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002402/0.2251, allocations: 1.536 MB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 9.674e-05/0.2252, allocations: 31.86 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.297e-05/0.2253, allocations: 4 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.54e-05/0.2254, allocations: 15.86 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.685e-05/0.2254, allocations: 3.938 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 9.623e-05/0.2255, allocations: 19.97 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.869e-05/0.2256, allocations: 47.84 kB / 1.055 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2257, allocations: 35.98 kB / 1.055 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.295e-05/0.2258, allocations: 23.91 kB / 1.055 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.144e-05/0.2258, allocations: 23.86 kB / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.2258, allocations: 4 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.057e-05/0.2258, allocations: 4 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.927e-05/0.2259, allocations: 19.98 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.037e-05/0.2259, allocations: 31.8 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.188e-05/0.226, allocations: 48.03 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.226, allocations: 8 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.513e-06/0.226, allocations: 0 / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.226, allocations: 0 / 1.055 GB, free: 6.363 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.000314/0.2264, allocations: 359.4 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.2264, allocations: 12.56 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.477e-05/0.2264, allocations: 42.73 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.342e-05/0.2265, allocations: 8.844 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.2266, allocations: 188.2 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.2266, allocations: 4.375 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.2266, allocations: 12.38 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.2268, allocations: 98.84 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.2268, allocations: 3.938 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.2268, allocations: 4 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2268, allocations: 0 / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.242e-05/0.2269, allocations: 43.97 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.2274, allocations: 0.6439 MB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.848e-05/0.2274, allocations: 165.1 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.589e-05/0.2275, allocations: 84.14 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.2275, allocations: 79.28 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.2275, allocations: 109.8 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.2275, allocations: 0 / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 6.504e-05/0.2276, allocations: 45.47 kB / 1.057 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.2277, allocations: 126.7 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.2278, allocations: 170.3 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.997e-06/0.2278, allocations: 29.7 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.229e-05/0.2279, allocations: 100 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-06/0.2279, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.2279, allocations: 17.72 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.125e-05/0.228, allocations: 322.8 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.228, allocations: 0 / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.628e-05/0.2281, allocations: 26.56 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.503e-05/0.2281, allocations: 30.52 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.2281, allocations: 0 / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001097/0.2282, allocations: 57.55 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.2282, allocations: 5.094 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.2282, allocations: 3.938 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2283, allocations: 12.08 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.263e-05/0.2283, allocations: 4 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2283, allocations: 0 / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.652e-05/0.2284, allocations: 11.84 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.2284, allocations: 0 / 1.057 GB, free: 3.312 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 8.251e-05/0.2285, allocations: 198.5 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.246e-05/0.2285, allocations: 112.9 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.2286, allocations: 116.8 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.631e-05/0.2286, allocations: 188.2 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-05/0.2287, allocations: 184.3 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.727e-05/0.2287, allocations: 180.2 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.2289, allocations: 421.1 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-05/0.229, allocations: 105.5 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.692e-05/0.229, allocations: 112.9 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.627e-05/0.229, allocations: 176.3 kB / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.822e-05/0.2291, allocations: 184.1 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.493e-05/0.2291, allocations: 184.5 kB / 1.059 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.325e-05/0.2292, allocations: 176.3 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001048/0.2293, allocations: 319.7 kB / 1.06 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.916e-05/0.2294, allocations: 189.9 kB / 1.06 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/0.2294, allocations: 184.2 kB / 1.06 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-05/0.2295, allocations: 105 kB / 1.06 GB, free: 36 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.934e-05/0.2296, allocations: 184.2 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.2296, allocations: 109 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.291e-05/0.2297, allocations: 126.1 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2297, allocations: 3.938 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002071/0.2299, allocations: 4 kB / 1.061 GB, free: 15.61 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.0003169/0.2302, allocations: 0.8203 MB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.237e-05/0.2303, allocations: 12 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2303, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.976e-06/0.2303, allocations: 3.938 kB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.2306, allocations: 464.8 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.2318, allocations: 1.63 MB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.232, allocations: 0.7001 MB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.886e-05/0.2321, allocations: 7.859 kB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.547e-05/0.2321, allocations: 19.42 kB / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2321, allocations: 0 / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.71/0.9421, allocations: 1.669 MB / 1.066 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.352/9.294, allocations: 3.125 kB / 1.066 GB, free: 10.24 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