Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",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.001745/0.001745, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.21/1.21, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.439/2.439, allocations: 469.8 MB / 0.7424 GB, free: 7.41 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 68.22 kB / 0.9087 GB, free: 34.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2358, allocations: 159.1 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003553/0.2394, allocations: 2.48 MB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002071/0.2414, allocations: 1.56 MB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.2416, allocations: 4 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007385/0.2423, allocations: 324.3 kB / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003775/0.2427, allocations: 219.1 kB / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005239/0.2432, allocations: 267 kB / 1.069 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003702/0.2436, allocations: 386.8 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.2437, allocations: 72.91 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.2439, allocations: 159.3 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.2441, allocations: 163.2 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.3e-05/0.2442, allocations: 24 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.2443, allocations: 79.89 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.2445, allocations: 127.5 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.2446, allocations: 182.7 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.2451, allocations: 0.4903 MB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.2451, allocations: 0 / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.011e-06/0.2451, allocations: 0 / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2451, allocations: 0 / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001032/0.2462, allocations: 0.8335 MB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.759e-05/0.2462, allocations: 8.031 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.261e-05/0.2462, allocations: 42.73 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.761e-05/0.2463, allocations: 56.28 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.2468, allocations: 436.5 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.2468, allocations: 8 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.2469, allocations: 12 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.2471, allocations: 151.2 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.2471, allocations: 0 / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.2472, allocations: 0 / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.2472, allocations: 7.938 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.2473, allocations: 71.95 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007599/0.2481, allocations: 0.5705 MB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.2484, allocations: 122.7 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.2485, allocations: 48.83 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.2485, allocations: 3.984 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.2487, allocations: 120.8 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.2487, allocations: 0 / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0004569/0.2492, allocations: 242.8 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.2492, allocations: 81.05 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007164/0.25, allocations: 0.6799 MB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.25, allocations: 29.7 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.2502, allocations: 268.3 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.2503, allocations: 39.55 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.471e-05/0.2503, allocations: 53.69 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.2505, allocations: 366.8 kB / 1.075 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.2506, allocations: 75.95 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.2508, allocations: 125 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.2511, allocations: 140.3 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2511, allocations: 0 / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004001/0.2515, allocations: 273.8 kB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.2515, allocations: 4 kB / 1.075 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.2515, allocations: 8.062 kB / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.577e-06/0.2515, allocations: 0 / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.2517, allocations: 35.92 kB / 1.075 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.2517, allocations: 0 / 1.075 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.2518, allocations: 23.89 kB / 1.075 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.2518, allocations: 8.031 kB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002016/0.252, allocations: 208.6 kB / 1.075 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.159e-05/0.2521, allocations: 59.27 kB / 1.075 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.811e-05/0.2522, allocations: 65.05 kB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2522, allocations: 0 / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2522, allocations: 0 / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2522, allocations: 3.938 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003166/0.2525, allocations: 381.2 kB / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2526, allocations: 0 / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.87e-05/0.2526, allocations: 8 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.2526, allocations: 0 / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.2526, allocations: 7.984 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2526, allocations: 0 / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2526, allocations: 4 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.253, allocations: 224.4 kB / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.707e-05/0.2531, allocations: 124.5 kB / 1.076 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.2531, allocations: 4 kB / 1.076 GB, free: 1.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.2532, allocations: 11.98 kB / 1.076 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.2533, allocations: 23.91 kB / 1.076 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.2533, allocations: 4 kB / 1.076 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004824/0.2538, allocations: 475 kB / 1.077 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2538, allocations: 3.938 kB / 1.077 GB, free: 0.8398 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002702/0.2541, allocations: 75.83 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.04537/0.2995, allocations: 1.076 MB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003316/0.2998, allocations: 169.7 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2998, allocations: 0 / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.2999, allocations: 55.92 kB / 1.078 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.3003, allocations: 85.06 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004271/0.3046, allocations: 4.006 MB / 1.082 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000456/0.3051, allocations: 0.8611 MB / 1.083 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.3052, allocations: 50.92 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.3054, allocations: 167.4 kB / 1.083 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of SimCode: time 2e-07/0.3054, allocations: 0 / 1.083 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.026/3.332, allocations: 9.66 MB / 1.093 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.84/24.17, allocations: 13.09 kB / 1.093 GB, free: 0.8203 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches