Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008907/0.0008909, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.008926/0.008926, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.292/1.292, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.14/2.14, allocations: 390.9 MB / 0.6664 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003216/0.0003216, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5154/0.5158, allocations: 142.4 MB / 0.9552 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001257/0.5171, allocations: 1.222 MB / 0.9564 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004903/0.5176, allocations: 406.1 kB / 0.9568 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.31e-05/0.5176, allocations: 0 / 0.9568 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.5177, allocations: 0 / 0.9568 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.409e-05/0.5177, allocations: 13.11 kB / 0.9568 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001287/0.5179, allocations: 18.58 kB / 0.9568 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.605e-05/0.5179, allocations: 45.05 kB / 0.9568 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.032e-05/0.518, allocations: 20.81 kB / 0.9569 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.231e-05/0.5181, allocations: 24.72 kB / 0.9569 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.318e-05/0.5182, allocations: 23.05 kB / 0.9569 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.5182, allocations: 2.25 kB / 0.9569 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.918e-06/0.5182, allocations: 1.156 kB / 0.9569 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.316e-05/0.5182, allocations: 1.031 kB / 0.9569 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.175e-05/0.5183, allocations: 47.44 kB / 0.9569 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.601e-05/0.5183, allocations: 48.27 kB / 0.957 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5183, allocations: 5.125 kB / 0.957 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5183, allocations: 0 / 0.957 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.416e-06/0.5184, allocations: 0 / 0.957 GB, free: 6.344 MB / 0.7169 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.0003222/0.5187, allocations: 357.2 kB / 0.9573 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.5187, allocations: 9.344 kB / 0.9573 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.313e-05/0.5188, allocations: 32.56 kB / 0.9574 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.327e-05/0.5188, allocations: 10.72 kB / 0.9574 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.494e-05/0.5188, allocations: 180.7 kB / 0.9576 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-06/0.5189, allocations: 384 / 0.9576 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.5189, allocations: 6.25 kB / 0.9576 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.519, allocations: 62.95 kB / 0.9576 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.519, allocations: 1.188 kB / 0.9576 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-06/0.5191, allocations: 0 / 0.9576 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.5191, allocations: 1.281 kB / 0.9576 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.5192, allocations: 42.72 kB / 0.9577 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002689/0.5195, allocations: 274.5 kB / 0.9579 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.5196, allocations: 52.62 kB / 0.958 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.173e-05/0.5197, allocations: 28.38 kB / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.5197, allocations: 0 / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.277e-05/0.5197, allocations: 31.69 kB / 0.958 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 7.61e-07/0.5197, allocations: 0 / 0.958 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002813/0.52, allocations: 103.9 kB / 0.9581 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.968e-05/0.52, allocations: 55.34 kB / 0.9582 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.722e-05/0.5201, allocations: 124.2 kB / 0.9583 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.713e-06/0.5201, allocations: 26.89 kB / 0.9583 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/0.5201, allocations: 94.67 kB / 0.9584 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.5201, allocations: 9.094 kB / 0.9584 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.981e-05/0.5202, allocations: 14.8 kB / 0.9584 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.452e-05/0.5202, allocations: 319.9 kB / 0.9588 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.658e-05/0.5203, allocations: 21.77 kB / 0.9588 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.606e-05/0.5203, allocations: 21.86 kB / 0.9588 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.5205, allocations: 49.2 kB / 0.9588 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.5205, allocations: 3.938 kB / 0.9588 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001531/0.5206, allocations: 86.91 kB / 0.9589 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.5207, allocations: 9.531 kB / 0.9589 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.5207, allocations: 0 / 0.9589 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.5207, allocations: 3.984 kB / 0.9589 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.487e-05/0.5208, allocations: 9.781 kB / 0.9589 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.5208, allocations: 0 / 0.9589 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.916e-05/0.5208, allocations: 8.859 kB / 0.959 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.5208, allocations: 1.781 kB / 0.959 GB, free: 4.41 MB / 0.7169 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.441e-05/0.5209, allocations: 119 kB / 0.9591 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.5209, allocations: 6.031 kB / 0.9591 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.036e-05/0.5209, allocations: 10.62 kB / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.521, allocations: 0 / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.521, allocations: 0 / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.521, allocations: 5.328 kB / 0.9591 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.5211, allocations: 174.1 kB / 0.9593 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.5211, allocations: 0 / 0.9593 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.501e-05/0.5212, allocations: 17.05 kB / 0.9593 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.5212, allocations: 0 / 0.9593 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.5212, allocations: 1.531 kB / 0.9593 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.5212, allocations: 0 / 0.9593 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5212, allocations: 0 / 0.9593 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.5214, allocations: 186.6 kB / 0.9595 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.666e-05/0.5214, allocations: 82.23 kB / 0.9595 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.5214, allocations: 9.312 kB / 0.9595 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.569e-05/0.5215, allocations: 4.094 kB / 0.9595 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.5215, allocations: 5.609 kB / 0.9596 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-06/0.5215, allocations: 1.594 kB / 0.9596 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.002e-05/0.5216, allocations: 92.64 kB / 0.9596 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5216, allocations: 0 / 0.9596 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002085/0.5218, allocations: 11.53 kB / 0.9597 GB, free: 3.684 MB / 0.7169 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.0003031/0.5221, allocations: 0.7121 MB / 0.9603 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001536/0.5223, allocations: 51.03 kB / 0.9604 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.5223, allocations: 0 / 0.9604 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.618e-05/0.5223, allocations: 24.48 kB / 0.9604 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.5225, allocations: 5.375 kB / 0.9604 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003775/0.5229, allocations: 216.1 kB / 0.9606 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.957e-05/0.523, allocations: 0.6825 MB / 0.9613 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.011e-05/0.523, allocations: 9.688 kB / 0.9613 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.5231, allocations: 16.75 kB / 0.9613 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5231, allocations: 0 / 0.9613 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4111/0.9342, allocations: 1.249 MB / 0.9625 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/0.9344, allocations: 226.2 kB / 0.9628 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.454/3.389, allocations: 0 / 0.9628 GB, free: 1.238 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches