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.007632/0.007632, allocations: 104.7 kB / 15.73 MB, free: 6.051 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.001618/0.001618, allocations: 191.6 kB / 16.68 MB, free: 5.965 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.411/1.411, allocations: 222.9 MB / 240.4 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.347/2.347, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 72.02 kB / 0.9508 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8177/0.819, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00271/0.8218, allocations: 1.506 MB / 1.089 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006369/0.8225, allocations: 419.9 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.157e-05/0.8225, allocations: 1.094 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.849e-05/0.8226, allocations: 8.672 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.398e-05/0.8226, allocations: 11.3 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.8228, allocations: 15.41 kB / 1.09 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.641e-05/0.8229, allocations: 54.92 kB / 1.09 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.823, allocations: 14.52 kB / 1.09 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.514e-05/0.8231, allocations: 25.5 kB / 1.09 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.745e-05/0.8232, allocations: 25.03 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.8232, allocations: 2.562 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.299e-05/0.8232, allocations: 3.719 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.118e-05/0.8233, allocations: 7.328 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.859e-05/0.8233, allocations: 23.77 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.802e-05/0.8234, allocations: 43.91 kB / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.8234, allocations: 1.672 kB / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8234, allocations: 4 kB / 1.09 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.8234, allocations: 0 / 1.09 GB, free: 4.059 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.0004186/0.8239, allocations: 364.4 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.8239, allocations: 9.125 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.8239, allocations: 8.125 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.783e-05/0.824, allocations: 173 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.824, allocations: 2.297 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.8241, allocations: 2.312 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.8242, allocations: 66.98 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.8242, allocations: 3.938 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.8243, allocations: 0.8125 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.8243, allocations: 1.125 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.8244, allocations: 35.8 kB / 1.091 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000332/0.8247, allocations: 269.3 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.8249, allocations: 46.53 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.16e-05/0.8249, allocations: 31.58 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.825, allocations: 0 / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.825, allocations: 36.28 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.825, allocations: 0 / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002909/0.8253, allocations: 90.61 kB / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.105e-05/0.8253, allocations: 52.16 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.107e-05/0.8254, allocations: 117.9 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.692e-06/0.8254, allocations: 29.64 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.851e-05/0.8254, allocations: 93.06 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.8255, allocations: 9.719 kB / 1.091 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/0.8255, allocations: 18.31 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.103e-05/0.8255, allocations: 321.8 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.9e-05/0.8256, allocations: 22.08 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.698e-05/0.8257, allocations: 21.42 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.8258, allocations: 41.31 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.8258, allocations: 0 / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001545/0.826, allocations: 73.28 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.826, allocations: 10.09 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.826, allocations: 0 / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.826, allocations: 0 / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.488e-05/0.8261, allocations: 9.812 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.8261, allocations: 2.047 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.084e-05/0.8262, allocations: 3.953 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.8262, allocations: 5.062 kB / 1.092 GB, free: 2.273 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 4.979e-05/0.8263, allocations: 116.9 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.8263, allocations: 3.516 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.8263, allocations: 10.36 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.8263, allocations: 0 / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.8263, allocations: 1.312 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.8264, allocations: 0.9062 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.8265, allocations: 171.9 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.8265, allocations: 0 / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.093e-05/0.8266, allocations: 13.91 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.8266, allocations: 0.875 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.8266, allocations: 1.609 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.8266, allocations: 0 / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.8266, allocations: 4.719 kB / 1.092 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.8268, allocations: 169.3 kB / 1.092 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.798e-05/0.8268, allocations: 87.16 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.8268, allocations: 1.516 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.959e-05/0.8269, allocations: 4.875 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.827, allocations: 3.75 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.827, allocations: 9.641 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.49e-05/0.827, allocations: 95.86 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/0.827, allocations: 0 / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002262/0.8273, allocations: 6.75 kB / 1.093 GB, free: 1.594 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 7.576e-05/0.8273, allocations: 98.2 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001815/0.8275, allocations: 44.88 kB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.8275, allocations: 0 / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.23e-05/0.8276, allocations: 29.03 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.8278, allocations: 4.719 kB / 1.093 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000335/0.8282, allocations: 160.3 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.8283, allocations: 0.683 MB / 1.094 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.281e-05/0.8283, allocations: 6.328 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.571e-05/0.8284, allocations: 14.27 kB / 1.094 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.8284, allocations: 0 / 1.094 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of Templates: time 0.002483/0.8308, allocations: 463 kB / 1.094 GB, free: 0.5664 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/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