Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 102.2 kB / 16.27 MB, free: 6 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.001227/0.001227, allocations: 191 kB / 17.2 MB, free: 5.609 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.429/1.429, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.739/2.739, allocations: 469.8 MB / 0.743 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 68.27 kB / 0.9092 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.329, allocations: 159.1 MB / 1.065 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002973/0.332, allocations: 1.502 MB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00071/0.3328, allocations: 427 kB / 1.067 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.994e-05/0.3328, allocations: 0 / 1.067 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.783e-05/0.3329, allocations: 3.938 kB / 1.067 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.767e-05/0.333, allocations: 7.875 kB / 1.067 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001477/0.3331, allocations: 15.97 kB / 1.067 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.569e-05/0.3332, allocations: 51.73 kB / 1.067 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.3333, allocations: 15.98 kB / 1.067 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.3334, allocations: 23.92 kB / 1.067 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.623e-05/0.3335, allocations: 23.91 kB / 1.067 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.3335, allocations: 4 kB / 1.067 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.3336, allocations: 4 kB / 1.067 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.262e-05/0.3336, allocations: 7.938 kB / 1.067 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.221e-05/0.3336, allocations: 23.86 kB / 1.067 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.818e-05/0.3337, allocations: 44.16 kB / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3337, allocations: 0 / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.396e-06/0.3338, allocations: 0 / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.3338, allocations: 3.938 kB / 1.067 GB, free: 12.62 MB / 0.8419 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.0005347/0.3343, allocations: 367.2 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.3343, allocations: 8.031 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.504e-05/0.3344, allocations: 8.844 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.3345, allocations: 176.2 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3346, allocations: 384 / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.3346, allocations: 384 / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.3348, allocations: 57.98 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.3348, allocations: 3.938 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3348, allocations: 8 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3348, allocations: 0 / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.3349, allocations: 31.97 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003994/0.3354, allocations: 280.8 kB / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.3355, allocations: 46.56 kB / 1.068 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.991e-05/0.3356, allocations: 24.94 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.3356, allocations: 0 / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.3357, allocations: 34.55 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.3357, allocations: 0 / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.000325/0.336, allocations: 89.5 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.336, allocations: 59.41 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.3362, allocations: 117.8 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.3362, allocations: 25.7 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.3362, allocations: 92.12 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.3363, allocations: 11.89 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.3363, allocations: 9.719 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3365, allocations: 326.8 kB / 1.068 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.666e-05/0.3366, allocations: 19.98 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.363e-05/0.3366, allocations: 19.98 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.3368, allocations: 44.77 kB / 1.069 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3368, allocations: 0 / 1.069 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001849/0.337, allocations: 65.58 kB / 1.069 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.337, allocations: 10.19 kB / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.337, allocations: 0 / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.337, allocations: 4 kB / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.3371, allocations: 11.92 kB / 1.069 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.3372, allocations: 4 kB / 1.069 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.619e-05/0.3372, allocations: 7.984 kB / 1.069 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.3372, allocations: 4 kB / 1.069 GB, free: 10.47 MB / 0.8419 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 8.569e-05/0.3373, allocations: 109.8 kB / 1.069 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.339e-05/0.3374, allocations: 4.328 kB / 1.069 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.527e-05/0.3374, allocations: 7.906 kB / 1.069 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3374, allocations: 7.984 kB / 1.069 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3374, allocations: 4 kB / 1.069 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.3374, allocations: 0 / 1.069 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.3376, allocations: 177.5 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3377, allocations: 0 / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.195e-05/0.3377, allocations: 15.92 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3378, allocations: 0 / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.3378, allocations: 0 / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3378, allocations: 0 / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3378, allocations: 3.938 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.338, allocations: 175.5 kB / 1.069 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.695e-05/0.3381, allocations: 84.95 kB / 1.069 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.3381, allocations: 0 / 1.069 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.132e-05/0.3382, allocations: 4 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.3383, allocations: 7.984 kB / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.3383, allocations: 0 / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.022e-05/0.3383, allocations: 91.27 kB / 1.069 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3383, allocations: 4 kB / 1.069 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002224/0.3386, allocations: 8 kB / 1.069 GB, free: 9.684 MB / 0.8419 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.0001245/0.3387, allocations: 103.2 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001997/0.3389, allocations: 35.97 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3389, allocations: 0 / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.742e-05/0.339, allocations: 23.98 kB / 1.069 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.3392, allocations: 11.94 kB / 1.069 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003979/0.3396, allocations: 182 kB / 1.07 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.34, allocations: 0.6846 MB / 1.07 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.308e-05/0.34, allocations: 19.38 kB / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of SimCode: time 2.61e-07/0.34, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of Templates: time 0.002401/0.3424, allocations: 0.697 MB / 1.071 GB, free: 7.871 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches