Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_9_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.00741/0.007411, allocations: 106 kB / 15.74 MB, free: 5.992 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.001694/0.001694, allocations: 195.5 kB / 16.67 MB, free: 5.914 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.244/1.244, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.09/2.09, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 55.91 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7289/0.7302, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002404/0.7327, allocations: 1.54 MB / 1.089 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001128/0.7328, allocations: 31.31 kB / 1.089 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.368e-05/0.7329, allocations: 1.656 kB / 1.089 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.733, allocations: 11.34 kB / 1.089 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.308e-05/0.733, allocations: 9.531 kB / 1.089 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001148/0.7332, allocations: 17.59 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.7333, allocations: 42.91 kB / 1.089 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.7334, allocations: 37.05 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.686e-05/0.7335, allocations: 19.47 kB / 1.089 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.575e-05/0.7335, allocations: 30.64 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.7335, allocations: 4.656 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.7336, allocations: 4.875 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.712e-05/0.7336, allocations: 22.77 kB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.577e-05/0.7337, allocations: 27.14 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.7338, allocations: 67.08 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.7338, allocations: 4.641 kB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7338, allocations: 0 / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.7338, allocations: 0 / 1.089 GB, free: 4.051 MB / 0.8575 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.0003279/0.7341, allocations: 359.6 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.7342, allocations: 9.562 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.7342, allocations: 39.36 kB / 1.09 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.31e-05/0.7342, allocations: 8.844 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.7344, allocations: 184.6 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.7344, allocations: 4.125 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.7344, allocations: 12.31 kB / 1.09 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.7346, allocations: 95.97 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.7346, allocations: 3.938 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.7346, allocations: 9.031 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.7346, allocations: 2.797 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.108e-05/0.7347, allocations: 44.8 kB / 1.09 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.7351, allocations: 0.6421 MB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.616e-05/0.7352, allocations: 166.3 kB / 1.091 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.7352, allocations: 84.14 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.7352, allocations: 75.84 kB / 1.091 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.7353, allocations: 115.6 kB / 1.091 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 9.01e-07/0.7353, allocations: 0 / 1.091 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 6.263e-05/0.7353, allocations: 38.69 kB / 1.091 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.7354, allocations: 127.3 kB / 1.091 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.7355, allocations: 171.6 kB / 1.091 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.2e-06/0.7355, allocations: 25.7 kB / 1.091 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.515e-05/0.7356, allocations: 107.1 kB / 1.092 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-06/0.7356, allocations: 1.031 kB / 1.092 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.7356, allocations: 13.61 kB / 1.092 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.93e-05/0.7357, allocations: 319.5 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.324e-05/0.7357, allocations: 2.719 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.972e-05/0.7357, allocations: 32.59 kB / 1.092 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.667e-05/0.7358, allocations: 24.75 kB / 1.092 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7358, allocations: 0 / 1.092 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000104/0.7359, allocations: 56.33 kB / 1.092 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.7359, allocations: 5.938 kB / 1.092 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.7359, allocations: 8.547 kB / 1.092 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.7359, allocations: 1.312 kB / 1.092 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.937e-05/0.736, allocations: 13.56 kB / 1.092 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.736, allocations: 1.75 kB / 1.092 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.329e-05/0.736, allocations: 6.094 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.7361, allocations: 2.031 kB / 1.092 GB, free: 1.336 MB / 0.8575 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 6.168e-05/0.7361, allocations: 191.5 kB / 1.092 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.798e-05/0.7362, allocations: 114.7 kB / 1.092 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.073e-05/0.7363, allocations: 126 kB / 1.092 GB, free: 16.9 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.181e-05/0.7363, allocations: 178.8 kB / 1.093 GB, free: 16.72 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.424e-05/0.7364, allocations: 177.9 kB / 1.093 GB, free: 16.54 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.998e-05/0.7364, allocations: 180.7 kB / 1.093 GB, free: 16.36 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.7366, allocations: 422.2 kB / 1.093 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.445e-05/0.7367, allocations: 114.7 kB / 1.093 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.084e-05/0.7367, allocations: 110.7 kB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.112e-05/0.7368, allocations: 178.2 kB / 1.094 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.379e-05/0.7368, allocations: 185.5 kB / 1.094 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.008e-05/0.7369, allocations: 178.8 kB / 1.094 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.905e-05/0.7369, allocations: 184.7 kB / 1.094 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000112/0.7371, allocations: 316.9 kB / 1.095 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.004e-05/0.7371, allocations: 186.7 kB / 1.095 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.327e-05/0.7372, allocations: 190.9 kB / 1.095 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.452e-05/0.7373, allocations: 109.5 kB / 1.095 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.608e-05/0.7373, allocations: 182.4 kB / 1.095 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.312e-05/0.7374, allocations: 107.3 kB / 1.095 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 9.254e-05/0.7375, allocations: 126 kB / 1.095 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7375, allocations: 0 / 1.095 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002064/0.7377, allocations: 6.312 kB / 1.095 GB, free: 13.73 MB / 0.8731 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.0003574/0.7381, allocations: 0.8203 MB / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 6.674e-05/0.7381, allocations: 11.62 kB / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.7381, allocations: 0 / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.252e-06/0.7381, allocations: 0 / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.7385, allocations: 459.4 kB / 1.097 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.7398, allocations: 1.638 MB / 1.098 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.74, allocations: 0.6901 MB / 1.099 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.372e-05/0.7401, allocations: 10.36 kB / 1.099 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.834e-05/0.7401, allocations: 19.25 kB / 1.099 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of SimCode: time 5.11e-07/0.7401, allocations: 0 / 1.099 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.757, allocations: 1.725 MB / 1.101 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.293/8.05, allocations: 8.766 kB / 1.101 GB, free: 9.879 MB / 0.8731 GB (rm -f Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; mkfifo Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; head -c 1048576 < Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe >> ../files/Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat --tempDir=temp_Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.fmu > Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches