Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solHeaGai.TFlu.1.|solHeaGai.TFlu.2.|solHeaGai.TFlu.3.|solHeaGai.QSol_flow.1.|solHeaGai.QSol_flow.2.|solHeaGai.QSol_flow.3.",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solHeaGai.TFlu.1.|solHeaGai.TFlu.2.|solHeaGai.TFlu.3.|solHeaGai.QSol_flow.1.|solHeaGai.QSol_flow.2.|solHeaGai.QSol_flow.3.",fileNamePrefix="Buildings_9_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.009013/0.009013, allocations: 101.3 kB / 15.88 MB, free: 5.867 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.00206/0.00206, allocations: 191.7 kB / 16.79 MB, free: 5.809 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 390.2 MB / 0.6649 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.89 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6906/0.692, allocations: 140.4 MB / 0.9496 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain): time 0.00286/0.6949, allocations: 2.066 MB / 0.9516 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003566/0.6985, allocations: 3.668 MB / 0.9552 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.6986, allocations: 1.25 kB / 0.9552 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003059/0.6989, allocations: 41.97 kB / 0.9552 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.6993, allocations: 112.7 kB / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.6996, allocations: 109 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002687/0.6999, allocations: 239.3 kB / 0.9557 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.7, allocations: 46.41 kB / 0.9557 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.7002, allocations: 98.73 kB / 0.9558 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.7004, allocations: 116.3 kB / 0.9559 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.7004, allocations: 10.03 kB / 0.9559 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002186/0.7006, allocations: 109.5 kB / 0.956 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.578e-05/0.7007, allocations: 43.83 kB / 0.9561 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.222e-05/0.7008, allocations: 96.86 kB / 0.9562 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.701, allocations: 179.6 kB / 0.9563 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.701, allocations: 0 / 0.9563 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.42e-07/0.701, allocations: 1.125 kB / 0.9563 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.7011, allocations: 0 / 0.9563 GB, free: 3.773 MB / 0.7169 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.001068/0.7021, allocations: 0.5803 MB / 0.9569 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.7022, allocations: 9.312 kB / 0.9569 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.314e-05/0.7022, allocations: 35.22 kB / 0.9569 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.7026, allocations: 270.6 kB / 0.9572 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.7026, allocations: 7.719 kB / 0.9572 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.7027, allocations: 5.781 kB / 0.9572 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004779/0.7032, allocations: 177.5 kB / 0.9574 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.7032, allocations: 0 / 0.9574 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.7032, allocations: 5.125 kB / 0.9574 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.7032, allocations: 1.812 kB / 0.9574 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006561/0.7039, allocations: 190.9 kB / 0.9576 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007889/0.7047, allocations: 492.8 kB / 0.958 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003681/0.7051, allocations: 121 kB / 0.9582 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003407/0.7054, allocations: 113.2 kB / 0.9583 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007483/0.7062, allocations: 0.5449 MB / 0.9588 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.7062, allocations: 44.28 kB / 0.9588 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.7062, allocations: 0 / 0.9588 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001091/0.7073, allocations: 352.4 kB / 0.9592 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.7073, allocations: 52.78 kB / 0.9592 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.7075, allocations: 235.6 kB / 0.9595 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.7076, allocations: 25.7 kB / 0.9595 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.44e-05/0.7076, allocations: 142.7 kB / 0.9596 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.945e-05/0.7077, allocations: 43.45 kB / 0.9597 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.815e-05/0.7077, allocations: 25.92 kB / 0.9597 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.604e-05/0.7078, allocations: 333.3 kB / 0.96 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.7081, allocations: 98.94 kB / 0.9601 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.7085, allocations: 96.28 kB / 0.9602 GB, free: 500 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/0.7091, allocations: 204.8 kB / 0.9604 GB, free: 396 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.7091, allocations: 0.7812 kB / 0.9604 GB, free: 396 kB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0007293/0.7098, allocations: 260.5 kB / 0.9606 GB, free: 252 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.7098, allocations: 9.297 kB / 0.9606 GB, free: 248 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.7098, allocations: 0 / 0.9606 GB, free: 248 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.7099, allocations: 1.094 kB / 0.9606 GB, free: 248 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003138/0.7102, allocations: 40.48 kB / 0.9607 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.7102, allocations: 5 kB / 0.9607 GB, free: 232 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.7104, allocations: 31.11 kB / 0.9607 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.7105, allocations: 11.22 kB / 0.9607 GB, free: 208 kB / 0.7169 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 (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 prepare postOptimizeDAE: time 0.0001009/0.7106, allocations: 125.7 kB / 0.9608 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.004e-05/0.7106, allocations: 21.72 kB / 0.9609 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008673/0.7115, allocations: 279.7 kB / 0.9611 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.7115, allocations: 0.75 kB / 0.9611 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.7115, allocations: 8.922 kB / 0.9611 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.7115, allocations: 0 / 0.9611 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003303/0.7119, allocations: 277.7 kB / 0.9614 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.7119, allocations: 1 kB / 0.9614 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.7122, allocations: 56.25 kB / 0.9615 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.7122, allocations: 1.219 kB / 0.9615 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.7122, allocations: 5.141 kB / 0.9615 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.7122, allocations: 1.031 kB / 0.9615 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.7122, allocations: 3.938 kB / 0.9615 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007814/0.713, allocations: 352.6 kB / 0.9618 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.7132, allocations: 113.2 kB / 0.9619 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.7132, allocations: 5.469 kB / 0.9619 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.7135, allocations: 26.5 kB / 0.9619 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.595e-05/0.7135, allocations: 21.34 kB / 0.962 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.7136, allocations: 2.375 kB / 0.962 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001523/0.7137, allocations: 172.4 kB / 0.9621 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7137, allocations: 0 / 0.9621 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003528/0.7141, allocations: 60.02 kB / 0.9622 GB, free: 15.06 MB / 0.7325 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.0002459/0.7143, allocations: 129.8 kB / 0.9623 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007594/0.7151, allocations: 218.5 kB / 0.9625 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7151, allocations: 1.156 kB / 0.9625 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.7155, allocations: 114.8 kB / 0.9626 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.716, allocations: 38.11 kB / 0.9627 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000952/0.7169, allocations: 0.494 MB / 0.9631 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.7172, allocations: 0.7352 MB / 0.9639 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.7174, allocations: 23.48 kB / 0.9639 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of SimCode: time 5.81e-07/0.7174, allocations: 1.344 kB / 0.9639 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.006168/0.7235, allocations: 2.975 MB / 0.9668 GB, free: 12.14 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975SolarGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches