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.009888/0.009888, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.002022/0.002022, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.335/2.335, allocations: 390.2 MB / 0.6648 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 68.08 kB / 0.9508 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9452/0.9473, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002793/0.9501, allocations: 1.516 MB / 1.089 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007211/0.9508, allocations: 420.7 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.519e-05/0.9509, allocations: 1.469 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.087e-05/0.951, allocations: 4.5 kB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.006e-05/0.951, allocations: 10.75 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.9512, allocations: 16.33 kB / 1.09 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.605e-05/0.9513, allocations: 53.2 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.9515, allocations: 11.27 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.82e-05/0.9516, allocations: 25.28 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.356e-05/0.9517, allocations: 25.05 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.9517, allocations: 2.781 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.33e-05/0.9517, allocations: 2.938 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.9517, allocations: 8.125 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.9518, allocations: 23.23 kB / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.9519, allocations: 45.17 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.9519, allocations: 0 / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.335e-06/0.9519, allocations: 0 / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.952, allocations: 4.75 kB / 1.09 GB, free: 4.043 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.0005094/0.9525, allocations: 366.3 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.9525, allocations: 10.48 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.75e-05/0.9526, allocations: 7.109 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.9527, allocations: 174.2 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.9527, allocations: 1.5 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.9527, allocations: 2.906 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.9529, allocations: 63.25 kB / 1.091 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.9529, allocations: 4 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.953, allocations: 0 / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.953, allocations: 0.9375 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001455/0.9531, allocations: 35.67 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/0.9535, allocations: 277.9 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/0.9536, allocations: 46.66 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.358e-05/0.9537, allocations: 23.47 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.9538, allocations: 0 / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.9538, allocations: 32.12 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.9538, allocations: 0 / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003523/0.9542, allocations: 94.92 kB / 1.091 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.9542, allocations: 55.41 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.343e-05/0.9543, allocations: 118.4 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.9543, allocations: 26.83 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.748e-05/0.9543, allocations: 91.92 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.9544, allocations: 9.594 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.9544, allocations: 18.47 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.395e-05/0.9545, allocations: 318.1 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.842e-05/0.9546, allocations: 21.41 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.867e-05/0.9546, allocations: 17.39 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.9548, allocations: 49.61 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.9548, allocations: 0 / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001881/0.955, allocations: 69.06 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.955, allocations: 6 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.955, allocations: 0 / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.9551, allocations: 6.438 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.9552, allocations: 8.984 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.9552, allocations: 0 / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.755e-05/0.9553, allocations: 5.188 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.9553, allocations: 1.828 kB / 1.092 GB, free: 2.262 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 9.774e-05/0.9554, allocations: 116.4 kB / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.487e-05/0.9554, allocations: 7.156 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.071e-05/0.9555, allocations: 6.297 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.9555, allocations: 4.688 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.9555, allocations: 0 / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.9555, allocations: 5.484 kB / 1.092 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.9557, allocations: 172.3 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.9557, allocations: 0 / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.138e-05/0.9558, allocations: 13.92 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.9558, allocations: 0 / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.9558, allocations: 5.531 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.9558, allocations: 0.9062 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.9558, allocations: 0.7969 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/0.9561, allocations: 172.8 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.9561, allocations: 83.3 kB / 1.092 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.9561, allocations: 1.406 kB / 1.092 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.618e-05/0.9562, allocations: 8.953 kB / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.9563, allocations: 3.281 kB / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.9563, allocations: 1.703 kB / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.633e-05/0.9564, allocations: 103.6 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9564, allocations: 0 / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000233/0.9566, allocations: 11.97 kB / 1.093 GB, free: 1.566 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 0.0001386/0.9567, allocations: 101.5 kB / 1.093 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002376/0.957, allocations: 40.36 kB / 1.093 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.957, allocations: 0 / 1.093 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.785e-05/0.9571, allocations: 24.75 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.9573, allocations: 5.969 kB / 1.093 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004566/0.9578, allocations: 158.3 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.958, allocations: 0.6832 MB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.491e-05/0.9581, allocations: 2.766 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.739e-05/0.9581, allocations: 13.48 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.9581, allocations: 0 / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of Templates: time 0.003111/0.9612, allocations: 469.2 kB / 1.094 GB, free: 0.543 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