Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000861/0.000861, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009535/0.0009535, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9194/0.9194, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.816/1.816, allocations: 377.8 MB / 0.6228 GB, free: 8.637 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.053e-06/2.053e-06, allocations: 0 / 0.9822 GB, free: 2.082 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.773e-05/2.979e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.078 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002812/0.002842, allocations: 1.518 MB / 0.9837 GB, free: 0.5508 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0008518/0.003694, allocations: 474.8 kB / 0.9841 GB, free: 84 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.871e-05/0.003773, allocations: 7.938 kB / 0.9841 GB, free: 76 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.696e-05/0.00381, allocations: 7.922 kB / 0.9841 GB, free: 68 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.742e-05/0.003867, allocations: 11.86 kB / 0.9842 GB, free: 56 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.004124, allocations: 31.91 kB / 0.9842 GB, free: 24 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.004273, allocations: 59.7 kB / 0.9842 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.004384, allocations: 11.98 kB / 0.9843 GB, free: 15.95 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.004553, allocations: 39.86 kB / 0.9843 GB, free: 15.91 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 6.923e-05/0.004622, allocations: 19.91 kB / 0.9843 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.004645, allocations: 4 kB / 0.9843 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 4.781e-05/0.004693, allocations: 7.984 kB / 0.9843 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 1.386e-05/0.004707, allocations: 8 kB / 0.9843 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 2.623e-05/0.004733, allocations: 15.92 kB / 0.9843 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.004867, allocations: 51.86 kB / 0.9844 GB, free: 15.81 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.00487, allocations: 3.938 kB / 0.9844 GB, free: 15.8 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.393e-06/0.004871, allocations: 0 / 0.9844 GB, free: 15.8 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.004875, allocations: 4 kB / 0.9844 GB, free: 15.8 MB / 0.948 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.0004492/0.005324, allocations: 294.1 kB / 0.9847 GB, free: 15.48 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.005363, allocations: 8.031 kB / 0.9847 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/0.005547, allocations: 28.86 kB / 0.9847 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.005759, allocations: 125.7 kB / 0.9848 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.00577, allocations: 384 / 0.9848 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.005781, allocations: 4.375 kB / 0.9848 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.005942, allocations: 58.17 kB / 0.9849 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.005952, allocations: 192 / 0.9849 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.005964, allocations: 4.375 kB / 0.9849 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.005969, allocations: 3.938 kB / 0.9849 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.923e-05/0.006069, allocations: 31.97 kB / 0.9849 GB, free: 15.2 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003356/0.006404, allocations: 224.5 kB / 0.9851 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.006519, allocations: 42.5 kB / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.376e-05/0.006583, allocations: 28.94 kB / 0.9852 GB, free: 14.86 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.0066, allocations: 0 / 0.9852 GB, free: 14.86 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.006623, allocations: 34.5 kB / 0.9853 GB, free: 14.82 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.006625, allocations: 0 / 0.9853 GB, free: 14.82 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0002807/0.006905, allocations: 85.66 kB / 0.9853 GB, free: 14.73 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.006941, allocations: 55.39 kB / 0.9854 GB, free: 14.66 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.482e-05/0.007036, allocations: 125.5 kB / 0.9855 GB, free: 14.54 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.00705, allocations: 25.7 kB / 0.9855 GB, free: 14.5 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.007099, allocations: 96.06 kB / 0.9856 GB, free: 14.41 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.007122, allocations: 15.95 kB / 0.9856 GB, free: 14.39 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.007157, allocations: 13.66 kB / 0.9856 GB, free: 14.37 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.007254, allocations: 322.8 kB / 0.986 GB, free: 14.05 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.203e-05/0.007306, allocations: 15.98 kB / 0.986 GB, free: 14.03 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.437e-05/0.00735, allocations: 15.98 kB / 0.986 GB, free: 14.02 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.007451, allocations: 40.83 kB / 0.986 GB, free: 13.97 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.007453, allocations: 0 / 0.986 GB, free: 13.97 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001535/0.007607, allocations: 81.56 kB / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.007622, allocations: 4 kB / 0.9861 GB, free: 13.88 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.007627, allocations: 0 / 0.9861 GB, free: 13.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.007641, allocations: 3.938 kB / 0.9861 GB, free: 13.88 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/0.007727, allocations: 15.92 kB / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.007733, allocations: 0 / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.787e-05/0.007771, allocations: 4 kB / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.00778, allocations: 3.984 kB / 0.9861 GB, free: 13.86 MB / 0.948 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 7.623e-05/0.007856, allocations: 117.8 kB / 0.9862 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.007884, allocations: 11.89 kB / 0.9863 GB, free: 13.72 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.404e-05/0.007908, allocations: 12.33 kB / 0.9863 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.007911, allocations: 0 / 0.9863 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.007915, allocations: 0 / 0.9863 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.00792, allocations: 3.984 kB / 0.9863 GB, free: 13.7 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.00806, allocations: 113.3 kB / 0.9864 GB, free: 13.56 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.008065, allocations: 3.984 kB / 0.9864 GB, free: 13.56 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.003e-05/0.008115, allocations: 12 kB / 0.9864 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.008118, allocations: 4 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.008127, allocations: 3.938 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.00813, allocations: 7.984 kB / 0.9864 GB, free: 13.53 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.008132, allocations: 0 / 0.9864 GB, free: 13.53 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.008603, allocations: 167.4 kB / 0.9866 GB, free: 13.35 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.204e-05/0.008615, allocations: 4 kB / 0.9866 GB, free: 13.35 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.008634, allocations: 11.92 kB / 0.9866 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.394e-05/0.008698, allocations: 3.938 kB / 0.9866 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.008738, allocations: 4 kB / 0.9866 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.008744, allocations: 3.984 kB / 0.9866 GB, free: 13.32 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.475e-05/0.008799, allocations: 99.27 kB / 0.9867 GB, free: 13.23 MB / 0.948 GB Notification: Performance of sort global known variables: time 9e-08/0.008799, allocations: 4 kB / 0.9867 GB, free: 13.22 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002576/0.009057, allocations: 8 kB / 0.9867 GB, free: 13.21 MB / 0.948 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 9.755e-05/0.009154, allocations: 95.25 kB / 0.9868 GB, free: 13.11 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001518/0.009306, allocations: 35.97 kB / 0.9868 GB, free: 13.07 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.009309, allocations: 4 kB / 0.9868 GB, free: 13.07 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.811e-05/0.009367, allocations: 23.92 kB / 0.9869 GB, free: 13.05 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.009611, allocations: 0 / 0.9869 GB, free: 13.05 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003598/0.00997, allocations: 186.4 kB / 0.987 GB, free: 12.83 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.691e-05/0.01003, allocations: 75.58 kB / 0.9871 GB, free: 12.74 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.01006, allocations: 12.5 kB / 0.9871 GB, free: 12.73 MB / 0.948 GB Notification: Performance of SimCode: time 9.62e-07/0.01006, allocations: 0 / 0.9871 GB, free: 12.73 MB / 0.948 GB Notification: Performance of Templates: time 0.00149/0.01155, allocations: 0.8014 MB / 0.9879 GB, free: 11.93 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.820170325227082]