Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.00142, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009834/0.009835, allocations: 168.9 kB / 16.26 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.809/1.809, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.798/1.798, allocations: 292.7 MB / 0.5502 GB, free: 14.49 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005458/0.0005459, allocations: 15.22 kB / 0.6743 GB, free: 25.73 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2805, allocations: 116.3 MB / 0.7879 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003078/0.2836, allocations: 2.156 MB / 0.79 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002226/0.2859, allocations: 1.45 MB / 0.7914 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.286, allocations: 3.938 kB / 0.7914 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009258/0.287, allocations: 307.5 kB / 0.7917 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003855/0.2874, allocations: 199.3 kB / 0.7919 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006101/0.288, allocations: 206.8 kB / 0.7921 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004323/0.2884, allocations: 378.8 kB / 0.7924 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.2886, allocations: 68.92 kB / 0.7925 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.2888, allocations: 139.3 kB / 0.7926 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.289, allocations: 159.2 kB / 0.7928 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.2891, allocations: 4 kB / 0.7928 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.2892, allocations: 63.91 kB / 0.7929 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.2894, allocations: 115.6 kB / 0.793 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.2896, allocations: 208.2 kB / 0.7932 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005184/0.2901, allocations: 474.1 kB / 0.7936 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.2901, allocations: 4 kB / 0.7936 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.505e-06/0.2901, allocations: 0 / 0.7936 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.2901, allocations: 0 / 0.7936 GB, free: 5.676 MB / 0.6075 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.001209/0.2913, allocations: 0.7522 MB / 0.7944 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2914, allocations: 16.03 kB / 0.7944 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.204e-05/0.2915, allocations: 56.19 kB / 0.7944 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/0.2921, allocations: 436.8 kB / 0.7948 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.2921, allocations: 11.94 kB / 0.7949 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.2921, allocations: 8 kB / 0.7949 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.2924, allocations: 139.3 kB / 0.795 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2925, allocations: 7.938 kB / 0.795 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.2925, allocations: 11.98 kB / 0.795 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2925, allocations: 3.938 kB / 0.795 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.2927, allocations: 63.97 kB / 0.7951 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.2935, allocations: 0.5823 MB / 0.7956 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.2938, allocations: 126.6 kB / 0.7958 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.294, allocations: 44.84 kB / 0.7958 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.294, allocations: 4 kB / 0.7958 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.2942, allocations: 121.1 kB / 0.7959 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.914e-06/0.2942, allocations: 0 / 0.7959 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0005109/0.2948, allocations: 225.1 kB / 0.7961 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.2948, allocations: 89.05 kB / 0.7962 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007679/0.2956, allocations: 0.6798 MB / 0.7969 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.2956, allocations: 33.7 kB / 0.7969 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.2959, allocations: 264.4 kB / 0.7972 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.2959, allocations: 35.55 kB / 0.7972 GB, free: 1.777 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.723e-05/0.296, allocations: 33.7 kB / 0.7972 GB, free: 1.738 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001817/0.2962, allocations: 370.8 kB / 0.7976 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.2963, allocations: 71.97 kB / 0.7977 GB, free: 1.297 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.2965, allocations: 125 kB / 0.7978 GB, free: 1.16 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.2968, allocations: 141.9 kB / 0.7979 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.2968, allocations: 3.938 kB / 0.7979 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004456/0.2972, allocations: 268.8 kB / 0.7982 GB, free: 0.7422 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.2973, allocations: 4 kB / 0.7982 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2973, allocations: 0 / 0.7982 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.2973, allocations: 8.062 kB / 0.7982 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.2975, allocations: 35.92 kB / 0.7982 GB, free: 0.6953 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.2975, allocations: 4 kB / 0.7982 GB, free: 0.6914 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.2976, allocations: 23.94 kB / 0.7983 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.2977, allocations: 11.98 kB / 0.7983 GB, free: 0.6562 MB / 0.6075 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.0002188/0.2979, allocations: 207.5 kB / 0.7985 GB, free: 456 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.492e-05/0.298, allocations: 59.28 kB / 0.7985 GB, free: 396 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.537e-05/0.2981, allocations: 57.05 kB / 0.7986 GB, free: 332 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2981, allocations: 7.938 kB / 0.7986 GB, free: 324 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.2981, allocations: 0 / 0.7986 GB, free: 324 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2981, allocations: 7.922 kB / 0.7986 GB, free: 316 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000363/0.2985, allocations: 373.3 kB / 0.7989 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2985, allocations: 3.938 kB / 0.799 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.493e-05/0.2985, allocations: 12 kB / 0.799 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2985, allocations: 3.938 kB / 0.799 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.2986, allocations: 4 kB / 0.799 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2986, allocations: 4 kB / 0.799 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2986, allocations: 7.984 kB / 0.799 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000328/0.2989, allocations: 211.7 kB / 0.7992 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.299, allocations: 136.3 kB / 0.7993 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.095e-05/0.2991, allocations: 11.98 kB / 0.7993 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.2992, allocations: 8 kB / 0.7993 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.025e-05/0.2993, allocations: 27.91 kB / 0.7994 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.2993, allocations: 4 kB / 0.7994 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004822/0.2998, allocations: 471 kB / 0.7998 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2998, allocations: 0 / 0.7998 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003215/0.3001, allocations: 71.92 kB / 0.7999 GB, free: 14.91 MB / 0.6231 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.0009892/0.3011, allocations: 432.6 kB / 0.8003 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003366/0.3015, allocations: 151.9 kB / 0.8004 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3015, allocations: 0 / 0.8004 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.3016, allocations: 51.92 kB / 0.8005 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.3021, allocations: 86.88 kB / 0.8006 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.3034, allocations: 0.9694 MB / 0.8015 GB, free: 13.35 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.3039, allocations: 0.873 MB / 0.8024 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001536/0.3041, allocations: 38.95 kB / 0.8024 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.35e-05/0.3041, allocations: 39.42 kB / 0.8024 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of SimCode: time 4.21e-07/0.3042, allocations: 0 / 0.8024 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of Templates: time 0.0089/0.3131, allocations: 4.062 MB / 0.8064 GB, free: 8.355 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) Environment - environmentSimulation: