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.000801/0.000801, allocations: 92.16 kB / 16.02 MB, free: 80 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.001169/0.001169, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.392/1.392, allocations: 223.3 MB / 241 MB, free: 5.336 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.41/2.41, allocations: 390.9 MB / 0.667 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003766, allocations: 8.281 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6844/0.6848, allocations: 142.4 MB / 0.9557 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain): time 0.002015/0.6869, allocations: 1.709 MB / 0.9574 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003712/0.6906, allocations: 3.627 MB / 0.9609 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.6908, allocations: 5.125 kB / 0.9609 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.691, allocations: 45.73 kB / 0.961 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.6913, allocations: 105 kB / 0.9611 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.6917, allocations: 108.4 kB / 0.9612 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002718/0.6919, allocations: 231.9 kB / 0.9614 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.6921, allocations: 54.14 kB / 0.9614 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.6923, allocations: 88.88 kB / 0.9615 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.6924, allocations: 111.2 kB / 0.9616 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.67e-05/0.6925, allocations: 8.25 kB / 0.9616 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.6927, allocations: 112.1 kB / 0.9617 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.599e-05/0.6927, allocations: 34.66 kB / 0.9618 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.526e-05/0.6928, allocations: 117.9 kB / 0.9619 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001993/0.693, allocations: 176.1 kB / 0.9621 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.693, allocations: 0 / 0.9621 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.523e-06/0.693, allocations: 3.938 kB / 0.9621 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.693, allocations: 5.375 kB / 0.9621 GB, free: 2.613 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.0009879/0.694, allocations: 0.572 MB / 0.9626 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.6941, allocations: 9.75 kB / 0.9626 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.884e-05/0.6942, allocations: 31.97 kB / 0.9627 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.6945, allocations: 270.2 kB / 0.9629 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.6946, allocations: 4.219 kB / 0.9629 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.6946, allocations: 9.156 kB / 0.9629 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.6951, allocations: 191.2 kB / 0.9631 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.6951, allocations: 0 / 0.9631 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.6951, allocations: 4.906 kB / 0.9631 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.6952, allocations: 6.875 kB / 0.9631 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007341/0.6959, allocations: 242.5 kB / 0.9634 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007784/0.6967, allocations: 499.2 kB / 0.9638 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004108/0.6971, allocations: 144.1 kB / 0.964 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003726/0.6975, allocations: 132.3 kB / 0.9641 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007685/0.6983, allocations: 0.5826 MB / 0.9647 GB, free: 444 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.6983, allocations: 39.31 kB / 0.9647 GB, free: 396 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.6983, allocations: 0 / 0.9647 GB, free: 396 kB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001253/0.6996, allocations: 414.9 kB / 0.9651 GB, free: 208 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.6996, allocations: 52.59 kB / 0.9652 GB, free: 144 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.6998, allocations: 239.6 kB / 0.9654 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.6999, allocations: 30.86 kB / 0.9654 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.668e-05/0.7, allocations: 141.8 kB / 0.9656 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.7, allocations: 31.25 kB / 0.9656 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.7001, allocations: 21.33 kB / 0.9656 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.7002, allocations: 331.5 kB / 0.9659 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/0.7006, allocations: 122.4 kB / 0.966 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003643/0.701, allocations: 115.7 kB / 0.9661 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007003/0.7017, allocations: 239.4 kB / 0.9664 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.7017, allocations: 0 / 0.9664 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0008434/0.7025, allocations: 299.5 kB / 0.9667 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.7026, allocations: 4.844 kB / 0.9667 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.7026, allocations: 1.344 kB / 0.9667 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.7026, allocations: 0 / 0.9667 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/0.7029, allocations: 62.19 kB / 0.9667 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.7029, allocations: 5.188 kB / 0.9667 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.7032, allocations: 44.75 kB / 0.9668 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.7032, allocations: 5.984 kB / 0.9668 GB, free: 15.04 MB / 0.7325 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.0001254/0.7033, allocations: 123.1 kB / 0.9669 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.947e-05/0.7034, allocations: 20.66 kB / 0.9669 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009729/0.7044, allocations: 326 kB / 0.9672 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.7044, allocations: 1.781 kB / 0.9672 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.7044, allocations: 8.906 kB / 0.9672 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.7044, allocations: 0 / 0.9672 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.7048, allocations: 277.2 kB / 0.9675 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.7048, allocations: 1 kB / 0.9675 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.7051, allocations: 54.7 kB / 0.9676 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.7051, allocations: 4 kB / 0.9676 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.7051, allocations: 6.203 kB / 0.9676 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.7051, allocations: 0 / 0.9676 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.7051, allocations: 4.875 kB / 0.9676 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009139/0.706, allocations: 402.8 kB / 0.968 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.7062, allocations: 109.2 kB / 0.9681 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.569e-05/0.7062, allocations: 5.031 kB / 0.9681 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.7065, allocations: 40.14 kB / 0.9681 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.302e-05/0.7066, allocations: 17.05 kB / 0.9681 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.7066, allocations: 10.42 kB / 0.9681 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001638/0.7068, allocations: 168.5 kB / 0.9683 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7068, allocations: 3.938 kB / 0.9683 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003608/0.7071, allocations: 60.5 kB / 0.9683 GB, free: 13.88 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.000239/0.7074, allocations: 132.7 kB / 0.9685 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00089/0.7083, allocations: 261.7 kB / 0.9687 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7083, allocations: 0 / 0.9687 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00041/0.7087, allocations: 135.2 kB / 0.9689 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.7091, allocations: 28.52 kB / 0.9689 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008997/0.7101, allocations: 0.531 MB / 0.9694 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.7104, allocations: 0.7394 MB / 0.9701 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.982e-05/0.7105, allocations: 19.14 kB / 0.9701 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of SimCode: time 5.71e-07/0.7105, allocations: 0 / 0.9701 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of Templates: time 0.00539/0.7159, allocations: 2.949 MB / 0.973 GB, free: 10.95 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