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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008479/0.0008478, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.000959/0.0009592, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.3 MB / 240 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.604/2.604, allocations: 390.9 MB / 0.666 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004199, allocations: 12 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7341/0.7346, allocations: 142.4 MB / 0.9544 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001323/0.7359, allocations: 1.204 MB / 0.9556 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005563/0.7365, allocations: 390.2 kB / 0.956 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.451e-05/0.7365, allocations: 4 kB / 0.956 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.7366, allocations: 0 / 0.956 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.965e-05/0.7366, allocations: 18.44 kB / 0.956 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001484/0.7368, allocations: 14.23 kB / 0.956 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.862e-05/0.7369, allocations: 40.89 kB / 0.9561 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.308e-05/0.737, allocations: 17.66 kB / 0.9561 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.234e-05/0.7371, allocations: 16.39 kB / 0.9561 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.322e-05/0.7372, allocations: 28.5 kB / 0.9561 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.7372, allocations: 0 / 0.9561 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.295e-05/0.7372, allocations: 2.781 kB / 0.9561 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.364e-05/0.7372, allocations: 3.938 kB / 0.9561 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.284e-05/0.7372, allocations: 34.33 kB / 0.9562 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.285e-05/0.7373, allocations: 29.48 kB / 0.9562 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.7373, allocations: 0 / 0.9562 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.873e-06/0.7373, allocations: 0 / 0.9562 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.7373, allocations: 0 / 0.9562 GB, free: 6.383 MB / 0.7169 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.0004043/0.7377, allocations: 365.7 kB / 0.9565 GB, free: 6 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.7378, allocations: 9 kB / 0.9565 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.7378, allocations: 11.02 kB / 0.9566 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.872e-05/0.7379, allocations: 175.1 kB / 0.9567 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.738, allocations: 1.062 kB / 0.9567 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.738, allocations: 1.375 kB / 0.9567 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.7381, allocations: 63.03 kB / 0.9568 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.7382, allocations: 4 kB / 0.9568 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.7382, allocations: 0 / 0.9568 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.7382, allocations: 1.469 kB / 0.9568 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.7383, allocations: 42.8 kB / 0.9568 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003239/0.7387, allocations: 274.2 kB / 0.9571 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000114/0.7388, allocations: 49.03 kB / 0.9571 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.161e-05/0.7389, allocations: 27.31 kB / 0.9572 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.7389, allocations: 9.266 kB / 0.9572 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.7389, allocations: 30.56 kB / 0.9572 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.7389, allocations: 4.938 kB / 0.9572 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003111/0.7392, allocations: 102.8 kB / 0.9573 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.475e-05/0.7393, allocations: 56.66 kB / 0.9574 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.444e-05/0.7393, allocations: 111.6 kB / 0.9575 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.7394, allocations: 33.69 kB / 0.9575 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.7394, allocations: 87.42 kB / 0.9576 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.7394, allocations: 12.81 kB / 0.9576 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.7394, allocations: 0 / 0.9576 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.805e-05/0.7395, allocations: 321 kB / 0.9579 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.353e-05/0.7396, allocations: 25.27 kB / 0.9579 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.566e-05/0.7396, allocations: 17.61 kB / 0.9579 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.801e-05/0.7397, allocations: 21.36 kB / 0.958 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.7397, allocations: 0 / 0.958 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001625/0.7399, allocations: 79.67 kB / 0.958 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.7399, allocations: 8.688 kB / 0.9581 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.7399, allocations: 0 / 0.9581 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.7399, allocations: 5.266 kB / 0.9581 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.572e-05/0.74, allocations: 16.33 kB / 0.9581 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.7401, allocations: 0 / 0.9581 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.948e-05/0.7401, allocations: 9.062 kB / 0.9581 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.7401, allocations: 5.312 kB / 0.9581 GB, free: 4.52 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/0.7402, allocations: 116.1 kB / 0.9582 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.7402, allocations: 6.094 kB / 0.9582 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.7402, allocations: 10.09 kB / 0.9582 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.7402, allocations: 0 / 0.9582 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.7402, allocations: 4.984 kB / 0.9582 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.7403, allocations: 0 / 0.9582 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.7404, allocations: 171.4 kB / 0.9584 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.7404, allocations: 4 kB / 0.9584 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.911e-05/0.7405, allocations: 8.562 kB / 0.9584 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.7405, allocations: 0 / 0.9584 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.7405, allocations: 5.109 kB / 0.9584 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.7405, allocations: 0 / 0.9584 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.7405, allocations: 1.125 kB / 0.9584 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.7407, allocations: 186.2 kB / 0.9586 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.7407, allocations: 82.19 kB / 0.9587 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.7407, allocations: 4 kB / 0.9587 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.593e-05/0.7408, allocations: 5 kB / 0.9587 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.7409, allocations: 6.422 kB / 0.9587 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.7409, allocations: 1.125 kB / 0.9587 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.802e-05/0.7409, allocations: 100 kB / 0.9588 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7409, allocations: 0 / 0.9588 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002172/0.7411, allocations: 11.59 kB / 0.9588 GB, free: 3.797 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.039e-05/0.7412, allocations: 100.7 kB / 0.9589 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001647/0.7414, allocations: 49.78 kB / 0.9589 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.7414, allocations: 0 / 0.9589 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.813e-05/0.7415, allocations: 30.02 kB / 0.9589 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.7417, allocations: 6.188 kB / 0.959 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003018/0.742, allocations: 187.4 kB / 0.9591 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.7421, allocations: 0.686 MB / 0.9598 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.337e-05/0.7422, allocations: 1.562 kB / 0.9598 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.495e-05/0.7422, allocations: 8.875 kB / 0.9598 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7422, allocations: 0 / 0.9598 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of Templates: time 0.002271/0.7445, allocations: 388.7 kB / 0.9602 GB, free: 2.582 MB / 0.7169 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/jenkins/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