Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solGai.TFlu.1.|solGai.TFlu.2.|solGai.TFlu.3.|solGai.QSol_flow.1.|solGai.QSol_flow.2.|solGai.QSol_flow.3.",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solGai.TFlu.1.|solGai.TFlu.2.|solGai.TFlu.3.|solGai.QSol_flow.1.|solGai.QSol_flow.2.|solGai.QSol_flow.3.",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 108 kB / 15.61 MB, free: 152 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.002502/0.002502, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.807/2.807, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 72.23 kB / 0.9121 GB, free: 33.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3301, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain): time 0.003088/0.3333, allocations: 2.043 MB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0047/0.338, allocations: 4.062 MB / 1.074 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.3381, allocations: 0 / 1.074 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000843/0.339, allocations: 207.2 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.3392, allocations: 63.41 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007708/0.34, allocations: 267.4 kB / 1.075 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006411/0.3406, allocations: 366.9 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.3408, allocations: 48.38 kB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.341, allocations: 119.6 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.3411, allocations: 127.4 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.3412, allocations: 19.94 kB / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004797/0.3417, allocations: 303.6 kB / 1.076 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3418, allocations: 99.7 kB / 1.076 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.3419, allocations: 147 kB / 1.076 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005263/0.3425, allocations: 0.5024 MB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3425, allocations: 4 kB / 1.076 GB, free: 1.969 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3425, allocations: 0 / 1.076 GB, free: 1.969 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.3425, allocations: 4 kB / 1.076 GB, free: 1.965 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001321/0.3438, allocations: 0.7448 MB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3439, allocations: 12.03 kB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.711e-05/0.344, allocations: 36.47 kB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00048/0.3444, allocations: 334.3 kB / 1.077 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.3445, allocations: 4.375 kB / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/0.3445, allocations: 8.375 kB / 1.077 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005124/0.345, allocations: 207.5 kB / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.345, allocations: 0 / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.3451, allocations: 0 / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3451, allocations: 4 kB / 1.078 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007496/0.3458, allocations: 247.8 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009886/0.3468, allocations: 0.5861 MB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.3473, allocations: 170.4 kB / 1.079 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/0.3477, allocations: 140.8 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.3477, allocations: 19.98 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.3477, allocations: 34.56 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.3478, allocations: 0 / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.001278/0.349, allocations: 449.3 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.3491, allocations: 51.41 kB / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.3495, allocations: 413.5 kB / 1.08 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.3496, allocations: 33.7 kB / 1.08 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3497, allocations: 179.7 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.536e-05/0.3497, allocations: 39.44 kB / 1.08 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.025e-05/0.3498, allocations: 41.69 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.35, allocations: 350.7 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004195/0.3504, allocations: 171.9 kB / 1.08 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.3508, allocations: 168.8 kB / 1.081 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007947/0.3516, allocations: 356.8 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3516, allocations: 0 / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000959/0.3526, allocations: 466.7 kB / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.111e-05/0.3527, allocations: 41.69 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3527, allocations: 0 / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3527, allocations: 0 / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.353, allocations: 55.88 kB / 1.082 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.353, allocations: 4 kB / 1.082 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.3533, allocations: 39.75 kB / 1.082 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.3533, allocations: 11.97 kB / 1.082 GB, free: 12.38 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001582/0.3535, allocations: 155.3 kB / 1.082 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.3536, allocations: 39.53 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009085/0.3545, allocations: 348.5 kB / 1.082 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3545, allocations: 0 / 1.082 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3545, allocations: 0 / 1.082 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3545, allocations: 7.922 kB / 1.082 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003582/0.3549, allocations: 341.3 kB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3549, allocations: 0 / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/0.3552, allocations: 43.94 kB / 1.082 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.3552, allocations: 0 / 1.082 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.3552, allocations: 11.98 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3552, allocations: 4 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3552, allocations: 0 / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/0.3561, allocations: 418.8 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.3562, allocations: 124.6 kB / 1.083 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.926e-05/0.3563, allocations: 11.98 kB / 1.083 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002641/0.3565, allocations: 19.97 kB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.819e-05/0.3566, allocations: 19.92 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.3567, allocations: 3.984 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002778/0.3569, allocations: 295.1 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3569, allocations: 0 / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004695/0.3574, allocations: 119.9 kB / 1.083 GB, free: 10.37 MB / 0.8419 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 (11): * Single equations (assignments): 11 * 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.0003221/0.3578, allocations: 175.7 kB / 1.084 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00102/0.3588, allocations: 0.5029 MB / 1.084 GB, free: 9.672 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3588, allocations: 0 / 1.084 GB, free: 9.672 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003954/0.3592, allocations: 139.8 kB / 1.084 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.3597, allocations: 69.17 kB / 1.084 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.3607, allocations: 0.625 MB / 1.085 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.3611, allocations: 0.7865 MB / 1.086 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001953/0.3613, allocations: 53.48 kB / 1.086 GB, free: 7.953 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.766e-05/0.3614, allocations: 19.42 kB / 1.086 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3614, allocations: 0 / 1.086 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of Templates: time 0.009612/0.371, allocations: 4.885 MB / 1.091 GB, free: 3.102 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975SolarGain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches