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.001522/0.001522, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.001731/0.001731, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 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.369/1.369, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.964/2.964, allocations: 0.4892 GB / 0.7943 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 69 kB / 1.153 GB, free: 25.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3294, allocations: 176.1 MB / 1.325 GB, free: 2.336 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003204/0.3326, allocations: 1.525 MB / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3336, allocations: 470.8 kB / 1.327 GB, free: 348 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.594e-05/0.3337, allocations: 4 kB / 1.327 GB, free: 344 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.477e-05/0.3337, allocations: 3.938 kB / 1.327 GB, free: 340 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.661e-05/0.3338, allocations: 11.88 kB / 1.327 GB, free: 328 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.3341, allocations: 39.88 kB / 1.327 GB, free: 288 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000143/0.3343, allocations: 47.8 kB / 1.327 GB, free: 240 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.3344, allocations: 11.98 kB / 1.327 GB, free: 228 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.3345, allocations: 35.84 kB / 1.327 GB, free: 192 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.043e-05/0.3346, allocations: 23.86 kB / 1.327 GB, free: 168 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.3346, allocations: 4 kB / 1.327 GB, free: 164 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.3347, allocations: 8 kB / 1.327 GB, free: 156 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.3347, allocations: 11.92 kB / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.02e-05/0.3347, allocations: 19.94 kB / 1.327 GB, free: 124 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.3349, allocations: 55.95 kB / 1.327 GB, free: 68 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.3349, allocations: 0 / 1.327 GB, free: 68 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3349, allocations: 4 kB / 1.327 GB, free: 64 kB / 1.014 GB Notification: Performance of Transformations before backend: time 6.772e-06/0.3349, allocations: 0 / 1.327 GB, free: 64 kB / 1.014 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.0005579/0.3354, allocations: 290.1 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3355, allocations: 12.03 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.618e-05/0.3355, allocations: 30.75 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002331/0.3358, allocations: 24.88 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.336, allocations: 126.4 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-06/0.336, allocations: 4.375 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.3361, allocations: 4.312 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.3362, allocations: 61.8 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.3362, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.3362, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3363, allocations: 3.984 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.3364, allocations: 35.92 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.3368, allocations: 240 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001271/0.3369, allocations: 42.5 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.365e-05/0.337, allocations: 24.94 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.337, allocations: 0 / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.3371, allocations: 34.55 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.3371, allocations: 0 / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003187/0.3374, allocations: 89.61 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.3374, allocations: 59.34 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.3375, allocations: 129.7 kB / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.3376, allocations: 29.7 kB / 1.328 GB, free: 14.68 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/0.3376, allocations: 88.12 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.3376, allocations: 15.84 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.3377, allocations: 17.7 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3378, allocations: 326.8 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.81e-05/0.3379, allocations: 15.98 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.092e-05/0.338, allocations: 24.17 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.3381, allocations: 44.91 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3381, allocations: 0 / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001681/0.3383, allocations: 69.61 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3383, allocations: 11.98 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3383, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.3383, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.244e-05/0.3384, allocations: 8 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3384, allocations: 4 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.215e-05/0.3385, allocations: 11.94 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.3385, allocations: 0 / 1.329 GB, free: 14.03 MB / 1.029 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.0001011/0.3386, allocations: 120.4 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.26e-05/0.3386, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.409e-05/0.3386, allocations: 15.98 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3386, allocations: 0 / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3386, allocations: 0 / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.3386, allocations: 0 / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.3388, allocations: 136.7 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3388, allocations: 4 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.3389, allocations: 11.98 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3389, allocations: 7.938 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.3389, allocations: 0 / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3389, allocations: 0 / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3389, allocations: 0 / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.3391, allocations: 175.3 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.616e-05/0.3391, allocations: 7.953 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.3392, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.032e-05/0.3392, allocations: 11.98 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.3393, allocations: 4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.3393, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.36e-05/0.3393, allocations: 97.39 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3394, allocations: 0 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002178/0.3396, allocations: 8 kB / 1.33 GB, free: 13.36 MB / 1.029 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.0005713/0.3401, allocations: 0.7122 MB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001885/0.3403, allocations: 47.95 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3403, allocations: 0 / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.726e-05/0.3404, allocations: 15.98 kB / 1.33 GB, free: 12.56 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002206/0.3406, allocations: 5.125 kB / 1.33 GB, free: 12.56 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.3422, allocations: 1.383 MB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.64e-05/0.3423, allocations: 67.34 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.321e-05/0.3423, allocations: 0 / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.772e-05/0.3424, allocations: 15.42 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.3424, allocations: 0 / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.3711, allocations: 2.073 MB / 1.334 GB, free: 9.062 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.96, allocations: 0 / 1.334 GB, free: 9.062 MB / 1.029 GB " [Timeout remaining time 289] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 17.06120980065316]