Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 91.77 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.001812/0.001812, allocations: 176.2 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.772/2.772, allocations: 462.7 MB / 0.7371 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003884/0.0003885, allocations: 13.66 kB / 0.9034 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3333, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001887/0.3352, allocations: 1.23 MB / 1.061 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007366/0.336, allocations: 410.9 kB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.011e-05/0.336, allocations: 0 / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.203e-05/0.3361, allocations: 0 / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.339e-05/0.3362, allocations: 15.88 kB / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.3364, allocations: 15.97 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.3365, allocations: 55.72 kB / 1.061 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.3366, allocations: 8 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.3367, allocations: 23.86 kB / 1.061 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.41e-05/0.3368, allocations: 19.92 kB / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.3368, allocations: 4 kB / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.159e-05/0.3369, allocations: 0 / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.3369, allocations: 15.91 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.626e-05/0.337, allocations: 41.58 kB / 1.061 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.402e-05/0.337, allocations: 24.23 kB / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.337, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3371, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.3371, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005175/0.3376, allocations: 367.4 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3376, allocations: 11.97 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.176e-05/0.3377, allocations: 12.83 kB / 1.062 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.3378, allocations: 172.2 kB / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.3379, allocations: 384 / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.3379, allocations: 384 / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.3381, allocations: 69.98 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.3381, allocations: 0 / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.3381, allocations: 4 kB / 1.062 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3381, allocations: 0 / 1.062 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.3383, allocations: 43.97 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004241/0.3387, allocations: 280.8 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.3389, allocations: 46.59 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.085e-05/0.339, allocations: 28.84 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.339, allocations: 3.984 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.339, allocations: 34.56 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.339, allocations: 0 / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003464/0.3394, allocations: 105.5 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.3394, allocations: 51.41 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.3395, allocations: 125.7 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.3396, allocations: 33.69 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.835e-05/0.3396, allocations: 84.14 kB / 1.063 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.3396, allocations: 7.906 kB / 1.063 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.3397, allocations: 13.72 kB / 1.063 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3398, allocations: 318.8 kB / 1.063 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.67e-05/0.3399, allocations: 23.98 kB / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.41e-05/0.3399, allocations: 23.98 kB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.3401, allocations: 48.83 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3401, allocations: 0 / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002025/0.3403, allocations: 85.52 kB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.3403, allocations: 9.094 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3403, allocations: 0 / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.3404, allocations: 3.938 kB / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.3405, allocations: 11.98 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.3405, allocations: 0 / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.351e-05/0.3405, allocations: 8 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.3406, allocations: 7.984 kB / 1.063 GB, free: 0.8633 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 (3): * Single equations (assignments): 3 * 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 8.219e-05/0.3406, allocations: 113.8 kB / 1.063 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.3407, allocations: 7.906 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.3407, allocations: 3.906 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3407, allocations: 336 / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3407, allocations: 0 / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3407, allocations: 4 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.3409, allocations: 177.6 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3409, allocations: 3.984 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/0.341, allocations: 8 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.341, allocations: 0 / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.341, allocations: 7.984 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.341, allocations: 4 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.341, allocations: 0 / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002416/0.3413, allocations: 175.4 kB / 1.064 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/0.3414, allocations: 92.94 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.3414, allocations: 0 / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.008e-05/0.3415, allocations: 4 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.3415, allocations: 7.984 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.3415, allocations: 7.938 kB / 1.064 GB, free: 164 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.653e-05/0.3416, allocations: 99.27 kB / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3416, allocations: 0 / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002205/0.3418, allocations: 8 kB / 1.064 GB, free: 56 kB / 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 (3): * Single equations (assignments): 3 * 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.0001372/0.342, allocations: 95.25 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001984/0.3422, allocations: 55.91 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3422, allocations: 0 / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.602e-05/0.3423, allocations: 19.98 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.3425, allocations: 7.938 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004027/0.3429, allocations: 212.2 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.3432, allocations: 0.6925 MB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.853e-05/0.3432, allocations: 11.44 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.3432, allocations: 0 / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of Templates: time 0.002312/0.3456, allocations: 0.6842 MB / 1.065 GB, free: 14.22 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches