Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.ASHRAESolarGain,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_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain,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_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002048/0.002048, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.557/1.557, allocations: 222.9 MB / 239.9 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.822/2.822, allocations: 437 MB / 0.7101 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003154/0.003155, allocations: 67.89 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7406/0.7438, allocations: 151.6 MB / 1.017 GB, free: 2.738 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain): time 0.003869/0.7477, allocations: 2.211 MB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.005089/0.7528, allocations: 3.742 MB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.753, allocations: 7.938 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003404/0.7534, allocations: 43.73 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004293/0.7538, allocations: 123.2 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.7542, allocations: 123.8 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004196/0.7547, allocations: 318.8 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.7548, allocations: 56.7 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.7551, allocations: 135.5 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.7553, allocations: 147.4 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.7553, allocations: 20 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.7556, allocations: 135.8 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.198e-05/0.7557, allocations: 55.75 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.7558, allocations: 123.3 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004481/0.7563, allocations: 334.9 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.7563, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7563, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.7563, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001389/0.7577, allocations: 0.6346 MB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.7578, allocations: 8.031 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009641/0.7587, allocations: 172.4 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007475/0.7595, allocations: 324.2 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.7595, allocations: 8.562 kB / 1.025 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/0.7596, allocations: 15.94 kB / 1.025 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006988/0.7603, allocations: 218.8 kB / 1.026 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.7603, allocations: 4 kB / 1.026 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.7603, allocations: 4 kB / 1.026 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.7603, allocations: 0 / 1.026 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.7614, allocations: 283.7 kB / 1.026 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.7627, allocations: 0.5784 MB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005512/0.7633, allocations: 170.4 kB / 1.027 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000512/0.7638, allocations: 156.7 kB / 1.027 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009346/0.7648, allocations: 0.5493 MB / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.7648, allocations: 38.5 kB / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.7648, allocations: 0 / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.001761/0.7666, allocations: 485 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.7667, allocations: 55.34 kB / 1.028 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002911/0.7669, allocations: 264.6 kB / 1.028 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.767, allocations: 29.7 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.7671, allocations: 151.9 kB / 1.028 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.401e-05/0.7672, allocations: 39.45 kB / 1.028 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.7673, allocations: 45.69 kB / 1.028 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.7675, allocations: 338.8 kB / 1.029 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/0.768, allocations: 147.8 kB / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005095/0.7685, allocations: 147.9 kB / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.7695, allocations: 300.5 kB / 1.029 GB, free: 5.734 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.7695, allocations: 0 / 1.029 GB, free: 5.734 MB / 0.7794 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001171/0.7707, allocations: 369 kB / 1.03 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.7708, allocations: 4 kB / 1.03 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.7708, allocations: 0 / 1.03 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.7708, allocations: 3.984 kB / 1.03 GB, free: 5.359 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004731/0.7713, allocations: 71.86 kB / 1.03 GB, free: 5.289 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.7713, allocations: 0 / 1.03 GB, free: 5.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.7716, allocations: 51.73 kB / 1.03 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.7717, allocations: 11.98 kB / 1.03 GB, free: 5.227 MB / 0.7794 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 (17): * Single equations (assignments): 17 * 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.0001487/0.7718, allocations: 121.8 kB / 1.03 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.933e-05/0.7719, allocations: 23.72 kB / 1.03 GB, free: 5.074 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.7731, allocations: 382.9 kB / 1.03 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.7731, allocations: 4 kB / 1.03 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.7731, allocations: 0 / 1.03 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.7732, allocations: 7.875 kB / 1.03 GB, free: 4.688 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000417/0.7736, allocations: 305.3 kB / 1.03 GB, free: 4.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.7736, allocations: 3.984 kB / 1.03 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/0.774, allocations: 67.91 kB / 1.031 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.774, allocations: 4 kB / 1.031 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.774, allocations: 0 / 1.031 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.7741, allocations: 0 / 1.031 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.7741, allocations: 3.984 kB / 1.031 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.7752, allocations: 454.8 kB / 1.031 GB, free: 3.801 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.7754, allocations: 124.7 kB / 1.031 GB, free: 3.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.7754, allocations: 3.984 kB / 1.031 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/0.7758, allocations: 35.95 kB / 1.031 GB, free: 3.621 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.911e-05/0.7759, allocations: 11.98 kB / 1.031 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.7759, allocations: 11.92 kB / 1.031 GB, free: 3.598 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002125/0.7761, allocations: 191.1 kB / 1.031 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7761, allocations: 0 / 1.031 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004345/0.7766, allocations: 67.98 kB / 1.031 GB, free: 3.344 MB / 0.7794 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 (13): * Single equations (assignments): 13 * 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.0002731/0.7768, allocations: 135.7 kB / 1.032 GB, free: 3.199 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001169/0.778, allocations: 323.7 kB / 1.032 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.778, allocations: 0 / 1.032 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005478/0.7786, allocations: 171.8 kB / 1.032 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.7791, allocations: 36.62 kB / 1.032 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.7804, allocations: 0.5602 MB / 1.033 GB, free: 2.094 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006323/0.781, allocations: 0.7435 MB / 1.033 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003203/0.7814, allocations: 45.39 kB / 1.033 GB, free: 1.277 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.7815, allocations: 27.41 kB / 1.033 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of SimCode: time 4.41e-07/0.7815, allocations: 0 / 1.033 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of Templates: time 0.007793/0.7893, allocations: 3.042 MB / 1.036 GB, free: 14.23 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches