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: translateModel(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatGain.QRad_flow|heatGain.QCon_flow|heatGain.QLat_flow",fileNamePrefix="Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain") translateModel(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatGain.QRad_flow|heatGain.QCon_flow|heatGain.QLat_flow",fileNamePrefix="Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008884/0.0008885, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.0009294/0.0009294, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.202/1.202, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.369/2.369, allocations: 462.6 MB / 0.7364 GB, free: 280 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002797, allocations: 10.59 kB / 0.9028 GB, free: 36.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2314, allocations: 159.6 MB / 1.059 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.001587/0.233, allocations: 1.26 MB / 1.06 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001032/0.2332, allocations: 27.88 kB / 1.06 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.683e-05/0.2332, allocations: 4 kB / 1.06 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.825e-05/0.2333, allocations: 7.922 kB / 1.06 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.669e-05/0.2333, allocations: 7.922 kB / 1.06 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 8.742e-05/0.2334, allocations: 19.98 kB / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.203e-05/0.2335, allocations: 43.84 kB / 1.06 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.2336, allocations: 35.89 kB / 1.06 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.759e-05/0.2337, allocations: 11.92 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.003e-05/0.2337, allocations: 23.86 kB / 1.06 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.2337, allocations: 0 / 1.06 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.203e-06/0.2337, allocations: 4 kB / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.363e-05/0.2338, allocations: 7.984 kB / 1.06 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.568e-05/0.2338, allocations: 57.5 kB / 1.06 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.947e-05/0.2339, allocations: 52.02 kB / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.2339, allocations: 7.938 kB / 1.06 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2339, allocations: 4 kB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.466e-06/0.2339, allocations: 0 / 1.06 GB, free: 3.867 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.0003036/0.2343, allocations: 343.4 kB / 1.061 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2343, allocations: 12.03 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.2343, allocations: 8.844 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.2345, allocations: 188.2 kB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.2345, allocations: 4.312 kB / 1.061 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.2345, allocations: 8.375 kB / 1.061 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.2347, allocations: 100.8 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2347, allocations: 4.125 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.2347, allocations: 7.938 kB / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2347, allocations: 4 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.858e-05/0.2348, allocations: 35.98 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004976/0.2353, allocations: 0.644 MB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.697e-05/0.2354, allocations: 169.1 kB / 1.062 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.666e-05/0.2354, allocations: 80.14 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.2354, allocations: 79.28 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.2355, allocations: 109.8 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.32e-07/0.2355, allocations: 0 / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 6.653e-05/0.2355, allocations: 45.48 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.2356, allocations: 126.7 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.2357, allocations: 166.3 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.2358, allocations: 25.7 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.2358, allocations: 111.9 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.515e-06/0.2358, allocations: 0 / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.2359, allocations: 9.719 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.047e-05/0.236, allocations: 322.8 kB / 1.063 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.047e-05/0.236, allocations: 0 / 1.063 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.416e-05/0.236, allocations: 22.58 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.507e-05/0.236, allocations: 30.52 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.236, allocations: 0 / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001033/0.2362, allocations: 61.62 kB / 1.063 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.2362, allocations: 4 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2362, allocations: 4 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.2362, allocations: 7.922 kB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.723e-05/0.2363, allocations: 4 kB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.2363, allocations: 4.078 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.437e-05/0.2363, allocations: 15.92 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-06/0.2363, allocations: 0 / 1.063 GB, free: 0.8828 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.898e-05/0.2364, allocations: 193.1 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.2365, allocations: 116.8 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.95e-05/0.2365, allocations: 116.7 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.267e-05/0.2366, allocations: 188.3 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.134e-05/0.2366, allocations: 184.2 kB / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.416e-05/0.2367, allocations: 176.3 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.2369, allocations: 429.2 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.429e-05/0.237, allocations: 105 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.737e-05/0.237, allocations: 104.9 kB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.157e-05/0.237, allocations: 180.3 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.656e-05/0.2371, allocations: 192.2 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-05/0.2372, allocations: 184.2 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.307e-05/0.2372, allocations: 176.3 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.2373, allocations: 319.7 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.478e-05/0.2374, allocations: 182 kB / 1.066 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.685e-05/0.2375, allocations: 188.1 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.109e-05/0.2376, allocations: 101 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.53e-05/0.2376, allocations: 184.2 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.2376, allocations: 105 kB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.868e-05/0.2377, allocations: 129.9 kB / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2377, allocations: 0 / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002257/0.238, allocations: 8 kB / 1.066 GB, free: 13.18 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.0001035/0.2381, allocations: 170.5 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.016e-05/0.2381, allocations: 11.94 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2382, allocations: 4 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.2382, allocations: 0 / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.2385, allocations: 0.5279 MB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002769/0.2388, allocations: 245.9 kB / 1.067 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.239, allocations: 0.6965 MB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.806e-05/0.2391, allocations: 7.984 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.711e-05/0.2391, allocations: 7.438 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2391, allocations: 3.938 kB / 1.068 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of Templates: time 0.001938/0.241, allocations: 400.5 kB / 1.068 GB, free: 11.05 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.makefile (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 & ./Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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