Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_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.009566/0.009566, allocations: 101.3 kB / 15.73 MB, free: 6.043 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.0021/0.0021, allocations: 186.2 kB / 16.67 MB, free: 5.973 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.225/1.225, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.27/2.27, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 67.8 kB / 0.9504 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2385, allocations: 140.4 MB / 1.087 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003611/0.2422, allocations: 2.457 MB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002184/0.2444, allocations: 1.557 MB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.2445, allocations: 7.938 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008154/0.2454, allocations: 335.2 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003982/0.2458, allocations: 211.1 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005974/0.2464, allocations: 272.9 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.2468, allocations: 386.8 kB / 1.093 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.2469, allocations: 71.52 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.2471, allocations: 163.3 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.2473, allocations: 163.2 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/0.2473, allocations: 20 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.2475, allocations: 75.95 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.2476, allocations: 135.5 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.2478, allocations: 182.7 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.2483, allocations: 0.5028 MB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2483, allocations: 0 / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2483, allocations: 4 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.008e-05/0.2483, allocations: 0 / 1.094 GB, free: 11.43 MB / 0.8575 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.001165/0.2495, allocations: 0.8335 MB / 1.095 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2495, allocations: 16.03 kB / 1.095 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.2496, allocations: 42.73 kB / 1.095 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.672e-05/0.2497, allocations: 52.28 kB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005099/0.2502, allocations: 436.6 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.2502, allocations: 11.98 kB / 1.095 GB, free: 9.945 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.2503, allocations: 8 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.2505, allocations: 144.4 kB / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.2506, allocations: 4 kB / 1.095 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.2506, allocations: 4 kB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2506, allocations: 11.94 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.2508, allocations: 63.97 kB / 1.095 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008213/0.2516, allocations: 0.5705 MB / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.2519, allocations: 130.7 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.2521, allocations: 44.84 kB / 1.096 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.2521, allocations: 4 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.2523, allocations: 111.5 kB / 1.096 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.704e-06/0.2523, allocations: 4 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0004965/0.2528, allocations: 232.8 kB / 1.096 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.2529, allocations: 89.05 kB / 1.097 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006667/0.2536, allocations: 0.6798 MB / 1.097 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2536, allocations: 33.7 kB / 1.097 GB, free: 7.699 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.2538, allocations: 264.3 kB / 1.097 GB, free: 7.438 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.2538, allocations: 39.53 kB / 1.098 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.2539, allocations: 53.7 kB / 1.098 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.2541, allocations: 378.7 kB / 1.098 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.2542, allocations: 71.97 kB / 1.098 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.2544, allocations: 117.1 kB / 1.098 GB, free: 6.758 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.2546, allocations: 145.6 kB / 1.098 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2546, allocations: 0 / 1.098 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004204/0.2551, allocations: 264.8 kB / 1.099 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.2551, allocations: 4 kB / 1.099 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2551, allocations: 0 / 1.099 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.2551, allocations: 4 kB / 1.099 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.2553, allocations: 39.91 kB / 1.099 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.2553, allocations: 4 kB / 1.099 GB, free: 6.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.2555, allocations: 23.95 kB / 1.099 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.2555, allocations: 8 kB / 1.099 GB, free: 6.262 MB / 0.8575 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.000204/0.2557, allocations: 211.5 kB / 1.099 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.491e-05/0.2558, allocations: 55.33 kB / 1.099 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.933e-05/0.2559, allocations: 65.02 kB / 1.099 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2559, allocations: 4 kB / 1.099 GB, free: 5.922 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.2559, allocations: 0 / 1.099 GB, free: 5.922 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2559, allocations: 4 kB / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.2562, allocations: 373.2 kB / 1.099 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2562, allocations: 3.984 kB / 1.099 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.877e-05/0.2563, allocations: 8 kB / 1.099 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2563, allocations: 4 kB / 1.099 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.2563, allocations: 7.938 kB / 1.099 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.2563, allocations: 4 kB / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2563, allocations: 0 / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003457/0.2566, allocations: 223.4 kB / 1.1 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.2568, allocations: 128.4 kB / 1.1 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.2568, allocations: 4 kB / 1.1 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.257, allocations: 15.98 kB / 1.1 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.257, allocations: 15.92 kB / 1.1 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.257, allocations: 11.98 kB / 1.1 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004695/0.2575, allocations: 467 kB / 1.1 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2575, allocations: 0 / 1.1 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003022/0.2578, allocations: 63.84 kB / 1.1 GB, free: 4.535 MB / 0.8575 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.001494/0.2593, allocations: 1.091 MB / 1.101 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000351/0.2597, allocations: 159.8 kB / 1.101 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2597, allocations: 4.125 kB / 1.101 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.2598, allocations: 53.98 kB / 1.101 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.2603, allocations: 92.23 kB / 1.102 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/0.2648, allocations: 3.877 MB / 1.105 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.2653, allocations: 0.8611 MB / 1.106 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001613/0.2655, allocations: 54.92 kB / 1.106 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.2657, allocations: 163.4 kB / 1.106 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of SimCode: time 7.51e-07/0.2657, allocations: 0 / 1.106 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.585/1.85, allocations: 9.825 MB / 1.116 GB, free: 4.488 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/10.35, allocations: 7.812 kB / 1.116 GB, free: 4.48 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches