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: 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.001235/0.001235, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001341/0.001341, allocations: 191 kB / 17.29 MB, free: 5.516 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.206/1.206, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.177/2.177, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 73.55 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2326, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002354/0.2349, allocations: 1.548 MB / 1.028 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 9.056e-05/0.235, allocations: 27.86 kB / 1.028 GB, free: 488 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.2351, allocations: 0 / 1.028 GB, free: 488 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.2352, allocations: 15.86 kB / 1.028 GB, free: 472 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.625e-05/0.2352, allocations: 11.94 kB / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 9.494e-05/0.2353, allocations: 15.97 kB / 1.028 GB, free: 444 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.409e-05/0.2354, allocations: 47.84 kB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.2356, allocations: 31.97 kB / 1.028 GB, free: 364 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.81e-05/0.2356, allocations: 23.92 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.424e-05/0.2357, allocations: 27.86 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.2357, allocations: 4 kB / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.2357, allocations: 4 kB / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.83e-05/0.2357, allocations: 19.92 kB / 1.028 GB, free: 284 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.566e-05/0.2358, allocations: 27.86 kB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.541e-05/0.2359, allocations: 63.61 kB / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2359, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2359, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.2359, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 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.0003552/0.2363, allocations: 367.4 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.2363, allocations: 12.03 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.982e-05/0.2363, allocations: 8.844 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.2365, allocations: 184.3 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.2365, allocations: 4.312 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.2365, allocations: 4.375 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.2366, allocations: 104.7 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.2367, allocations: 4.188 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2367, allocations: 3.938 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2367, allocations: 4 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.531e-05/0.2368, allocations: 39.92 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004765/0.2372, allocations: 0.644 MB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.195e-05/0.2373, allocations: 169.1 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.322e-05/0.2374, allocations: 80.14 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.2374, allocations: 79.27 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.2374, allocations: 109.8 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.2374, allocations: 7.938 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 5.799e-05/0.2375, allocations: 37.55 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.2375, allocations: 130.7 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.2377, allocations: 176.5 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.874e-06/0.2377, allocations: 25.7 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.2378, allocations: 104 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-06/0.2378, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.2378, allocations: 17.72 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.093e-05/0.2379, allocations: 322.8 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.2379, allocations: 4 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.931e-05/0.2379, allocations: 22.58 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.348e-05/0.238, allocations: 26.5 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.238, allocations: 0 / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001036/0.2381, allocations: 61.55 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.2381, allocations: 8 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.2381, allocations: 0 / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.2381, allocations: 3.938 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.804e-05/0.2382, allocations: 7.984 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.2382, allocations: 4 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.012e-05/0.2382, allocations: 11.78 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-06/0.2382, allocations: 4 kB / 1.031 GB, free: 13.17 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.503e-05/0.2383, allocations: 193.2 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.335e-05/0.2384, allocations: 112.9 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.806e-05/0.2384, allocations: 116.8 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.72e-05/0.2385, allocations: 184.2 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.057e-05/0.2386, allocations: 176.3 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.327e-05/0.2386, allocations: 188.2 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.2388, allocations: 425.2 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-05/0.2388, allocations: 104.9 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-05/0.2389, allocations: 105 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.015e-05/0.2389, allocations: 180.2 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.96e-05/0.239, allocations: 184.1 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.182e-05/0.239, allocations: 184.5 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.454e-05/0.2391, allocations: 184.2 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001139/0.2392, allocations: 307.8 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.2393, allocations: 193.9 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.205e-05/0.2394, allocations: 184.2 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.316e-05/0.2395, allocations: 108.9 kB / 1.034 GB, free: 9.898 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.2395, allocations: 184.3 kB / 1.034 GB, free: 9.711 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.2396, allocations: 108.9 kB / 1.034 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.042e-05/0.2396, allocations: 125.7 kB / 1.035 GB, free: 9.477 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2397, allocations: 0 / 1.035 GB, free: 9.477 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002042/0.2399, allocations: 7.938 kB / 1.035 GB, free: 9.469 MB / 0.8106 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.0001036/0.24, allocations: 178.5 kB / 1.035 GB, free: 9.281 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 5.78e-05/0.24, allocations: 15.98 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.24, allocations: 0 / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.112e-06/0.24, allocations: 0 / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.2404, allocations: 463.6 kB / 1.035 GB, free: 8.809 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002682/0.2406, allocations: 229.6 kB / 1.035 GB, free: 8.555 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.2409, allocations: 0.6885 MB / 1.036 GB, free: 7.84 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.659e-05/0.2409, allocations: 7.984 kB / 1.036 GB, free: 7.832 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.638e-05/0.2409, allocations: 7.438 kB / 1.036 GB, free: 7.824 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.2409, allocations: 4 kB / 1.036 GB, free: 7.82 MB / 0.8106 GB Notification: Performance of Templates: time 0.001957/0.2429, allocations: 424.6 kB / 1.037 GB, free: 7.406 MB / 0.8106 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 -s cvode -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/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