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.001802/0.001802, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.002268/0.002268, allocations: 215 kB / 20.13 MB, free: 2.949 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.439/1.439, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.789/2.789, allocations: 0.49 GB / 0.7923 GB, free: 1.336 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="cs",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.001967/0.001967, allocations: 71.89 kB / 1.15 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9478/0.9498, allocations: 176.1 MB / 1.321 GB, free: 24.79 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002295/0.9521, allocations: 1.532 MB / 1.323 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.000671/0.9528, allocations: 0.5007 MB / 1.323 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.547e-05/0.9528, allocations: 2.531 kB / 1.323 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.688e-05/0.9529, allocations: 3.938 kB / 1.323 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.216e-05/0.9529, allocations: 10.97 kB / 1.323 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.9531, allocations: 37.11 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000111/0.9532, allocations: 60.08 kB / 1.324 GB, free: 23.31 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.91e-05/0.9533, allocations: 6.219 kB / 1.324 GB, free: 23.31 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.9535, allocations: 32.98 kB / 1.324 GB, free: 23.29 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.718e-05/0.9535, allocations: 30.23 kB / 1.324 GB, free: 23.28 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.9535, allocations: 2.719 kB / 1.324 GB, free: 23.28 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.316e-05/0.9536, allocations: 5.281 kB / 1.324 GB, free: 23.28 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.317e-05/0.9536, allocations: 10.38 kB / 1.324 GB, free: 23.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.9536, allocations: 24.92 kB / 1.324 GB, free: 23.25 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.9537, allocations: 59.8 kB / 1.324 GB, free: 23.22 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.9537, allocations: 2.656 kB / 1.324 GB, free: 23.22 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.433e-06/0.9537, allocations: 0 / 1.324 GB, free: 23.22 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.107e-05/0.9538, allocations: 4 kB / 1.324 GB, free: 23.22 MB / 1.061 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.0004197/0.9542, allocations: 372.5 kB / 1.324 GB, free: 22.84 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.9542, allocations: 11.83 kB / 1.324 GB, free: 22.84 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.165e-05/0.9542, allocations: 192 / 1.324 GB, free: 22.84 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.998e-05/0.9542, allocations: 37.02 kB / 1.324 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.9544, allocations: 22.16 kB / 1.324 GB, free: 22.79 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.9546, allocations: 188.3 kB / 1.324 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.9546, allocations: 3.188 kB / 1.324 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.9546, allocations: 384 / 1.324 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.9548, allocations: 60.98 kB / 1.324 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.9548, allocations: 2.875 kB / 1.324 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.9548, allocations: 0 / 1.324 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.9548, allocations: 0 / 1.324 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.9549, allocations: 30.77 kB / 1.324 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002875/0.9552, allocations: 278.4 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.9553, allocations: 43.61 kB / 1.325 GB, free: 22.21 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.619e-05/0.9554, allocations: 26.58 kB / 1.325 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.9554, allocations: 0 / 1.325 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.9554, allocations: 34.56 kB / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 7.82e-07/0.9554, allocations: 0 / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.000295/0.9557, allocations: 92.45 kB / 1.325 GB, free: 22.11 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.9557, allocations: 55.41 kB / 1.325 GB, free: 22.04 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.587e-05/0.9558, allocations: 123.1 kB / 1.325 GB, free: 21.94 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.772e-06/0.9558, allocations: 25.7 kB / 1.325 GB, free: 21.91 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.632e-05/0.9558, allocations: 90.58 kB / 1.325 GB, free: 21.82 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.9558, allocations: 15.89 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.9559, allocations: 16.56 kB / 1.325 GB, free: 21.79 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.21e-05/0.9559, allocations: 324.8 kB / 1.326 GB, free: 21.46 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.319e-05/0.956, allocations: 16.06 kB / 1.326 GB, free: 21.46 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.319e-05/0.956, allocations: 16.19 kB / 1.326 GB, free: 21.46 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.9561, allocations: 40.36 kB / 1.326 GB, free: 21.44 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.9561, allocations: 8 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001506/0.9563, allocations: 75.62 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.9563, allocations: 7.5 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.9563, allocations: 0 / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.9563, allocations: 3.375 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.943e-05/0.9564, allocations: 5.594 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.9564, allocations: 2.781 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.876e-05/0.9565, allocations: 14.11 kB / 1.326 GB, free: 21.38 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.9565, allocations: 4 kB / 1.326 GB, free: 21.38 MB / 1.061 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 4.659e-05/0.9565, allocations: 118.6 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.9565, allocations: 3.141 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.448e-05/0.9566, allocations: 11.33 kB / 1.326 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.9566, allocations: 6.453 kB / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.9566, allocations: 0 / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.9566, allocations: 0 / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.9567, allocations: 173.9 kB / 1.326 GB, free: 21.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.9567, allocations: 0 / 1.326 GB, free: 21.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.572e-05/0.9568, allocations: 15.16 kB / 1.326 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.9568, allocations: 0 / 1.326 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.9568, allocations: 0 / 1.326 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.9568, allocations: 0 / 1.326 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.9568, allocations: 0 / 1.326 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001686/0.9569, allocations: 177.5 kB / 1.326 GB, free: 20.88 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.813e-05/0.957, allocations: 81.06 kB / 1.326 GB, free: 20.79 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.957, allocations: 6.625 kB / 1.326 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.881e-05/0.9571, allocations: 6.938 kB / 1.326 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.9571, allocations: 3.281 kB / 1.326 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.9571, allocations: 2.906 kB / 1.326 GB, free: 20.78 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.263e-05/0.9571, allocations: 93.16 kB / 1.326 GB, free: 20.7 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9571, allocations: 0 / 1.326 GB, free: 20.7 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000214/0.9573, allocations: 12.69 kB / 1.326 GB, free: 20.7 MB / 1.061 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.0003104/0.9577, allocations: 0.7112 MB / 1.327 GB, free: 20.02 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001783/0.9578, allocations: 39.88 kB / 1.327 GB, free: 20.01 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.9578, allocations: 6.594 kB / 1.327 GB, free: 20 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.513e-05/0.9579, allocations: 17.62 kB / 1.327 GB, free: 20 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.9581, allocations: 6.531 kB / 1.327 GB, free: 20 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.9592, allocations: 1.373 MB / 1.328 GB, free: 18.76 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.592e-05/0.9593, allocations: 0.6831 MB / 1.329 GB, free: 18.06 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.026e-05/0.9593, allocations: 6.844 kB / 1.329 GB, free: 18.06 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.9594, allocations: 21.44 kB / 1.329 GB, free: 18.04 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/0.9594, allocations: 0 / 1.329 GB, free: 18.04 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.9778, allocations: 1.617 MB / 1.331 GB, free: 17.66 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.071/9.049, allocations: 13.66 kB / 1.331 GB, free: 17.66 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.193427615973633]