Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001571/0.001571, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.002051/0.002051, allocations: 192.8 kB / 16.25 MB, free: 6.152 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.385/1.385, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.883/2.883, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.16 kB / 0.8986 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.328, allocations: 157.4 MB / 1.052 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002897/0.331, allocations: 1.569 MB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007156/0.3317, allocations: 427.2 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.424e-05/0.3318, allocations: 4 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.854e-05/0.3318, allocations: 0 / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.619e-05/0.3319, allocations: 7.875 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.3321, allocations: 19.98 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.988e-05/0.3322, allocations: 47.8 kB / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.3323, allocations: 15.97 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.3324, allocations: 31.86 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.604e-05/0.3325, allocations: 15.92 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.3326, allocations: 4 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.355e-05/0.3326, allocations: 4 kB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.263e-05/0.3326, allocations: 11.92 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.7e-05/0.3327, allocations: 19.88 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.6e-05/0.3328, allocations: 40.16 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3328, allocations: 0 / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3328, allocations: 3.938 kB / 1.054 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.3328, allocations: 0 / 1.054 GB, free: 6.508 MB / 0.8106 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.0005706/0.3334, allocations: 371.2 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3334, allocations: 8.625 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.3335, allocations: 4.938 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.3336, allocations: 168.3 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.3336, allocations: 4.312 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.3336, allocations: 4.375 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.3338, allocations: 65.91 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.3338, allocations: 0 / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3339, allocations: 4 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3339, allocations: 0 / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.334, allocations: 39.95 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.3344, allocations: 280.8 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.3346, allocations: 42.5 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.258e-05/0.3347, allocations: 24.94 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.3347, allocations: 0 / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.3347, allocations: 34.56 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.3347, allocations: 0 / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003002/0.335, allocations: 81.66 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.3351, allocations: 55.41 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.425e-05/0.3352, allocations: 121.8 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.3352, allocations: 25.7 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.729e-05/0.3353, allocations: 96.03 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.3353, allocations: 3.906 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.3353, allocations: 21.7 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.3354, allocations: 322.7 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.786e-05/0.3355, allocations: 19.98 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.748e-05/0.3356, allocations: 15.98 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.3357, allocations: 40.83 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3357, allocations: 0 / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001659/0.3359, allocations: 77.56 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.3359, allocations: 4 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3359, allocations: 0 / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.3359, allocations: 4 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.3361, allocations: 8 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.3361, allocations: 3.938 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.5e-05/0.3361, allocations: 7.984 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.3361, allocations: 0 / 1.056 GB, free: 4.363 MB / 0.8106 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.231e-05/0.3362, allocations: 121.7 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.3363, allocations: 0 / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.3363, allocations: 11.89 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.3363, allocations: 7.938 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3363, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3363, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.3365, allocations: 177.6 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3365, allocations: 0 / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.956e-05/0.3366, allocations: 11.98 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3366, allocations: 0 / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.3366, allocations: 0 / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3366, allocations: 4 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3366, allocations: 0 / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.3368, allocations: 175.6 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.3369, allocations: 88.95 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.3369, allocations: 48 / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.728e-05/0.337, allocations: 11.97 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.3371, allocations: 4 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.3371, allocations: 0 / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.609e-05/0.3371, allocations: 103.6 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9e-08/0.3371, allocations: 0 / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002376/0.3374, allocations: 8 kB / 1.057 GB, free: 3.555 MB / 0.8106 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.0001351/0.3375, allocations: 95.25 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001939/0.3377, allocations: 43.95 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3377, allocations: 0 / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.356e-05/0.3378, allocations: 23.92 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.338, allocations: 10.61 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004127/0.3385, allocations: 164.4 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.3388, allocations: 0.6807 MB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.447e-05/0.3388, allocations: 4 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.923e-05/0.3388, allocations: 11.44 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of SimCode: time 1.734e-06/0.3389, allocations: 0 / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of Templates: time 0.002315/0.3412, allocations: 420.9 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches