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.001708/0.001708, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002206/0.002206, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.551/1.551, allocations: 230.6 MB / 256 MB, free: 7.777 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.261/3.261, allocations: 0.4892 GB / 0.7943 GB, free: 35.46 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.002075/0.002075, allocations: 65.91 kB / 1.153 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3379, allocations: 176.1 MB / 1.325 GB, free: 2.324 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00441/0.3423, allocations: 2.423 MB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003194/0.3455, allocations: 1.615 MB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.3457, allocations: 3.938 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.3468, allocations: 318.7 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006721/0.3475, allocations: 270.9 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006285/0.3481, allocations: 207.4 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000547/0.3487, allocations: 410.7 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.3488, allocations: 52.77 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.3491, allocations: 171.3 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/0.3493, allocations: 179.1 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.144e-05/0.3494, allocations: 20 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.3496, allocations: 75.95 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.3498, allocations: 135.5 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.3499, allocations: 142.9 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006964/0.3506, allocations: 0.5249 MB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3506, allocations: 0 / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3506, allocations: 0 / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.3506, allocations: 0 / 1.331 GB, free: 11.79 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.001367/0.352, allocations: 0.793 MB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.352, allocations: 8.031 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.437e-05/0.3521, allocations: 42.73 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.3522, allocations: 64.52 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006375/0.3529, allocations: 387.3 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.3529, allocations: 11.94 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.3529, allocations: 8 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.3532, allocations: 156.6 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3532, allocations: 4 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.3533, allocations: 0 / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3533, allocations: 4 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.3535, allocations: 75.89 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009902/0.3545, allocations: 0.5112 MB / 1.333 GB, free: 9.609 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.3548, allocations: 134.6 kB / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.3549, allocations: 40.84 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.355, allocations: 7.984 kB / 1.334 GB, free: 9.418 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.3553, allocations: 147.7 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of pre-optimization done (n=13): time 1.803e-06/0.3553, allocations: 0 / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of matching and sorting (n=13): time 0.0006039/0.3559, allocations: 253.3 kB / 1.334 GB, free: 9.004 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.3559, allocations: 51.41 kB / 1.334 GB, free: 8.941 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009259/0.3568, allocations: 0.7073 MB / 1.335 GB, free: 8.223 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.3569, allocations: 33.7 kB / 1.335 GB, free: 8.184 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002676/0.3571, allocations: 272.4 kB / 1.335 GB, free: 7.91 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.729e-05/0.3572, allocations: 39.73 kB / 1.335 GB, free: 7.871 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.735e-05/0.3573, allocations: 53.7 kB / 1.335 GB, free: 7.812 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002085/0.3575, allocations: 370.8 kB / 1.335 GB, free: 7.441 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.3577, allocations: 75.97 kB / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.3579, allocations: 171.7 kB / 1.336 GB, free: 7.172 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.3582, allocations: 140.9 kB / 1.336 GB, free: 7.027 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3582, allocations: 0 / 1.336 GB, free: 7.027 MB / 1.029 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005288/0.3587, allocations: 286.8 kB / 1.336 GB, free: 6.742 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.3587, allocations: 4 kB / 1.336 GB, free: 6.738 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3587, allocations: 4 kB / 1.336 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.3588, allocations: 3.984 kB / 1.336 GB, free: 6.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.3589, allocations: 39.92 kB / 1.336 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.359, allocations: 0 / 1.336 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.3591, allocations: 31.88 kB / 1.336 GB, free: 6.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.3592, allocations: 4 kB / 1.336 GB, free: 6.656 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.0002789/0.3594, allocations: 212.1 kB / 1.336 GB, free: 6.438 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.305e-05/0.3595, allocations: 67.5 kB / 1.336 GB, free: 6.371 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000481/0.36, allocations: 226.7 kB / 1.337 GB, free: 6.141 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.36, allocations: 0 / 1.337 GB, free: 6.141 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.36, allocations: 4 kB / 1.337 GB, free: 6.137 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.36, allocations: 3.984 kB / 1.337 GB, free: 6.133 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004012/0.3604, allocations: 324.5 kB / 1.337 GB, free: 5.773 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3604, allocations: 0 / 1.337 GB, free: 5.773 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.375e-05/0.3605, allocations: 11.94 kB / 1.337 GB, free: 5.762 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3605, allocations: 4 kB / 1.337 GB, free: 5.758 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.3605, allocations: 7.984 kB / 1.337 GB, free: 5.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3605, allocations: 0 / 1.337 GB, free: 5.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3605, allocations: 7.938 kB / 1.337 GB, free: 5.742 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004263/0.3609, allocations: 239.2 kB / 1.337 GB, free: 5.492 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.361, allocations: 63.45 kB / 1.337 GB, free: 5.43 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.624e-05/0.3611, allocations: 11.98 kB / 1.337 GB, free: 5.418 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3612, allocations: 7.984 kB / 1.337 GB, free: 5.41 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.897e-05/0.3613, allocations: 23.91 kB / 1.337 GB, free: 5.387 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.3613, allocations: 4 kB / 1.337 GB, free: 5.383 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0006256/0.3619, allocations: 487 kB / 1.338 GB, free: 4.914 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3619, allocations: 0 / 1.338 GB, free: 4.914 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000338/0.3623, allocations: 67.92 kB / 1.338 GB, free: 4.848 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 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.002446/0.3647, allocations: 1.134 MB / 1.339 GB, free: 3.871 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004088/0.3651, allocations: 159.8 kB / 1.339 GB, free: 3.715 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3651, allocations: 0 / 1.339 GB, free: 3.715 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.3653, allocations: 60.05 kB / 1.339 GB, free: 3.656 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005301/0.3658, allocations: 106.4 kB / 1.339 GB, free: 3.562 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005714/0.3715, allocations: 3.992 MB / 1.343 GB, free: 15.48 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.3718, allocations: 266.7 kB / 1.343 GB, free: 15.19 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001836/0.372, allocations: 46.95 kB / 1.344 GB, free: 15.15 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/0.3723, allocations: 179.4 kB / 1.344 GB, free: 14.97 MB / 1.045 GB Notification: Performance of SimCode: time 7.41e-07/0.3723, allocations: 0 / 1.344 GB, free: 14.97 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04484/0.4171, allocations: 10.91 MB / 1.354 GB, free: 4.188 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.08, allocations: 11.06 kB / 1.354 GB, free: 4.18 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.95593199133873]