Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001362/0.001362, allocations: 113.5 kB / 16.41 MB, free: 6.484 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.001309/0.001309, allocations: 183 kB / 17.34 MB, free: 5.762 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.292/1.292, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.394/2.394, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 60.14 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7973/0.7986, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003072/0.8017, allocations: 1.506 MB / 1.169 GB, free: 2.312 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007982/0.8025, allocations: 415 kB / 1.169 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.153e-05/0.8026, allocations: 4 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.423e-05/0.8027, allocations: 3.938 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.458e-05/0.8027, allocations: 15.86 kB / 1.169 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001899/0.8029, allocations: 19.97 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.622e-05/0.8031, allocations: 47.8 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.8032, allocations: 15.92 kB / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.8033, allocations: 23.92 kB / 1.169 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.541e-05/0.8034, allocations: 19.91 kB / 1.169 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.8034, allocations: 4 kB / 1.169 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.8034, allocations: 8 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.221e-05/0.8035, allocations: 11.92 kB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.645e-05/0.8035, allocations: 15.94 kB / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.8036, allocations: 39.83 kB / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.8036, allocations: 4 kB / 1.169 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8036, allocations: 0 / 1.169 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.8037, allocations: 0 / 1.169 GB, free: 1.672 MB / 0.8887 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.0005438/0.8042, allocations: 361 kB / 1.17 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.8043, allocations: 12.92 kB / 1.17 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.8043, allocations: 8.844 kB / 1.17 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.8044, allocations: 180.2 kB / 1.17 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.8045, allocations: 4.359 kB / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.8045, allocations: 4.375 kB / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.8047, allocations: 57.98 kB / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.8047, allocations: 0 / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.8047, allocations: 0 / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.8047, allocations: 7.938 kB / 1.17 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.8049, allocations: 39.97 kB / 1.17 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004197/0.8053, allocations: 268.9 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.8054, allocations: 42.5 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.104e-05/0.8055, allocations: 24.94 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.8055, allocations: 0 / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.8056, allocations: 38.56 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.8056, allocations: 0 / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003213/0.8059, allocations: 89.69 kB / 1.17 GB, free: 404 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.8059, allocations: 51.41 kB / 1.171 GB, free: 340 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.8061, allocations: 121.8 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.8061, allocations: 25.7 kB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.8061, allocations: 92.14 kB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.8062, allocations: 11.84 kB / 1.171 GB, free: 68 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.739e-05/0.8062, allocations: 21.64 kB / 1.171 GB, free: 40 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.8063, allocations: 318.8 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.251e-05/0.8064, allocations: 19.98 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.844e-05/0.8065, allocations: 19.97 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.8066, allocations: 44.83 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.8066, allocations: 0 / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001779/0.8068, allocations: 81.5 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.8068, allocations: 4 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.8068, allocations: 0 / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.8069, allocations: 0 / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.807, allocations: 8 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.807, allocations: 3.984 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.405e-05/0.807, allocations: 4 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-06/0.8071, allocations: 4 kB / 1.171 GB, free: 15.52 MB / 0.9044 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.862e-05/0.8072, allocations: 117.8 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.8072, allocations: 3.906 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.432e-05/0.8072, allocations: 15.89 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.8073, allocations: 0 / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.8073, allocations: 0 / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.8073, allocations: 3.938 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.8074, allocations: 169.6 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.8075, allocations: 4 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.417e-05/0.8075, allocations: 11.98 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.8075, allocations: 0 / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.8076, allocations: 4 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.8076, allocations: 0 / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8076, allocations: 0 / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.8078, allocations: 167.4 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.889e-05/0.8079, allocations: 89.02 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.8079, allocations: 0 / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.467e-05/0.808, allocations: 7.984 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.808, allocations: 4 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.808, allocations: 0 / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.143e-05/0.8081, allocations: 95.7 kB / 1.172 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of sort global known variables: time 9e-08/0.8081, allocations: 0 / 1.172 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002221/0.8083, allocations: 8 kB / 1.172 GB, free: 14.73 MB / 0.9044 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.0001204/0.8084, allocations: 99.25 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001905/0.8086, allocations: 47.89 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.8087, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.965e-05/0.8087, allocations: 19.98 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002186/0.809, allocations: 8.5 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004288/0.8094, allocations: 197.8 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.8097, allocations: 0.6845 MB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.411e-05/0.8097, allocations: 7.438 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of SimCode: time 6.81e-07/0.8097, allocations: 0 / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of Templates: time 0.002141/0.8119, allocations: 0.7229 MB / 1.174 GB, free: 12.9 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches