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.001154/0.001154, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.00142/0.00142, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.854/0.854, allocations: 177.2 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.705/1.705, allocations: 377.8 MB / 0.6221 GB, free: 8.617 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.635e-06/2.635e-06, allocations: 0 / 0.981 GB, free: 2.543 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.191e-05/2.455e-05, allocations: 2.281 kB / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003417/0.003441, allocations: 2.418 MB / 0.9833 GB, free: 112 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001875/0.005317, allocations: 1.629 MB / 0.9849 GB, free: 14.47 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.005463, allocations: 0 / 0.9849 GB, free: 14.47 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0007828/0.006246, allocations: 322.6 kB / 0.9852 GB, free: 14.16 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.000438/0.006684, allocations: 270.7 kB / 0.9855 GB, free: 13.89 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.007081, allocations: 211.1 kB / 0.9857 GB, free: 13.69 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003814/0.007462, allocations: 418.5 kB / 0.9861 GB, free: 13.28 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.007594, allocations: 60.84 kB / 0.9862 GB, free: 13.22 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.007815, allocations: 223.4 kB / 0.9864 GB, free: 13 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.007972, allocations: 151.5 kB / 0.9865 GB, free: 12.85 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.008003, allocations: 20 kB / 0.9865 GB, free: 12.83 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.00815, allocations: 79.88 kB / 0.9866 GB, free: 12.75 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.008257, allocations: 135.5 kB / 0.9867 GB, free: 12.62 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 8.367e-05/0.00834, allocations: 99.58 kB / 0.9868 GB, free: 12.52 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0006817/0.009022, allocations: 0.4982 MB / 0.9873 GB, free: 12.02 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.009026, allocations: 0 / 0.9873 GB, free: 12.02 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.422e-06/0.009027, allocations: 0 / 0.9873 GB, free: 12.02 MB / 0.948 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.009034, allocations: 4 kB / 0.9873 GB, free: 12.02 MB / 0.948 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.0009087/0.009943, allocations: 0.7852 MB / 0.9881 GB, free: 11.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.00998, allocations: 12.03 kB / 0.9881 GB, free: 11.18 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.01002, allocations: 46.73 kB / 0.9881 GB, free: 11.13 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.01009, allocations: 56.56 kB / 0.9882 GB, free: 11.07 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.01048, allocations: 382.6 kB / 0.9886 GB, free: 10.67 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.0105, allocations: 8.562 kB / 0.9886 GB, free: 10.66 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.01052, allocations: 16.06 kB / 0.9886 GB, free: 10.65 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.01071, allocations: 153.6 kB / 0.9887 GB, free: 10.49 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.01072, allocations: 0 / 0.9887 GB, free: 10.49 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.01073, allocations: 7.938 kB / 0.9887 GB, free: 10.48 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.01074, allocations: 0 / 0.9887 GB, free: 10.48 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.01085, allocations: 79.89 kB / 0.9888 GB, free: 10.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006099/0.01146, allocations: 0.5153 MB / 0.9893 GB, free: 9.844 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.01166, allocations: 122.7 kB / 0.9894 GB, free: 9.715 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.397e-05/0.01172, allocations: 52.83 kB / 0.9895 GB, free: 9.66 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.01174, allocations: 3.984 kB / 0.9895 GB, free: 9.656 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.01191, allocations: 137 kB / 0.9896 GB, free: 9.504 MB / 0.948 GB Notification: Performance of pre-optimization done (n=13): time 1.152e-06/0.01191, allocations: 0 / 0.9896 GB, free: 9.504 MB / 0.948 GB Notification: Performance of matching and sorting (n=13): time 0.000341/0.01225, allocations: 249.2 kB / 0.9899 GB, free: 9.254 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.01228, allocations: 55.41 kB / 0.9899 GB, free: 9.188 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005168/0.0128, allocations: 0.7111 MB / 0.9906 GB, free: 8.469 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.01282, allocations: 33.7 kB / 0.9906 GB, free: 8.43 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.01296, allocations: 276.5 kB / 0.9909 GB, free: 8.156 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.01299, allocations: 31.73 kB / 0.9909 GB, free: 8.125 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/0.01306, allocations: 61.64 kB / 0.991 GB, free: 8.059 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.01316, allocations: 374.8 kB / 0.9913 GB, free: 7.684 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.464e-05/0.01325, allocations: 71.97 kB / 0.9914 GB, free: 7.613 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.01338, allocations: 169.8 kB / 0.9916 GB, free: 7.422 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.01354, allocations: 146.4 kB / 0.9917 GB, free: 7.27 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.01355, allocations: 0 / 0.9917 GB, free: 7.27 MB / 0.948 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002705/0.01382, allocations: 282.8 kB / 0.992 GB, free: 6.988 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.01383, allocations: 4 kB / 0.992 GB, free: 6.984 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01384, allocations: 0 / 0.992 GB, free: 6.984 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.01385, allocations: 7.938 kB / 0.992 GB, free: 6.977 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.676e-05/0.01395, allocations: 31.92 kB / 0.992 GB, free: 6.945 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.01395, allocations: 7.984 kB / 0.992 GB, free: 6.938 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.941e-05/0.01404, allocations: 23.88 kB / 0.9921 GB, free: 6.914 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.01406, allocations: 12 kB / 0.9921 GB, free: 6.902 MB / 0.948 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.0001519/0.01421, allocations: 219.8 kB / 0.9923 GB, free: 6.68 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.01425, allocations: 59.58 kB / 0.9923 GB, free: 6.621 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.01453, allocations: 213.7 kB / 0.9925 GB, free: 6.406 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.01453, allocations: 7.938 kB / 0.9926 GB, free: 6.398 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.01453, allocations: 0 / 0.9926 GB, free: 6.398 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.01454, allocations: 0 / 0.9926 GB, free: 6.398 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002312/0.01477, allocations: 332.5 kB / 0.9929 GB, free: 6.031 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01477, allocations: 0 / 0.9929 GB, free: 6.031 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.03e-05/0.0148, allocations: 11.98 kB / 0.9929 GB, free: 6.02 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.0148, allocations: 4 kB / 0.9929 GB, free: 6.016 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.01481, allocations: 7.938 kB / 0.9929 GB, free: 6.008 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.01482, allocations: 11.86 kB / 0.9929 GB, free: 5.996 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01482, allocations: 0 / 0.9929 GB, free: 5.996 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.01504, allocations: 244.6 kB / 0.9931 GB, free: 5.738 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.01509, allocations: 47.62 kB / 0.9932 GB, free: 5.691 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.201e-05/0.01512, allocations: 8 kB / 0.9932 GB, free: 5.684 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.242e-05/0.01518, allocations: 19.92 kB / 0.9932 GB, free: 5.664 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.01523, allocations: 11.97 kB / 0.9932 GB, free: 5.652 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.01524, allocations: 19.98 kB / 0.9932 GB, free: 5.633 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0003523/0.01559, allocations: 479 kB / 0.9937 GB, free: 5.172 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01559, allocations: 0 / 0.9937 GB, free: 5.172 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002281/0.01582, allocations: 71.88 kB / 0.9938 GB, free: 5.102 MB / 0.948 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.001331/0.01715, allocations: 1.127 MB / 0.9949 GB, free: 4.133 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.0174, allocations: 151.8 kB / 0.995 GB, free: 3.984 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.0174, allocations: 8.125 kB / 0.995 GB, free: 3.977 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.799e-05/0.01748, allocations: 59.91 kB / 0.9951 GB, free: 3.918 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.01779, allocations: 94.78 kB / 0.9952 GB, free: 3.836 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.02103, allocations: 3.992 MB / 0.9991 GB, free: 15.74 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.0212, allocations: 259.9 kB / 0.9993 GB, free: 15.46 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.0001199/0.02132, allocations: 50.94 kB / 0.9994 GB, free: 15.41 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.02148, allocations: 180.4 kB / 0.9995 GB, free: 15.23 MB / 0.9636 GB Notification: Performance of SimCode: time 1.072e-06/0.02148, allocations: 4 kB / 0.9995 GB, free: 15.23 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.04865, allocations: 11.05 MB / 1.01 GB, free: 4.328 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.968/7.017, allocations: 2.812 kB / 1.01 GB, free: 4.328 MB / 0.9636 GB " [Timeout remaining time 293] (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/jenkins/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: 10.958875035867095]