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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.311/2.311, allocations: 393.5 MB / 408.4 MB, free: 11.13 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 180 kB / 0.4902 GB, free: 2.301 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.1 MB / 0.7992 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 103.2 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004986/0.0004987, allocations: 11.97 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2958, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1886/0.4844, allocations: 150.6 MB / 1.376 GB, free: 3.02 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4847, allocations: 83.94 kB / 1.376 GB, free: 2.938 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003853/0.4886, allocations: 1.188 MB / 1.378 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.807e-06/0.4887, allocations: 0 / 1.378 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.546e-05/0.4887, allocations: 4 kB / 1.378 GB, free: 1.738 MB / 0.8698 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.000511/0.4892, allocations: 363.1 kB / 1.378 GB, free: 1.336 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.4893, allocations: 16.5 kB / 1.378 GB, free: 1.32 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.4893, allocations: 3.906 kB / 1.378 GB, free: 1.316 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.4895, allocations: 182.8 kB / 1.378 GB, free: 1.098 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.4895, allocations: 7.984 kB / 1.378 GB, free: 1.09 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.4895, allocations: 0 / 1.378 GB, free: 1.09 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.4898, allocations: 57.67 kB / 1.378 GB, free: 1.027 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.4898, allocations: 0 / 1.378 GB, free: 1.027 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.4898, allocations: 4 kB / 1.378 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4898, allocations: 4 kB / 1.378 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.4899, allocations: 35.97 kB / 1.378 GB, free: 0.9844 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004507/0.4904, allocations: 280.9 kB / 1.378 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.4905, allocations: 42.56 kB / 1.378 GB, free: 0.6094 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.4906, allocations: 4 kB / 1.378 GB, free: 0.6055 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.4906, allocations: 30.56 kB / 1.379 GB, free: 0.5664 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.373e-06/0.4906, allocations: 0 / 1.379 GB, free: 0.5664 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0003407/0.491, allocations: 105.6 kB / 1.379 GB, free: 468 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.491, allocations: 55.36 kB / 1.379 GB, free: 400 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.394e-05/0.4911, allocations: 113 kB / 1.379 GB, free: 280 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.4911, allocations: 25.7 kB / 1.379 GB, free: 248 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.749e-05/0.4912, allocations: 92.08 kB / 1.379 GB, free: 152 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.4912, allocations: 11.91 kB / 1.379 GB, free: 140 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.4912, allocations: 0 / 1.379 GB, free: 140 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4913, allocations: 314.8 kB / 1.379 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.796e-05/0.4914, allocations: 19.98 kB / 1.379 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-05/0.4915, allocations: 23.98 kB / 1.379 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.897e-05/0.4916, allocations: 23.98 kB / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4916, allocations: 3.938 kB / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001771/0.4918, allocations: 85.52 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.4918, allocations: 9.969 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.4918, allocations: 4 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.4918, allocations: 0 / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.4919, allocations: 11.98 kB / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.4919, allocations: 0 / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.621e-05/0.492, allocations: 11.95 kB / 1.379 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.492, allocations: 3.984 kB / 1.379 GB, free: 15.62 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.118e-05/0.4921, allocations: 109.8 kB / 1.379 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.4921, allocations: 8 kB / 1.38 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.84e-05/0.4922, allocations: 7.906 kB / 1.38 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.4922, allocations: 0 / 1.38 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4922, allocations: 0 / 1.38 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.4922, allocations: 0 / 1.38 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.4924, allocations: 177.5 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4924, allocations: 0 / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.333e-05/0.4925, allocations: 12 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4925, allocations: 4 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.4925, allocations: 3.984 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4925, allocations: 4 kB / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4925, allocations: 336 / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.4927, allocations: 179.4 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.074e-05/0.4928, allocations: 89 kB / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.4928, allocations: 4 kB / 1.38 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.786e-05/0.4929, allocations: 4 kB / 1.38 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.4929, allocations: 7.984 kB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.4929, allocations: 0 / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.447e-05/0.493, allocations: 95.27 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.493, allocations: 0 / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002027/0.4932, allocations: 8 kB / 1.38 GB, free: 14.83 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001225/0.4933, allocations: 100 kB / 1.38 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001848/0.4935, allocations: 51.91 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4935, allocations: 0 / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.156e-05/0.4936, allocations: 19.98 kB / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.4938, allocations: 17.5 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003959/0.4942, allocations: 182.4 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.4944, allocations: 0.6887 MB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.68e-05/0.4945, allocations: 8 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.369e-05/0.4945, allocations: 15.42 kB / 1.381 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of SimCode: time 3.91e-07/0.4945, allocations: 0 / 1.381 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of Templates: time 0.002499/0.497, allocations: 387 kB / 1.381 GB, free: 13.32 MB / 0.8855 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","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches