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.001032/0.001032, 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.008364/0.008365, allocations: 170 kB / 16.27 MB, free: 6.652 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.444/1.444, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.752/1.752, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0005071/0.0005071, allocations: 18.34 kB / 0.6744 GB, free: 25.94 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2175, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001544/0.2191, allocations: 1.23 MB / 0.7892 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006409/0.2197, allocations: 453 kB / 0.7896 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.954e-05/0.2198, allocations: 0 / 0.7896 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.956e-05/0.2198, allocations: 7.875 kB / 0.7896 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.375e-05/0.2199, allocations: 7.922 kB / 0.7897 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001392/0.22, allocations: 11.98 kB / 0.7897 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.289e-05/0.2201, allocations: 51.78 kB / 0.7897 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.682e-05/0.2202, allocations: 12 kB / 0.7897 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.096e-05/0.2203, allocations: 19.92 kB / 0.7897 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.178e-05/0.2204, allocations: 19.86 kB / 0.7898 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.2204, allocations: 7.984 kB / 0.7898 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.208e-06/0.2204, allocations: 0 / 0.7898 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.586e-05/0.2204, allocations: 7.984 kB / 0.7898 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.116e-05/0.2205, allocations: 41.58 kB / 0.7898 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.561e-05/0.2206, allocations: 44.09 kB / 0.7899 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2206, allocations: 4 kB / 0.7899 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.865e-06/0.2206, allocations: 4 kB / 0.7899 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.2206, allocations: 3.938 kB / 0.7899 GB, free: 9.539 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.0004149/0.221, allocations: 351.3 kB / 0.7902 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.221, allocations: 12.03 kB / 0.7902 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.181e-05/0.2211, allocations: 34.75 kB / 0.7903 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.48e-05/0.2211, allocations: 4.938 kB / 0.7903 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.2212, allocations: 180.2 kB / 0.7904 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.194e-06/0.2212, allocations: 4.375 kB / 0.7904 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.2213, allocations: 4.312 kB / 0.7904 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.2214, allocations: 65.8 kB / 0.7905 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2215, allocations: 4 kB / 0.7905 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.2215, allocations: 0 / 0.7905 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.2215, allocations: 0 / 0.7905 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.2216, allocations: 47.91 kB / 0.7905 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003659/0.222, allocations: 272.8 kB / 0.7908 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.2221, allocations: 50.56 kB / 0.7909 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.153e-05/0.2222, allocations: 24.94 kB / 0.7909 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.2223, allocations: 4 kB / 0.7909 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.2223, allocations: 30.56 kB / 0.7909 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.81e-07/0.2223, allocations: 0 / 0.7909 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003397/0.2226, allocations: 105.6 kB / 0.791 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.2227, allocations: 55.41 kB / 0.7911 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.2228, allocations: 113.8 kB / 0.7912 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.2228, allocations: 25.7 kB / 0.7912 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.2229, allocations: 92.05 kB / 0.7913 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.2229, allocations: 11.89 kB / 0.7913 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.2229, allocations: 13.72 kB / 0.7913 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.2231, allocations: 318.8 kB / 0.7916 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.39e-05/0.2232, allocations: 19.98 kB / 0.7916 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.381e-05/0.2232, allocations: 23.98 kB / 0.7917 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.2234, allocations: 56.77 kB / 0.7917 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2234, allocations: 3.938 kB / 0.7917 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001906/0.2236, allocations: 81.84 kB / 0.7918 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.2236, allocations: 4 kB / 0.7918 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.2236, allocations: 0 / 0.7918 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2236, allocations: 4.047 kB / 0.7918 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.2237, allocations: 15.98 kB / 0.7918 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.2238, allocations: 0 / 0.7918 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.708e-05/0.2238, allocations: 7.984 kB / 0.7918 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.2238, allocations: 0 / 0.7918 GB, free: 7.305 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 7.421e-05/0.2239, allocations: 118.4 kB / 0.7919 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.2239, allocations: 4 kB / 0.7919 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.224, allocations: 11.89 kB / 0.792 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.224, allocations: 0 / 0.792 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.224, allocations: 0 / 0.792 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.224, allocations: 0 / 0.792 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.2242, allocations: 177.5 kB / 0.7921 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2242, allocations: 3.938 kB / 0.7921 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.974e-05/0.2243, allocations: 11.98 kB / 0.7921 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2243, allocations: 4 kB / 0.7921 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.2243, allocations: 3.938 kB / 0.7921 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2243, allocations: 0 / 0.7921 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2243, allocations: 0 / 0.7921 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002375/0.2245, allocations: 187.4 kB / 0.7923 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.2246, allocations: 81.02 kB / 0.7924 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.2246, allocations: 4 kB / 0.7924 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-05/0.2247, allocations: 7.984 kB / 0.7924 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.345e-05/0.2248, allocations: 0 / 0.7924 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.2248, allocations: 0 / 0.7924 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.794e-05/0.2248, allocations: 99.64 kB / 0.7925 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2248, allocations: 0 / 0.7925 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002164/0.2251, allocations: 8 kB / 0.7925 GB, free: 6.496 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.000505/0.2256, allocations: 0.7124 MB / 0.7932 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001815/0.2258, allocations: 47.97 kB / 0.7933 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2258, allocations: 3.938 kB / 0.7933 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.219e-05/0.2259, allocations: 31.92 kB / 0.7933 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.2261, allocations: 6.422 kB / 0.7933 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005248/0.2266, allocations: 220 kB / 0.7935 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.2269, allocations: 0.6848 MB / 0.7942 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.168e-05/0.2269, allocations: 4 kB / 0.7942 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.227, allocations: 19.44 kB / 0.7942 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of SimCode: time 3.01e-07/0.227, allocations: 0 / 0.7942 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01005/0.237, allocations: 1.254 MB / 0.7954 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.2372, allocations: 229.9 kB / 0.7956 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.619/1.856, allocations: 0 / 0.7956 GB, free: 3.348 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)