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.00117/0.00117, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001381/0.001381, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.652 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.204/2.204, allocations: 390.2 MB / 0.6643 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002362/0.002362, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.576/0.5784, allocations: 140.4 MB / 0.9491 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002194/0.5806, allocations: 1.556 MB / 0.9506 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005048/0.5811, allocations: 421.9 kB / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.985e-05/0.5812, allocations: 1.375 kB / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.065e-05/0.5812, allocations: 0 / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.506e-05/0.5813, allocations: 9.25 kB / 0.951 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.5814, allocations: 14.73 kB / 0.951 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.549e-05/0.5815, allocations: 44.47 kB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.463e-05/0.5816, allocations: 20.09 kB / 0.9511 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.753e-05/0.5817, allocations: 26.02 kB / 0.9511 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.457e-05/0.5818, allocations: 23.67 kB / 0.9511 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.516e-05/0.5818, allocations: 1.594 kB / 0.9511 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.224e-05/0.5818, allocations: 3 kB / 0.9511 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.5818, allocations: 5.172 kB / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.5818, allocations: 16.97 kB / 0.9511 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.015e-05/0.5819, allocations: 52.83 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.5819, allocations: 4 kB / 0.9512 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5819, allocations: 1.438 kB / 0.9512 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.5819, allocations: 0 / 0.9512 GB, free: 7.504 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.0003691/0.5823, allocations: 363 kB / 0.9515 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.5824, allocations: 9.562 kB / 0.9515 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.291e-05/0.5824, allocations: 35.84 kB / 0.9516 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.287e-05/0.5824, allocations: 3.594 kB / 0.9516 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.772e-05/0.5825, allocations: 176.2 kB / 0.9518 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.5825, allocations: 5.969 kB / 0.9518 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.5825, allocations: 5.469 kB / 0.9518 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.5827, allocations: 58.73 kB / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.5827, allocations: 1.344 kB / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.5827, allocations: 0 / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.5827, allocations: 1.062 kB / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.5828, allocations: 35.56 kB / 0.9519 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002906/0.5831, allocations: 277.4 kB / 0.9521 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.5832, allocations: 42.44 kB / 0.9522 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.936e-05/0.5833, allocations: 22.69 kB / 0.9522 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.5833, allocations: 5.203 kB / 0.9522 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.251e-05/0.5834, allocations: 43.97 kB / 0.9522 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.5834, allocations: 0 / 0.9522 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002778/0.5836, allocations: 83.92 kB / 0.9523 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.651e-05/0.5837, allocations: 55.34 kB / 0.9524 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.047e-05/0.5837, allocations: 117.6 kB / 0.9525 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.434e-06/0.5837, allocations: 25.7 kB / 0.9525 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.532e-05/0.5838, allocations: 94.66 kB / 0.9526 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.5838, allocations: 24.91 kB / 0.9526 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.851e-05/0.5838, allocations: 12.03 kB / 0.9526 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.084e-05/0.5839, allocations: 325.4 kB / 0.9529 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.651e-05/0.5839, allocations: 17.36 kB / 0.953 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.464e-05/0.584, allocations: 12.98 kB / 0.953 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.5841, allocations: 37.38 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.5841, allocations: 9.266 kB / 0.953 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000152/0.5843, allocations: 67.33 kB / 0.9531 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.5843, allocations: 4.688 kB / 0.9531 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.5843, allocations: 1.516 kB / 0.9531 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.5843, allocations: 3.984 kB / 0.9531 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.609e-05/0.5844, allocations: 14.58 kB / 0.9531 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.5844, allocations: 0 / 0.9531 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.248e-05/0.5845, allocations: 4.312 kB / 0.9531 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.5845, allocations: 0 / 0.9531 GB, free: 5.57 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.675e-05/0.5846, allocations: 124.5 kB / 0.9532 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.5846, allocations: 6.844 kB / 0.9532 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.189e-05/0.5846, allocations: 9.531 kB / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.5846, allocations: 0 / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5846, allocations: 1.5 kB / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.5846, allocations: 0 / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.5848, allocations: 174.6 kB / 0.9534 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.5848, allocations: 0 / 0.9534 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.024e-05/0.5849, allocations: 6.281 kB / 0.9534 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.5849, allocations: 9.188 kB / 0.9534 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.5849, allocations: 3.984 kB / 0.9534 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.5849, allocations: 1.062 kB / 0.9534 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5849, allocations: 0 / 0.9534 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.5851, allocations: 170.3 kB / 0.9536 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.638e-05/0.5851, allocations: 86.91 kB / 0.9537 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.5851, allocations: 0 / 0.9537 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.064e-05/0.5852, allocations: 11.28 kB / 0.9537 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.5852, allocations: 5.734 kB / 0.9537 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.5852, allocations: 1.875 kB / 0.9537 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.173e-05/0.5853, allocations: 96.23 kB / 0.9538 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5853, allocations: 3.938 kB / 0.9538 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002208/0.5855, allocations: 7.281 kB / 0.9538 GB, free: 4.84 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.0003176/0.5858, allocations: 0.7085 MB / 0.9545 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001598/0.586, allocations: 42.44 kB / 0.9545 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.586, allocations: 0 / 0.9545 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.637e-05/0.5861, allocations: 16.8 kB / 0.9545 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.5863, allocations: 12.27 kB / 0.9545 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004208/0.5867, allocations: 196.8 kB / 0.9547 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.695e-05/0.5868, allocations: 0.6854 MB / 0.9554 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.484e-05/0.5869, allocations: 5.312 kB / 0.9554 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.5869, allocations: 12.88 kB / 0.9554 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5869, allocations: 3.938 kB / 0.9554 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1173/0.7042, allocations: 1.317 MB / 0.9567 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.7045, allocations: 223.4 kB / 0.9569 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.476, allocations: 4.844 kB / 0.9569 GB, free: 2.324 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