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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007994/0.007995, allocations: 170.1 kB / 16.27 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.422/1.422, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.649/2.649, allocations: 462.7 MB / 0.7364 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003189/0.0003189, allocations: 8.625 kB / 0.9029 GB, free: 36.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2741, allocations: 159.6 MB / 1.059 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001512/0.2756, allocations: 1.237 MB / 1.06 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0005765/0.2762, allocations: 419 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.381e-05/0.2763, allocations: 4 kB / 1.06 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.843e-05/0.2763, allocations: 3.938 kB / 1.06 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.51e-05/0.2764, allocations: 3.938 kB / 1.06 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001448/0.2765, allocations: 15.98 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.042e-05/0.2766, allocations: 51.72 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.645e-05/0.2767, allocations: 15.92 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.755e-05/0.2768, allocations: 23.92 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.151e-05/0.2769, allocations: 15.92 kB / 1.061 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.2769, allocations: 4 kB / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.278e-06/0.2769, allocations: 0 / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.684e-05/0.277, allocations: 7.938 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.43e-05/0.277, allocations: 53.55 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.558e-05/0.2771, allocations: 40.09 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2771, allocations: 4 kB / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.765e-06/0.2771, allocations: 0 / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.2771, allocations: 3.938 kB / 1.061 GB, free: 2.988 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.000438/0.2776, allocations: 351.4 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2776, allocations: 11.97 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.251e-05/0.2776, allocations: 34.75 kB / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.2777, allocations: 4.844 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.2778, allocations: 176.2 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.2778, allocations: 8.312 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.2778, allocations: 4.375 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/0.278, allocations: 65.8 kB / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.278, allocations: 0 / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.278, allocations: 0 / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.278, allocations: 4 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.2782, allocations: 51.91 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003452/0.2786, allocations: 268.9 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.2787, allocations: 42.56 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.092e-05/0.2788, allocations: 28.94 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.2788, allocations: 3.984 kB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.2788, allocations: 38.56 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.425e-06/0.2788, allocations: 0 / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003169/0.2792, allocations: 101.5 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.2792, allocations: 51.41 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.952e-05/0.2793, allocations: 121.8 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.2793, allocations: 25.7 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.2794, allocations: 88.14 kB / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.2794, allocations: 11.81 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.2794, allocations: 13.7 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.41e-05/0.2795, allocations: 326.8 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.158e-05/0.2796, allocations: 15.98 kB / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.29e-05/0.2797, allocations: 19.98 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.2798, allocations: 56.77 kB / 1.062 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2798, allocations: 0 / 1.062 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001815/0.28, allocations: 77.95 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.28, allocations: 7.938 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.28, allocations: 4 kB / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.2801, allocations: 48 / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.907e-05/0.2802, allocations: 15.97 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.2802, allocations: 4 kB / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.468e-05/0.2802, allocations: 7.984 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.2803, allocations: 0 / 1.063 GB, free: 0.7539 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 7.14e-05/0.2803, allocations: 121.7 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.2804, allocations: 3.906 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.2804, allocations: 15.91 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2804, allocations: 0 / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2804, allocations: 0 / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2804, allocations: 7.922 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.2806, allocations: 169.6 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2806, allocations: 0 / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.403e-05/0.2807, allocations: 15.98 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2807, allocations: 0 / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.2807, allocations: 0 / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2807, allocations: 4 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2807, allocations: 0 / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.2809, allocations: 179.4 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.54e-05/0.281, allocations: 81.05 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.281, allocations: 0 / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.475e-05/0.2811, allocations: 12 kB / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/0.2811, allocations: 3.984 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.2812, allocations: 8 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.003e-05/0.2812, allocations: 95.27 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.362e-06/0.2812, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002188/0.2815, allocations: 7.938 kB / 1.063 GB, free: 15.95 MB / 0.8262 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.0004447/0.2819, allocations: 0.7123 MB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000174/0.2821, allocations: 47.97 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2821, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.72e-05/0.2822, allocations: 27.92 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.2824, allocations: 8 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004655/0.2829, allocations: 220.1 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001984/0.2831, allocations: 0.6809 MB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.395e-05/0.2831, allocations: 3.984 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.299e-05/0.2832, allocations: 15.44 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.2832, allocations: 0 / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009463/0.2926, allocations: 1.258 MB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.2929, allocations: 230.9 kB / 1.066 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.005, allocations: 0 / 1.066 GB, free: 12.81 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > 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