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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001667/0.001667, allocations: 106 kB / 16.37 MB, free: 6.473 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.001912/0.001912, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 69.3 kB / 0.8707 GB, free: 1.461 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2791, allocations: 151.7 MB / 1.019 GB, free: 9.867 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain): time 0.003087/0.2822, allocations: 2.136 MB / 1.021 GB, free: 7.711 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00407/0.2863, allocations: 3.786 MB / 1.025 GB, free: 3.906 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.309e-05/0.2864, allocations: 0 / 1.025 GB, free: 3.906 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.2867, allocations: 63.42 kB / 1.025 GB, free: 3.844 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003506/0.2871, allocations: 135.2 kB / 1.025 GB, free: 3.711 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.2874, allocations: 143.6 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003428/0.2878, allocations: 322.7 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.2879, allocations: 56.72 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.2881, allocations: 131.5 kB / 1.025 GB, free: 3.066 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.2883, allocations: 147.4 kB / 1.026 GB, free: 2.922 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.2884, allocations: 20 kB / 1.026 GB, free: 2.902 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.2886, allocations: 135.8 kB / 1.026 GB, free: 2.77 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.893e-05/0.2887, allocations: 59.75 kB / 1.026 GB, free: 2.711 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.2888, allocations: 119.3 kB / 1.026 GB, free: 2.594 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003559/0.2892, allocations: 338.8 kB / 1.026 GB, free: 2.262 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.2892, allocations: 4 kB / 1.026 GB, free: 2.258 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2892, allocations: 0 / 1.026 GB, free: 2.258 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.2892, allocations: 7.938 kB / 1.026 GB, free: 2.25 MB / 0.795 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.001174/0.2904, allocations: 0.6347 MB / 1.027 GB, free: 1.566 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.2904, allocations: 8.922 kB / 1.027 GB, free: 1.559 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008928/0.2913, allocations: 172.4 kB / 1.027 GB, free: 1.391 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006833/0.292, allocations: 332.1 kB / 1.027 GB, free: 1.023 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.292, allocations: 8.562 kB / 1.027 GB, free: 1.016 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.2921, allocations: 11.94 kB / 1.027 GB, free: 1.004 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.2927, allocations: 226.6 kB / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2927, allocations: 0 / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.2928, allocations: 0 / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2928, allocations: 0 / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009362/0.2937, allocations: 287.7 kB / 1.028 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.295, allocations: 0.5708 MB / 1.028 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.2955, allocations: 162.5 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004716/0.296, allocations: 164.7 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008124/0.2968, allocations: 0.5493 MB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.2968, allocations: 30.56 kB / 1.029 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.2968, allocations: 0 / 1.029 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13): time 0.001612/0.2985, allocations: 489.2 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.2985, allocations: 51.41 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.2988, allocations: 268.5 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.2988, allocations: 33.64 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.2989, allocations: 147.9 kB / 1.03 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.433e-05/0.2989, allocations: 43.39 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.2991, allocations: 41.69 kB / 1.03 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2992, allocations: 342.8 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004908/0.2997, allocations: 151.7 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.3002, allocations: 143.9 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009183/0.3011, allocations: 291.4 kB / 1.031 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3011, allocations: 0 / 1.031 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001057/0.3022, allocations: 369 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3022, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.3022, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3022, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004524/0.3027, allocations: 75.84 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.3027, allocations: 0 / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003321/0.303, allocations: 47.8 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.3031, allocations: 11.98 kB / 1.032 GB, free: 12.32 MB / 0.8106 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.0001168/0.3032, allocations: 121.8 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.676e-05/0.3032, allocations: 23.72 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.3044, allocations: 379.2 kB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3044, allocations: 4 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3044, allocations: 3.938 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3044, allocations: 3.938 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003069/0.3047, allocations: 305.2 kB / 1.032 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3047, allocations: 0 / 1.032 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/0.3051, allocations: 67.91 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.3051, allocations: 4 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.3052, allocations: 7.984 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3052, allocations: 0 / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3052, allocations: 0 / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.3062, allocations: 455.5 kB / 1.033 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.3063, allocations: 124.7 kB / 1.033 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.3064, allocations: 3.938 kB / 1.033 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000329/0.3067, allocations: 39.94 kB / 1.033 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.3068, allocations: 11.98 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.3068, allocations: 11.92 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001486/0.307, allocations: 187.1 kB / 1.033 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.307, allocations: 4 kB / 1.033 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003408/0.3073, allocations: 71.92 kB / 1.033 GB, free: 10.44 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 (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.0002054/0.3075, allocations: 135.2 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001014/0.3086, allocations: 318.4 kB / 1.034 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3086, allocations: 0 / 1.034 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004961/0.3091, allocations: 171 kB / 1.034 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.3095, allocations: 28.64 kB / 1.034 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009525/0.3105, allocations: 0.4938 MB / 1.034 GB, free: 9.273 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.3108, allocations: 0.7512 MB / 1.035 GB, free: 8.496 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001978/0.311, allocations: 45.38 kB / 1.035 GB, free: 8.453 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.3111, allocations: 31.41 kB / 1.035 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of SimCode: time 4.21e-07/0.3111, allocations: 0 / 1.035 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of Templates: time 0.006169/0.3173, allocations: 3.286 MB / 1.039 GB, free: 5.16 MB / 0.8106 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=480 -s gbode -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/jenkins1/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