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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.004601/0.004601, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.00135/0.00135, allocations: 193.5 kB / 16.68 MB, free: 6.363 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.239/1.239, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.502/2.502, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 71.83 kB / 1.083 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2646, allocations: 162.3 MB / 1.242 GB, free: 9.859 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002446/0.2671, allocations: 1.512 MB / 1.243 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006271/0.2677, allocations: 403.1 kB / 1.244 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.243e-05/0.2678, allocations: 8 kB / 1.244 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.449e-05/0.2678, allocations: 3.938 kB / 1.244 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.703e-05/0.2679, allocations: 7.875 kB / 1.244 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001424/0.268, allocations: 23.89 kB / 1.244 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.143e-05/0.2681, allocations: 47.8 kB / 1.244 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.372e-05/0.2682, allocations: 15.97 kB / 1.244 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.358e-05/0.2683, allocations: 27.86 kB / 1.244 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.049e-05/0.2684, allocations: 27.91 kB / 1.244 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.2684, allocations: 0 / 1.244 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.144e-05/0.2684, allocations: 4 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.2685, allocations: 15.92 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.316e-05/0.2685, allocations: 19.88 kB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 9.68e-05/0.2686, allocations: 43.77 kB / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2686, allocations: 0 / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2686, allocations: 0 / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.2686, allocations: 0 / 1.244 GB, free: 7.695 MB / 0.9981 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.0004546/0.2691, allocations: 367.2 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2691, allocations: 12.03 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.2692, allocations: 38.69 kB / 1.244 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/0.2692, allocations: 4.938 kB / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.2693, allocations: 184.2 kB / 1.245 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-06/0.2693, allocations: 384 / 1.245 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-06/0.2694, allocations: 384 / 1.245 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.2695, allocations: 65.8 kB / 1.245 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.2695, allocations: 0 / 1.245 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.2695, allocations: 4 kB / 1.245 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2696, allocations: 0 / 1.245 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.2697, allocations: 31.97 kB / 1.245 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003559/0.27, allocations: 276.8 kB / 1.245 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.2702, allocations: 42.56 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.742e-05/0.2703, allocations: 28.94 kB / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.2703, allocations: 0 / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.2703, allocations: 30.56 kB / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.2703, allocations: 0 / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0002883/0.2706, allocations: 89.59 kB / 1.245 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.2706, allocations: 59.39 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.669e-05/0.2707, allocations: 117.8 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.2708, allocations: 25.7 kB / 1.245 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.316e-05/0.2708, allocations: 88.09 kB / 1.245 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.2708, allocations: 11.94 kB / 1.245 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.361e-05/0.2709, allocations: 13.72 kB / 1.245 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.271, allocations: 318.8 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.631e-05/0.2711, allocations: 15.98 kB / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.736e-05/0.2711, allocations: 24.17 kB / 1.246 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.2713, allocations: 44.91 kB / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.2713, allocations: 0 / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001732/0.2715, allocations: 77.55 kB / 1.246 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2715, allocations: 8 kB / 1.246 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-06/0.2715, allocations: 3.938 kB / 1.246 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.2715, allocations: 0 / 1.246 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.821e-05/0.2716, allocations: 15.98 kB / 1.246 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.2716, allocations: 0 / 1.246 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.767e-05/0.2717, allocations: 7.938 kB / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.2717, allocations: 0 / 1.246 GB, free: 5.496 MB / 0.9981 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.948e-05/0.2718, allocations: 118.2 kB / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.2718, allocations: 4 kB / 1.246 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.337e-05/0.2718, allocations: 7.891 kB / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2718, allocations: 4 kB / 1.246 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2718, allocations: 4 kB / 1.246 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.2718, allocations: 0 / 1.246 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.272, allocations: 173.5 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.272, allocations: 0 / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.493e-05/0.2721, allocations: 11.98 kB / 1.246 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2721, allocations: 0 / 1.246 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.2721, allocations: 4 kB / 1.246 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.2721, allocations: 0 / 1.246 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2721, allocations: 0 / 1.246 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/0.2723, allocations: 179.4 kB / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.2724, allocations: 81.06 kB / 1.246 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.2724, allocations: 4 kB / 1.246 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.485e-05/0.2725, allocations: 3.984 kB / 1.246 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.214e-05/0.2725, allocations: 4 kB / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.2725, allocations: 0 / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.713e-05/0.2726, allocations: 95.7 kB / 1.247 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2726, allocations: 4 kB / 1.247 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002008/0.2728, allocations: 8 kB / 1.247 GB, free: 4.707 MB / 0.9981 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.0004928/0.2733, allocations: 0.7056 MB / 1.247 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001664/0.2735, allocations: 47.95 kB / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2735, allocations: 0 / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.516e-05/0.2736, allocations: 23.98 kB / 1.247 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.2738, allocations: 4.328 kB / 1.247 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004536/0.2742, allocations: 206.2 kB / 1.248 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.2745, allocations: 0.6885 MB / 1.248 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.987e-05/0.2746, allocations: 4.312 kB / 1.248 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.2746, allocations: 15.44 kB / 1.248 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of SimCode: time 1.91e-07/0.2746, allocations: 0 / 1.248 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3456/0.6203, allocations: 1.511 MB / 1.25 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/11.04, allocations: 6.438 kB / 1.25 GB, free: 1.551 MB / 0.9981 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=400 --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