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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009694/0.0009694, allocations: 73.88 kB / 20.65 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 169 kB / 24.06 MB, free: 448 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9708/0.9708, allocations: 177.1 MB / 204.5 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.118/2.118, allocations: 429.5 MB / 0.6743 GB, free: 3.918 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 0.8794 GB, free: 6.012 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.798e-05/4.999e-05, allocations: 6.906 kB / 0.8794 GB, free: 6.004 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003784/0.003834, allocations: 1.567 MB / 0.8809 GB, free: 4.449 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.004905, allocations: 493.8 kB / 0.8814 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.005013, allocations: 5.031 kB / 0.8814 GB, free: 3.961 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.182e-05/0.005055, allocations: 3.938 kB / 0.8814 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.289e-05/0.005148, allocations: 16.45 kB / 0.8814 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003001/0.005448, allocations: 32.67 kB / 0.8815 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.005591, allocations: 59.72 kB / 0.8815 GB, free: 3.852 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.005698, allocations: 7.875 kB / 0.8815 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.005874, allocations: 47.77 kB / 0.8816 GB, free: 3.801 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.749e-05/0.005972, allocations: 19.97 kB / 0.8816 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.005998, allocations: 4 kB / 0.8816 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.47e-05/0.006073, allocations: 8 kB / 0.8816 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.006095, allocations: 7.938 kB / 0.8816 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.039e-05/0.006125, allocations: 15.97 kB / 0.8816 GB, free: 3.746 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.006267, allocations: 39.84 kB / 0.8817 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.006271, allocations: 0 / 0.8817 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.583e-06/0.006273, allocations: 0 / 0.8817 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.006278, allocations: 1.469 kB / 0.8817 GB, free: 3.707 MB / 0.8386 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.0004461/0.006724, allocations: 392.3 kB / 0.882 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.006768, allocations: 12.03 kB / 0.882 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.006941, allocations: 21.84 kB / 0.8821 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.007104, allocations: 128.8 kB / 0.8822 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.007118, allocations: 12.31 kB / 0.8822 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.007125, allocations: 384 / 0.8822 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.007238, allocations: 56.06 kB / 0.8823 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.007246, allocations: 4.125 kB / 0.8823 GB, free: 3.031 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.007256, allocations: 4.375 kB / 0.8823 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.007266, allocations: 8.969 kB / 0.8823 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.242e-05/0.007288, allocations: 7.984 kB / 0.8823 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002861/0.007574, allocations: 241.3 kB / 0.8825 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.192e-05/0.007646, allocations: 35 kB / 0.8825 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.058e-05/0.007667, allocations: 18.58 kB / 0.8826 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.00768, allocations: 0 / 0.8826 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.007704, allocations: 33.39 kB / 0.8826 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.81e-07/0.007705, allocations: 0 / 0.8826 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.000192/0.007897, allocations: 57.52 kB / 0.8826 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.007937, allocations: 55.41 kB / 0.8827 GB, free: 2.512 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.807e-05/0.008025, allocations: 177.9 kB / 0.8829 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.008036, allocations: 27.42 kB / 0.8829 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.008095, allocations: 142.8 kB / 0.883 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.008118, allocations: 11.91 kB / 0.883 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.008151, allocations: 23.36 kB / 0.8831 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.008299, allocations: 0.4884 MB / 0.8835 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.666e-05/0.008316, allocations: 0.625 kB / 0.8835 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.484e-05/0.00833, allocations: 7.984 kB / 0.8836 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.022e-05/0.008361, allocations: 13.34 kB / 0.8836 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.008362, allocations: 0 / 0.8836 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.376e-05/0.008436, allocations: 53.58 kB / 0.8836 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.008451, allocations: 7.938 kB / 0.8836 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.008457, allocations: 0.5 kB / 0.8836 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/0.008467, allocations: 1.75 kB / 0.8836 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.76e-05/0.008544, allocations: 11.98 kB / 0.8836 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-06/0.008548, allocations: 0 / 0.8836 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.389e-05/0.008571, allocations: 4 kB / 0.8836 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.008578, allocations: 0 / 0.8836 GB, free: 1.496 MB / 0.8386 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.812e-05/0.008646, allocations: 153.3 kB / 0.8838 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/0.008665, allocations: 5.109 kB / 0.8838 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.008694, allocations: 15.92 kB / 0.8838 GB, free: 1.316 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.008696, allocations: 5.594 kB / 0.8838 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.0087, allocations: 3.984 kB / 0.8838 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.008702, allocations: 0 / 0.8838 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.00882, allocations: 117.1 kB / 0.8839 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.008823, allocations: 4 kB / 0.8839 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.968e-05/0.008853, allocations: 8 kB / 0.8839 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.008855, allocations: 0 / 0.8839 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-06/0.008861, allocations: 4 kB / 0.8839 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.008861, allocations: 0 / 0.8839 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.008866, allocations: 7.922 kB / 0.884 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.009037, allocations: 191.9 kB / 0.8841 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.244e-05/0.009049, allocations: 11.95 kB / 0.8841 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.009059, allocations: 0 / 0.8841 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.472e-05/0.009094, allocations: 0 / 0.8841 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.00913, allocations: 11.92 kB / 0.8842 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.009133, allocations: 4 kB / 0.8842 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.586e-05/0.009179, allocations: 135.2 kB / 0.8843 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.009179, allocations: 0 / 0.8843 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001436/0.009323, allocations: 8 kB / 0.8843 GB, free: 0.7695 MB / 0.8386 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.0001058/0.009429, allocations: 99.25 kB / 0.8844 GB, free: 0.6602 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.442e-05/0.009513, allocations: 23.61 kB / 0.8844 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.009515, allocations: 0 / 0.8844 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.012e-05/0.009535, allocations: 11.69 kB / 0.8844 GB, free: 0.6172 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.009701, allocations: 9.531 kB / 0.8844 GB, free: 0.6094 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005305/0.01023, allocations: 178 kB / 0.8846 GB, free: 416 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.07e-05/0.01027, allocations: 59.34 kB / 0.8847 GB, free: 336 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.492e-05/0.0103, allocations: 0 / 0.8847 GB, free: 336 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.01035, allocations: 70.2 kB / 0.8847 GB, free: 264 kB / 0.8386 GB Notification: Performance of SimCode: time 9.22e-07/0.01035, allocations: 4 kB / 0.8847 GB, free: 260 kB / 0.8386 GB Notification: Performance of Templates: time 0.002367/0.01271, allocations: 0.5121 MB / 0.8852 GB, free: 15.75 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.65828378405422]