Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 104 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.538/1.538, allocations: 230.6 MB / 252.8 MB, free: 9.125 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.205/3.205, allocations: 0.49 GB / 0.7916 GB, free: 33.33 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 75.48 kB / 1.149 GB, free: 26.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3158, allocations: 176.1 MB / 1.321 GB, free: 3.27 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004123/0.3199, allocations: 2.518 MB / 1.323 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00284/0.3227, allocations: 1.723 MB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.3229, allocations: 7.938 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0009058/0.3238, allocations: 330.7 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000546/0.3244, allocations: 266.9 kB / 1.326 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004801/0.3248, allocations: 206 kB / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004587/0.3253, allocations: 410.6 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.3254, allocations: 48.72 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002336/0.3257, allocations: 175.2 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.3259, allocations: 183.2 kB / 1.327 GB, free: 13.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.326, allocations: 20 kB / 1.327 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.3261, allocations: 83.88 kB / 1.327 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.3263, allocations: 127.5 kB / 1.327 GB, free: 13.19 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.3265, allocations: 194.5 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006027/0.3271, allocations: 0.5171 MB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3271, allocations: 0 / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3271, allocations: 0 / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.3271, allocations: 0 / 1.327 GB, free: 12.48 MB / 1.029 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.001221/0.3283, allocations: 0.8683 MB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3283, allocations: 15.98 kB / 1.328 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.817e-05/0.3284, allocations: 42.75 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.3285, allocations: 68.5 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005691/0.3291, allocations: 449.1 kB / 1.329 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.3291, allocations: 8 kB / 1.329 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.3291, allocations: 11.98 kB / 1.329 GB, free: 10.92 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.3294, allocations: 137.6 kB / 1.329 GB, free: 10.77 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3294, allocations: 4 kB / 1.329 GB, free: 10.77 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.3294, allocations: 4 kB / 1.329 GB, free: 10.77 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.3294, allocations: 7.938 kB / 1.329 GB, free: 10.76 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.3296, allocations: 63.97 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008926/0.3305, allocations: 0.5784 MB / 1.33 GB, free: 10.07 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.3308, allocations: 126.6 kB / 1.33 GB, free: 9.934 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.3309, allocations: 44.84 kB / 1.33 GB, free: 9.887 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.331, allocations: 3.984 kB / 1.33 GB, free: 9.883 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002351/0.3312, allocations: 107.5 kB / 1.33 GB, free: 9.766 MB / 1.029 GB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.3312, allocations: 3.938 kB / 1.33 GB, free: 9.762 MB / 1.029 GB Notification: Performance of matching and sorting (n=13): time 0.0005338/0.3317, allocations: 239.2 kB / 1.33 GB, free: 9.523 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/0.3318, allocations: 89.09 kB / 1.33 GB, free: 9.418 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008358/0.3326, allocations: 0.6995 MB / 1.331 GB, free: 8.707 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.3327, allocations: 33.7 kB / 1.331 GB, free: 8.668 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.3329, allocations: 272.3 kB / 1.331 GB, free: 8.395 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.3329, allocations: 39.72 kB / 1.331 GB, free: 8.355 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.966e-05/0.333, allocations: 53.7 kB / 1.331 GB, free: 8.297 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3332, allocations: 370.8 kB / 1.332 GB, free: 7.926 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.3334, allocations: 75.97 kB / 1.332 GB, free: 7.852 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.3336, allocations: 126.8 kB / 1.332 GB, free: 7.711 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.3339, allocations: 138.5 kB / 1.332 GB, free: 7.566 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3339, allocations: 4 kB / 1.332 GB, free: 7.562 MB / 1.029 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004858/0.3344, allocations: 275.2 kB / 1.332 GB, free: 7.289 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3344, allocations: 10.33 kB / 1.332 GB, free: 7.281 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3344, allocations: 4 kB / 1.332 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.3344, allocations: 0 / 1.332 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.3346, allocations: 35.92 kB / 1.332 GB, free: 7.242 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3346, allocations: 0 / 1.332 GB, free: 7.242 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.3348, allocations: 23.94 kB / 1.332 GB, free: 7.219 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3348, allocations: 12.11 kB / 1.332 GB, free: 7.207 MB / 1.029 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.0002363/0.335, allocations: 215.5 kB / 1.332 GB, free: 6.984 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.963e-05/0.3351, allocations: 63.56 kB / 1.333 GB, free: 6.922 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.3352, allocations: 57.3 kB / 1.333 GB, free: 6.859 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3352, allocations: 3.938 kB / 1.333 GB, free: 6.855 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3352, allocations: 0 / 1.333 GB, free: 6.855 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3352, allocations: 7.984 kB / 1.333 GB, free: 6.848 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003979/0.3356, allocations: 377.3 kB / 1.333 GB, free: 6.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3356, allocations: 0 / 1.333 GB, free: 6.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.3357, allocations: 12 kB / 1.333 GB, free: 6.418 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3357, allocations: 3.984 kB / 1.333 GB, free: 6.414 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3357, allocations: 4 kB / 1.333 GB, free: 6.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3357, allocations: 0 / 1.333 GB, free: 6.41 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3357, allocations: 0 / 1.333 GB, free: 6.41 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004009/0.3361, allocations: 224.6 kB / 1.333 GB, free: 6.172 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.3362, allocations: 128.7 kB / 1.333 GB, free: 6.027 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.576e-05/0.3363, allocations: 11.98 kB / 1.333 GB, free: 6.016 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.3364, allocations: 8 kB / 1.333 GB, free: 6.008 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.961e-05/0.3364, allocations: 19.97 kB / 1.333 GB, free: 5.988 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.3365, allocations: 8 kB / 1.333 GB, free: 5.98 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000563/0.337, allocations: 483 kB / 1.334 GB, free: 5.516 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.337, allocations: 0 / 1.334 GB, free: 5.516 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003266/0.3373, allocations: 71.83 kB / 1.334 GB, free: 5.445 MB / 1.029 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.002245/0.3396, allocations: 1.089 MB / 1.335 GB, free: 4.484 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000401/0.34, allocations: 143.9 kB / 1.335 GB, free: 4.344 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.34, allocations: 0 / 1.335 GB, free: 4.344 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.3401, allocations: 51.55 kB / 1.335 GB, free: 4.297 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.3407, allocations: 120.9 kB / 1.335 GB, free: 4.188 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005128/0.3458, allocations: 3.959 MB / 1.339 GB, free: 136 kB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.3463, allocations: 0.8689 MB / 1.34 GB, free: 15.24 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001647/0.3465, allocations: 50.94 kB / 1.34 GB, free: 15.18 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.3467, allocations: 171.4 kB / 1.34 GB, free: 15.02 MB / 1.045 GB Notification: Performance of SimCode: time 8.22e-07/0.3467, allocations: 0 / 1.34 GB, free: 15.02 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03751/0.3842, allocations: 10.01 MB / 1.35 GB, free: 5.133 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.869/9.253, allocations: 15.92 kB / 1.35 GB, free: 5.121 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.22707441705279]