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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001177/0.001177, allocations: 107.1 kB / 16.35 MB, free: 5.824 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.001219/0.001219, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.527/2.527, allocations: 442.5 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 67.86 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3241, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00301/0.3272, allocations: 1.516 MB / 1.028 GB, free: 0.5 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006621/0.3278, allocations: 410.9 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.838e-05/0.3279, allocations: 4 kB / 1.029 GB, free: 92 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.321e-05/0.328, allocations: 7.922 kB / 1.029 GB, free: 84 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.878e-05/0.328, allocations: 15.86 kB / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.3282, allocations: 19.92 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.679e-05/0.3283, allocations: 51.86 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.865e-05/0.3284, allocations: 7.984 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.828e-05/0.3285, allocations: 31.77 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.3286, allocations: 23.91 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.634e-05/0.3286, allocations: 4 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.326e-05/0.3286, allocations: 8 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.079e-05/0.3287, allocations: 7.938 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.3287, allocations: 23.86 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.618e-05/0.3288, allocations: 43.88 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3288, allocations: 0 / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3288, allocations: 0 / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3288, allocations: 0 / 1.029 GB, free: 15.85 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.0004839/0.3293, allocations: 367.2 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3294, allocations: 16.75 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.3294, allocations: 8.828 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.3295, allocations: 168.3 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.3296, allocations: 4.375 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.3296, allocations: 4.375 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.3298, allocations: 61.92 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3298, allocations: 0 / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.3298, allocations: 0 / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.3298, allocations: 4 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.3299, allocations: 35.97 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000502/0.3304, allocations: 276.8 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.3306, allocations: 46.5 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.447e-05/0.3307, allocations: 20.94 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.3307, allocations: 4 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.3307, allocations: 34.56 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.563e-06/0.3307, allocations: 0 / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003196/0.3311, allocations: 85.64 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.3311, allocations: 55.41 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.3312, allocations: 113.8 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.3313, allocations: 29.64 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.698e-05/0.3313, allocations: 104 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.3313, allocations: 7.891 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.3314, allocations: 17.72 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3315, allocations: 318.8 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.09e-05/0.3316, allocations: 19.98 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.422e-05/0.3317, allocations: 15.98 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.3318, allocations: 44.83 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3318, allocations: 0 / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001721/0.332, allocations: 73.58 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.332, allocations: 7.938 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.332, allocations: 0 / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.332, allocations: 0 / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3322, allocations: 15.92 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3322, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.976e-05/0.3322, allocations: 8 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.3322, allocations: 3.984 kB / 1.031 GB, free: 13.69 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 6.857e-05/0.3323, allocations: 113.8 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/0.3324, allocations: 4 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.255e-05/0.3324, allocations: 8.234 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3324, allocations: 0 / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3324, allocations: 0 / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3324, allocations: 3.984 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.3326, allocations: 177.6 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3326, allocations: 4 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.684e-05/0.3327, allocations: 4 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3327, allocations: 0 / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.3327, allocations: 7.984 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3327, allocations: 4 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3327, allocations: 0 / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.3329, allocations: 175.3 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.889e-05/0.333, allocations: 92.94 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.333, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.218e-05/0.3331, allocations: 4 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.3331, allocations: 3.984 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.3331, allocations: 4 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.976e-05/0.3332, allocations: 91.27 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3332, allocations: 0 / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002243/0.3334, allocations: 12 kB / 1.031 GB, free: 12.9 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.0001081/0.3335, allocations: 99.25 kB / 1.031 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.3338, allocations: 39.97 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3338, allocations: 0 / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.338e-05/0.3339, allocations: 23.86 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.3341, allocations: 11.88 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005164/0.3347, allocations: 155.2 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.3351, allocations: 0.6885 MB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.886e-05/0.3352, allocations: 0 / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.3352, allocations: 7.438 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of SimCode: time 3.91e-07/0.3352, allocations: 0 / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of Templates: time 0.003229/0.3385, allocations: 463.5 kB / 1.033 GB, free: 11.37 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 -s cvode -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/jenkins1/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