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.00779/0.00779, allocations: 99.27 kB / 15.73 MB, free: 6.035 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.001692/0.001692, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.369/2.369, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 59.34 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2335, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003751/0.2372, allocations: 2.461 MB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002364/0.2396, allocations: 1.569 MB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.2399, allocations: 7.938 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008476/0.2407, allocations: 319.5 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004467/0.2412, allocations: 215.1 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006454/0.2418, allocations: 278 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.2423, allocations: 390.7 kB / 1.093 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.2424, allocations: 72.62 kB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.2427, allocations: 167.2 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.2429, allocations: 155.3 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.037e-05/0.243, allocations: 20 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.2432, allocations: 91.88 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.2433, allocations: 127.5 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.2435, allocations: 190.6 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005752/0.2441, allocations: 0.4899 MB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2441, allocations: 3.938 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2441, allocations: 4 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.253e-05/0.2441, allocations: 0 / 1.094 GB, free: 11.47 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.001252/0.2454, allocations: 0.8567 MB / 1.095 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2454, allocations: 8.031 kB / 1.095 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.395e-05/0.2455, allocations: 46.75 kB / 1.095 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.2456, allocations: 60.56 kB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005329/0.2461, allocations: 457.1 kB / 1.095 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.2461, allocations: 4 kB / 1.095 GB, free: 9.945 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.2462, allocations: 12 kB / 1.095 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.2464, allocations: 140.4 kB / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.2465, allocations: 0 / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.2465, allocations: 8 kB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2465, allocations: 3.938 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.2467, allocations: 71.89 kB / 1.095 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008328/0.2475, allocations: 0.5668 MB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.2478, allocations: 118.8 kB / 1.096 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.248, allocations: 56.83 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.248, allocations: 0 / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.2482, allocations: 115.4 kB / 1.096 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.2482, allocations: 7.938 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0005032/0.2487, allocations: 233.2 kB / 1.097 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.2488, allocations: 77.11 kB / 1.097 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006982/0.2495, allocations: 0.6915 MB / 1.097 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.2495, allocations: 33.69 kB / 1.097 GB, free: 7.699 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.2497, allocations: 260.5 kB / 1.098 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.2498, allocations: 39.69 kB / 1.098 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.782e-05/0.2499, allocations: 57.69 kB / 1.098 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.25, allocations: 366.8 kB / 1.098 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.2502, allocations: 75.91 kB / 1.098 GB, free: 6.898 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.2503, allocations: 121.1 kB / 1.098 GB, free: 6.762 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.2506, allocations: 133.5 kB / 1.098 GB, free: 6.625 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.2506, allocations: 0 / 1.098 GB, free: 6.625 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004394/0.251, allocations: 277.2 kB / 1.099 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.2511, allocations: 11.94 kB / 1.099 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2511, allocations: 0 / 1.099 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2511, allocations: 0 / 1.099 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.2513, allocations: 35.98 kB / 1.099 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.2513, allocations: 0 / 1.099 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.2515, allocations: 23.88 kB / 1.099 GB, free: 6.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.2515, allocations: 8 kB / 1.099 GB, free: 6.27 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.0002039/0.2517, allocations: 215.5 kB / 1.099 GB, free: 6.051 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.218e-05/0.2518, allocations: 63.56 kB / 1.099 GB, free: 5.988 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.223e-05/0.2519, allocations: 61.08 kB / 1.099 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2519, allocations: 3.984 kB / 1.099 GB, free: 5.922 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2519, allocations: 4 kB / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2519, allocations: 0 / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/0.2522, allocations: 373.3 kB / 1.099 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2522, allocations: 4 kB / 1.099 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.135e-05/0.2523, allocations: 11.88 kB / 1.099 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2523, allocations: 0 / 1.099 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.2523, allocations: 11.98 kB / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2523, allocations: 3.938 kB / 1.099 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2523, allocations: 0 / 1.099 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003563/0.2527, allocations: 227.9 kB / 1.1 GB, free: 5.234 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.2528, allocations: 136.7 kB / 1.1 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.293e-05/0.2529, allocations: 0 / 1.1 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.253, allocations: 15.98 kB / 1.1 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.611e-05/0.2531, allocations: 19.97 kB / 1.1 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.2531, allocations: 8 kB / 1.1 GB, free: 5.039 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004913/0.2536, allocations: 467 kB / 1.1 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2536, allocations: 0 / 1.1 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003182/0.2539, allocations: 63.94 kB / 1.1 GB, free: 4.523 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.001487/0.2554, allocations: 1.092 MB / 1.101 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003644/0.2558, allocations: 154.5 kB / 1.101 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2558, allocations: 0 / 1.101 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.2559, allocations: 61.53 kB / 1.102 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.2565, allocations: 91.81 kB / 1.102 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.261, allocations: 3.893 MB / 1.105 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003815/0.2614, allocations: 0.8611 MB / 1.106 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001436/0.2615, allocations: 46.92 kB / 1.106 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.2617, allocations: 167.4 kB / 1.106 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of SimCode: time 4.2e-07/0.2617, allocations: 0 / 1.106 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.2886, allocations: 9.833 MB / 1.116 GB, free: 4.457 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.446/8.734, allocations: 10 kB / 1.116 GB, free: 4.449 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 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.csv","/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