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.002751/0.002751, allocations: 87.69 kB / 20.24 MB, free: 4.184 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.003756/0.003756, allocations: 157.3 kB / 23.55 MB, free: 0.875 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 1.679/1.679, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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 3.085/3.085, allocations: 377.8 MB / 0.6232 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 176] 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 1.764e-06/1.764e-06, allocations: 0 / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.295e-05/3.472e-05, allocations: 4.984 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.004377/0.004411, allocations: 1.549 MB / 0.8123 GB, free: 0.5625 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.005897, allocations: 480.9 kB / 0.8128 GB, free: 92 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.779e-05/0.005985, allocations: 0.875 kB / 0.8128 GB, free: 92 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.688e-05/0.006021, allocations: 3.938 kB / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.006134, allocations: 13.11 kB / 0.8128 GB, free: 76 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.006454, allocations: 39.83 kB / 0.8128 GB, free: 36 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.006667, allocations: 59.77 kB / 0.8129 GB, free: 15.97 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.00678, allocations: 13.53 kB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.007022, allocations: 27.97 kB / 0.8129 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.738e-05/0.007119, allocations: 23.91 kB / 0.813 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.00714, allocations: 5.375 kB / 0.813 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.834e-05/0.007209, allocations: 8 kB / 0.813 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.552e-05/0.007234, allocations: 7.984 kB / 0.813 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.563e-05/0.00728, allocations: 15.94 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.007477, allocations: 57.48 kB / 0.813 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.007483, allocations: 4 kB / 0.813 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.32e-07/0.007484, allocations: 0 / 0.813 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.007489, allocations: 0 / 0.813 GB, free: 15.82 MB / 0.7761 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.0007395/0.008228, allocations: 385.7 kB / 0.8134 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.008281, allocations: 12.03 kB / 0.8134 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.008581, allocations: 28.86 kB / 0.8135 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.008849, allocations: 125.3 kB / 0.8136 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.008869, allocations: 8.375 kB / 0.8136 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.008889, allocations: 1.312 kB / 0.8136 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.009093, allocations: 46.25 kB / 0.8136 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.009103, allocations: 0.8125 kB / 0.8136 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.009116, allocations: 384 / 0.8136 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.009125, allocations: 5.906 kB / 0.8136 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.009294, allocations: 35.91 kB / 0.8137 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005749/0.009869, allocations: 271.8 kB / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.01005, allocations: 47.61 kB / 0.814 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.685e-05/0.01014, allocations: 24.48 kB / 0.814 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.01017, allocations: 0 / 0.814 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/0.01022, allocations: 42.48 kB / 0.814 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.01022, allocations: 0 / 0.814 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0004286/0.01065, allocations: 82.39 kB / 0.8141 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.01071, allocations: 51.41 kB / 0.8142 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.01095, allocations: 191 kB / 0.8143 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.01098, allocations: 25.7 kB / 0.8144 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.01111, allocations: 142.9 kB / 0.8145 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.262e-05/0.01114, allocations: 8.734 kB / 0.8145 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.936e-05/0.01121, allocations: 27.3 kB / 0.8145 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003626/0.01157, allocations: 0.489 MB / 0.815 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.33e-05/0.01165, allocations: 17.17 kB / 0.815 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.137e-05/0.01174, allocations: 20.02 kB / 0.8151 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.01189, allocations: 39.61 kB / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.01189, allocations: 0.8125 kB / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002431/0.01213, allocations: 66.52 kB / 0.8152 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.01215, allocations: 4 kB / 0.8152 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.01216, allocations: 3.984 kB / 0.8152 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.01218, allocations: 5.344 kB / 0.8152 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.0123, allocations: 12 kB / 0.8152 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.01231, allocations: 0 / 0.8152 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.231e-05/0.01237, allocations: 4.875 kB / 0.8152 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.01239, allocations: 3.984 kB / 0.8152 GB, free: 13.44 MB / 0.7761 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 0.000149/0.01253, allocations: 162.8 kB / 0.8153 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.213e-05/0.01259, allocations: 11.89 kB / 0.8154 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.01262, allocations: 8 kB / 0.8154 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.01262, allocations: 0 / 0.8154 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.01263, allocations: 0 / 0.8154 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.01263, allocations: 0 / 0.8154 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.01292, allocations: 136 kB / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.01292, allocations: 0 / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.709e-05/0.01301, allocations: 12 kB / 0.8155 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.01301, allocations: 0 / 0.8155 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.01302, allocations: 3.938 kB / 0.8155 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.01302, allocations: 0 / 0.8155 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01302, allocations: 0 / 0.8155 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003448/0.01337, allocations: 211.9 kB / 0.8157 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.552e-05/0.01339, allocations: 8.547 kB / 0.8157 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.01341, allocations: 3.938 kB / 0.8157 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.01354, allocations: 4.5 kB / 0.8157 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/0.01359, allocations: 4.5 kB / 0.8157 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.0136, allocations: 4.547 kB / 0.8157 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003395/0.01394, allocations: 146.2 kB / 0.8159 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1e-07/0.01394, allocations: 1.406 kB / 0.8159 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000383/0.01432, allocations: 11.95 kB / 0.8159 GB, free: 12.67 MB / 0.7761 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.0001713/0.01449, allocations: 102.4 kB / 0.816 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002301/0.01472, allocations: 40.77 kB / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01473, allocations: 0 / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.01483, allocations: 28.33 kB / 0.8161 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.01519, allocations: 11.88 kB / 0.8161 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000558/0.01575, allocations: 164 kB / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.01586, allocations: 78.88 kB / 0.8163 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.761e-05/0.01591, allocations: 3.984 kB / 0.8163 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.519e-05/0.01596, allocations: 12.5 kB / 0.8163 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of SimCode: time 5.51e-07/0.01596, allocations: 0 / 0.8163 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of Templates: time 0.004251/0.02021, allocations: 476.4 kB / 0.8168 GB, free: 11.73 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 240] 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: 8.583814086974598]