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.001354/0.001354, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001605/0.001605, allocations: 192.7 kB / 16.14 MB, free: 6.711 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.438/1.438, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.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.455/2.455, allocations: 390.2 MB / 0.6642 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 71.89 kB / 0.8119 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7044/0.7067, allocations: 140.3 MB / 0.9489 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002327/0.7091, allocations: 1.575 MB / 0.9505 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004718/0.7096, allocations: 417.8 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.63e-05/0.7096, allocations: 0 / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.234e-05/0.7097, allocations: 1.531 kB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.701e-05/0.7097, allocations: 13.11 kB / 0.9509 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001443/0.7099, allocations: 10.83 kB / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.195e-05/0.71, allocations: 51.25 kB / 0.9509 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.996e-05/0.7101, allocations: 13.36 kB / 0.9509 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.7101, allocations: 25.11 kB / 0.951 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.308e-05/0.7102, allocations: 24.19 kB / 0.951 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.7103, allocations: 1.438 kB / 0.951 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.7103, allocations: 2.75 kB / 0.951 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.098e-05/0.7103, allocations: 13.3 kB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.81e-05/0.7103, allocations: 17.5 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.888e-05/0.7104, allocations: 44.12 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.7104, allocations: 0 / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.71e-07/0.7104, allocations: 0 / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.7104, allocations: 1.406 kB / 0.9511 GB, free: 7.566 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.0004156/0.7109, allocations: 357.2 kB / 0.9514 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.7109, allocations: 9.594 kB / 0.9514 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.15e-05/0.7109, allocations: 7.312 kB / 0.9514 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.041e-05/0.711, allocations: 180.2 kB / 0.9516 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.711, allocations: 4.375 kB / 0.9516 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.7111, allocations: 2.625 kB / 0.9516 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.7112, allocations: 63.11 kB / 0.9517 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.7113, allocations: 4 kB / 0.9517 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.7113, allocations: 5.25 kB / 0.9517 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.7113, allocations: 0 / 0.9517 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.7114, allocations: 32.09 kB / 0.9517 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003078/0.7117, allocations: 269.8 kB / 0.952 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.7119, allocations: 46.16 kB / 0.952 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.708e-05/0.7119, allocations: 22.84 kB / 0.952 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.7119, allocations: 9.219 kB / 0.952 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.712, allocations: 31.72 kB / 0.9521 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.712, allocations: 0 / 0.9521 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002919/0.7123, allocations: 91.48 kB / 0.9521 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.033e-05/0.7123, allocations: 52.72 kB / 0.9522 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.815e-05/0.7124, allocations: 120 kB / 0.9523 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.7124, allocations: 25.7 kB / 0.9523 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.958e-05/0.7124, allocations: 94.83 kB / 0.9524 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.7124, allocations: 17.3 kB / 0.9524 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.7125, allocations: 13.09 kB / 0.9525 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.622e-05/0.7125, allocations: 328 kB / 0.9528 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.591e-05/0.7126, allocations: 18.34 kB / 0.9528 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.543e-05/0.7127, allocations: 16.67 kB / 0.9528 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.7128, allocations: 38.11 kB / 0.9528 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7128, allocations: 0 / 0.9528 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001535/0.7129, allocations: 79.16 kB / 0.9529 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.713, allocations: 5.656 kB / 0.9529 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.713, allocations: 4 kB / 0.9529 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.713, allocations: 2 kB / 0.9529 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.7131, allocations: 9.953 kB / 0.9529 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.7131, allocations: 3.938 kB / 0.9529 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.211e-05/0.7132, allocations: 3.938 kB / 0.9529 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.7132, allocations: 4 kB / 0.9529 GB, free: 5.668 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.229e-05/0.7133, allocations: 112.2 kB / 0.9531 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.7133, allocations: 11.42 kB / 0.9531 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.7133, allocations: 17.06 kB / 0.9531 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.7133, allocations: 0 / 0.9531 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.7133, allocations: 1.344 kB / 0.9531 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.7133, allocations: 0 / 0.9531 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.7135, allocations: 171.1 kB / 0.9532 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7135, allocations: 0 / 0.9532 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.134e-05/0.7136, allocations: 10.73 kB / 0.9533 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.7136, allocations: 0 / 0.9533 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.7136, allocations: 1.031 kB / 0.9533 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.7136, allocations: 0 / 0.9533 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.7136, allocations: 5.25 kB / 0.9533 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.7138, allocations: 177.5 kB / 0.9534 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.778e-05/0.7138, allocations: 78.58 kB / 0.9535 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.7138, allocations: 1.469 kB / 0.9535 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.22e-05/0.7139, allocations: 6.766 kB / 0.9535 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.7139, allocations: 1.406 kB / 0.9535 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.714, allocations: 5.469 kB / 0.9535 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.461e-05/0.714, allocations: 95.89 kB / 0.9536 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.714, allocations: 0 / 0.9536 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002178/0.7142, allocations: 7.719 kB / 0.9536 GB, free: 4.953 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.602e-05/0.7143, allocations: 100.3 kB / 0.9537 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001674/0.7145, allocations: 39.91 kB / 0.9538 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7145, allocations: 0 / 0.9538 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.747e-05/0.7146, allocations: 28.48 kB / 0.9538 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.7148, allocations: 6.094 kB / 0.9538 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003241/0.7151, allocations: 175.7 kB / 0.954 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.907e-05/0.7153, allocations: 0.6856 MB / 0.9546 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.407e-05/0.7153, allocations: 1.344 kB / 0.9546 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.734e-05/0.7153, allocations: 16.83 kB / 0.9546 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7153, allocations: 0 / 0.9546 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of Templates: time 0.002429/0.7178, allocations: 394.8 kB / 0.955 GB, free: 3.75 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