Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0014/0.0014, allocations: 103.2 kB / 16.4 MB, free: 6.461 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.001447/0.001447, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.377/1.377, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.24/2.24, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 63.91 kB / 0.9515 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8553/0.8567, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002907/0.8597, allocations: 1.505 MB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006805/0.8604, allocations: 419.1 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.207e-05/0.8604, allocations: 1.125 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.8605, allocations: 5.109 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.554e-05/0.8605, allocations: 14.09 kB / 1.091 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001873/0.8607, allocations: 16.56 kB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.8608, allocations: 50.11 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.861, allocations: 11.38 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.8611, allocations: 29.45 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.383e-05/0.8612, allocations: 24.94 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.8612, allocations: 3.281 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.438e-05/0.8612, allocations: 3.375 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.8612, allocations: 7.219 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.46e-05/0.8613, allocations: 19.17 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.8614, allocations: 48.8 kB / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.8614, allocations: 4 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.014e-06/0.8614, allocations: 0.5625 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.8614, allocations: 0 / 1.091 GB, free: 4.074 MB / 0.8575 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.0004612/0.8619, allocations: 364.3 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.8619, allocations: 9.062 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.862, allocations: 12.3 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.618e-05/0.8621, allocations: 176.8 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.8621, allocations: 2.062 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.8621, allocations: 1.781 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.8623, allocations: 68 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.8623, allocations: 0 / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.8623, allocations: 1.094 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.8623, allocations: 1.297 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.8625, allocations: 34.47 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000334/0.8628, allocations: 270.6 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.8629, allocations: 46.33 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.316e-05/0.863, allocations: 22.97 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.863, allocations: 1.766 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.863, allocations: 31.17 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.863, allocations: 0.875 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000306/0.8634, allocations: 94.06 kB / 1.092 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.8634, allocations: 51.41 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.718e-05/0.8635, allocations: 118.4 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.8635, allocations: 29.64 kB / 1.092 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.8635, allocations: 92.86 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.8636, allocations: 9.703 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.8636, allocations: 17.66 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.878e-05/0.8636, allocations: 322.8 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.663e-05/0.8637, allocations: 17.17 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.757e-05/0.8638, allocations: 17.86 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.8639, allocations: 40.95 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.8639, allocations: 1.188 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001631/0.8641, allocations: 84.41 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.8641, allocations: 5.219 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.8641, allocations: 0.5625 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.8641, allocations: 1 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.656e-05/0.8642, allocations: 9.688 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.8642, allocations: 0.9688 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.861e-05/0.8643, allocations: 4.969 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.8643, allocations: 5.094 kB / 1.093 GB, free: 2.293 MB / 0.8575 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 5.929e-05/0.8644, allocations: 117.1 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.55e-05/0.8644, allocations: 7.406 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.8644, allocations: 6.688 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.8644, allocations: 0 / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.8645, allocations: 1.219 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.8645, allocations: 0.75 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.8646, allocations: 171.2 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.8646, allocations: 4.734 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.37e-05/0.8647, allocations: 9.312 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.8647, allocations: 1.453 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.8647, allocations: 8.453 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.8647, allocations: 4.938 kB / 1.093 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.8647, allocations: 0.5625 kB / 1.093 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.8649, allocations: 169.4 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.667e-05/0.8649, allocations: 83.09 kB / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.865, allocations: 0.875 kB / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.8651, allocations: 5.891 kB / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.8651, allocations: 6.516 kB / 1.093 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.8651, allocations: 2.047 kB / 1.093 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.451e-05/0.8652, allocations: 99.83 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8652, allocations: 0 / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002162/0.8654, allocations: 7.281 kB / 1.093 GB, free: 1.609 MB / 0.8575 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 9.659e-05/0.8655, allocations: 97.23 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001964/0.8657, allocations: 49.34 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.8657, allocations: 0 / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.393e-05/0.8658, allocations: 20.55 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.866, allocations: 5.531 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/0.8664, allocations: 194.5 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.8665, allocations: 0.6832 MB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.75e-05/0.8666, allocations: 14.48 kB / 1.094 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.8666, allocations: 0 / 1.094 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of Templates: time 0.002362/0.8689, allocations: 0.7024 MB / 1.095 GB, free: 0.582 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches