Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_8_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.001088/0.001088, allocations: 101.4 kB / 15.69 MB, free: 140 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.001188/0.001188, allocations: 194.5 kB / 16.63 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.1 MB / 222.5 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.64/1.64, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00136/0.001361, allocations: 71.08 kB / 0.6718 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2253, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002655/0.228, allocations: 1.504 MB / 0.7851 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007003/0.2287, allocations: 459.7 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.081e-05/0.2287, allocations: 4 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.174e-05/0.2288, allocations: 3.938 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.992e-05/0.2288, allocations: 7.922 kB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.229, allocations: 27.91 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.568e-05/0.2291, allocations: 43.86 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.2293, allocations: 11.98 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.615e-05/0.2294, allocations: 27.86 kB / 0.7857 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.093e-05/0.2294, allocations: 23.84 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.2295, allocations: 4 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.251e-05/0.2295, allocations: 4 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.036e-05/0.2295, allocations: 11.98 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.241e-05/0.2296, allocations: 19.88 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.834e-05/0.2297, allocations: 52.03 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2297, allocations: 0 / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.953e-06/0.2297, allocations: 0 / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.2297, allocations: 0 / 0.7858 GB, free: 11.04 MB / 0.6075 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.0005262/0.2302, allocations: 363.3 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.2303, allocations: 12.03 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.2303, allocations: 30.75 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.2304, allocations: 12.84 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.2305, allocations: 180.1 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.2305, allocations: 8.375 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.2305, allocations: 384 / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.2307, allocations: 57.8 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.2307, allocations: 0 / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.2307, allocations: 0 / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2308, allocations: 0 / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.2309, allocations: 39.97 kB / 0.7864 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003904/0.2313, allocations: 268.9 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.2314, allocations: 42.5 kB / 0.7867 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.999e-05/0.2315, allocations: 20.94 kB / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.2315, allocations: 4 kB / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.2316, allocations: 42.5 kB / 0.7868 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.2316, allocations: 0 / 0.7868 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.000311/0.2319, allocations: 89.5 kB / 0.7869 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.2319, allocations: 55.39 kB / 0.7869 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.496e-05/0.232, allocations: 113.8 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.2321, allocations: 29.7 kB / 0.7871 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.322e-05/0.2321, allocations: 97.14 kB / 0.7872 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.2321, allocations: 7.891 kB / 0.7872 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.2322, allocations: 13.72 kB / 0.7872 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.511e-05/0.2323, allocations: 322.8 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.318e-05/0.2323, allocations: 15.98 kB / 0.7875 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.034e-05/0.2324, allocations: 11.98 kB / 0.7875 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.2325, allocations: 48.83 kB / 0.7876 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2325, allocations: 0 / 0.7876 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001525/0.2327, allocations: 77.5 kB / 0.7876 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2327, allocations: 4 kB / 0.7877 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.2327, allocations: 4 kB / 0.7877 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.2327, allocations: 4 kB / 0.7877 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.691e-05/0.2328, allocations: 7.984 kB / 0.7877 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.2328, allocations: 0 / 0.7877 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.393e-05/0.2329, allocations: 4 kB / 0.7877 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.2329, allocations: 8 kB / 0.7877 GB, free: 8.848 MB / 0.6075 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 6.911e-05/0.233, allocations: 114.4 kB / 0.7878 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.666e-05/0.233, allocations: 7.906 kB / 0.7878 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.2331, allocations: 11.89 kB / 0.7878 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2331, allocations: 336 / 0.7878 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2331, allocations: 0 / 0.7878 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2331, allocations: 4 kB / 0.7878 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001521/0.2332, allocations: 173.5 kB / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.2332, allocations: 0 / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.44e-05/0.2333, allocations: 19.97 kB / 0.788 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.2333, allocations: 0 / 0.788 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.2333, allocations: 0 / 0.788 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.2333, allocations: 0 / 0.788 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2333, allocations: 0 / 0.788 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.2335, allocations: 171.4 kB / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.2336, allocations: 81.02 kB / 0.7882 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.2336, allocations: 8 kB / 0.7882 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.571e-05/0.2337, allocations: 7.984 kB / 0.7883 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.2337, allocations: 4 kB / 0.7883 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.2337, allocations: 0 / 0.7883 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.942e-05/0.2338, allocations: 99.58 kB / 0.7884 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2338, allocations: 3.938 kB / 0.7884 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000217/0.234, allocations: 8 kB / 0.7884 GB, free: 8.047 MB / 0.6075 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.0004628/0.2345, allocations: 0.711 MB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001726/0.2347, allocations: 43.95 kB / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2347, allocations: 0 / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.676e-05/0.2347, allocations: 23.98 kB / 0.7891 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.235, allocations: 6.438 kB / 0.7891 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004923/0.2355, allocations: 189.8 kB / 0.7893 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.2357, allocations: 0.6846 MB / 0.79 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.327e-05/0.2358, allocations: 3.984 kB / 0.79 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.307e-05/0.2358, allocations: 19.44 kB / 0.79 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.2358, allocations: 0 / 0.79 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.2518, allocations: 1.501 MB / 0.7915 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.274/7.526, allocations: 7.938 kB / 0.7915 GB, free: 4.918 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)