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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_9_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.008617/0.008616, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.002085/0.002085, allocations: 195.9 kB / 16.79 MB, free: 6.254 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.477/1.477, allocations: 222.9 MB / 240.5 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.494/2.494, allocations: 390.2 MB / 0.6649 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 67.91 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7043/0.7057, allocations: 140.4 MB / 0.9496 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003491/0.7092, allocations: 2.505 MB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.7113, allocations: 1.549 MB / 0.9535 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.7115, allocations: 6.438 kB / 0.9535 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008612/0.7123, allocations: 315.7 kB / 0.9538 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003407/0.7127, allocations: 191.1 kB / 0.954 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005904/0.7133, allocations: 243.6 kB / 0.9543 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.7137, allocations: 377.6 kB / 0.9546 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.7139, allocations: 66.55 kB / 0.9547 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.7141, allocations: 149.8 kB / 0.9548 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.7142, allocations: 160.7 kB / 0.955 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.7143, allocations: 8.094 kB / 0.955 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.7145, allocations: 64.61 kB / 0.955 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.7146, allocations: 130 kB / 0.9552 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.7147, allocations: 175.4 kB / 0.9553 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.7151, allocations: 380.4 kB / 0.9557 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.7151, allocations: 5.094 kB / 0.9557 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.153e-06/0.7151, allocations: 0 / 0.9557 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.7151, allocations: 0 / 0.9557 GB, free: 4.621 MB / 0.7169 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.001067/0.7162, allocations: 0.8353 MB / 0.9565 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.7162, allocations: 9.656 kB / 0.9565 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.003e-05/0.7163, allocations: 57.28 kB / 0.9566 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004267/0.7168, allocations: 435.3 kB / 0.957 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.7168, allocations: 11.75 kB / 0.957 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.7168, allocations: 7.219 kB / 0.957 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002632/0.7171, allocations: 142.5 kB / 0.9572 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.7171, allocations: 0 / 0.9572 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.7171, allocations: 5.344 kB / 0.9572 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.7171, allocations: 6.625 kB / 0.9572 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.7173, allocations: 72.73 kB / 0.9572 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007703/0.7181, allocations: 0.5753 MB / 0.9578 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.7184, allocations: 119.8 kB / 0.9579 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.7185, allocations: 49.98 kB / 0.958 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.7186, allocations: 10.09 kB / 0.958 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.7188, allocations: 113.3 kB / 0.9581 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.7188, allocations: 0 / 0.9581 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.000494/0.7193, allocations: 230.6 kB / 0.9583 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.7194, allocations: 86.58 kB / 0.9584 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006715/0.72, allocations: 0.6889 MB / 0.9591 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.7201, allocations: 32.95 kB / 0.9591 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.7202, allocations: 264.2 kB / 0.9593 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.7203, allocations: 33.36 kB / 0.9594 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.218e-05/0.7204, allocations: 59.66 kB / 0.9594 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.461e-05/0.7204, allocations: 366.9 kB / 0.9598 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.7206, allocations: 75.7 kB / 0.9598 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.7208, allocations: 128.5 kB / 0.96 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.721, allocations: 131.2 kB / 0.9601 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7211, allocations: 5.031 kB / 0.9601 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004408/0.7215, allocations: 265 kB / 0.9604 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.7215, allocations: 5.375 kB / 0.9604 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.7215, allocations: 0 / 0.9604 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.7215, allocations: 2.688 kB / 0.9604 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.7217, allocations: 38.33 kB / 0.9604 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.7217, allocations: 5.109 kB / 0.9604 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.7219, allocations: 26.39 kB / 0.9604 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.722, allocations: 5.594 kB / 0.9604 GB, free: 0.9414 MB / 0.7169 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.0002496/0.7222, allocations: 219 kB / 0.9606 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.743e-05/0.7223, allocations: 64.86 kB / 0.9607 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.7225, allocations: 57.39 kB / 0.9608 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.7225, allocations: 1.844 kB / 0.9608 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.7225, allocations: 0 / 0.9608 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.7225, allocations: 1.094 kB / 0.9608 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003511/0.7229, allocations: 365.6 kB / 0.9611 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.7229, allocations: 7.875 kB / 0.9611 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.676e-05/0.7229, allocations: 6.719 kB / 0.9611 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.7229, allocations: 1.125 kB / 0.9611 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.7229, allocations: 14.14 kB / 0.9611 GB, free: 356 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.7229, allocations: 3.938 kB / 0.9611 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.7229, allocations: 1.094 kB / 0.9611 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003434/0.7233, allocations: 220.3 kB / 0.9614 GB, free: 204 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.12e-05/0.7234, allocations: 132.4 kB / 0.9615 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.7234, allocations: 2.094 kB / 0.9615 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.7236, allocations: 14.77 kB / 0.9615 GB, free: 60 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.7236, allocations: 20.06 kB / 0.9615 GB, free: 48 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.7237, allocations: 7.875 kB / 0.9615 GB, free: 44 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000538/0.7242, allocations: 466 kB / 0.962 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7242, allocations: 0 / 0.962 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003269/0.7245, allocations: 63.89 kB / 0.962 GB, free: 15.78 MB / 0.7325 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.001032/0.7256, allocations: 443 kB / 0.9624 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003582/0.726, allocations: 159.1 kB / 0.9626 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.726, allocations: 0 / 0.9626 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.7261, allocations: 53.27 kB / 0.9627 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005041/0.7266, allocations: 86.7 kB / 0.9627 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.7281, allocations: 0.9973 MB / 0.9637 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.7285, allocations: 0.8647 MB / 0.9646 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.312e-05/0.7286, allocations: 29.95 kB / 0.9646 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.7286, allocations: 0 / 0.9646 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of Templates: time 0.009556/0.7382, allocations: 5.714 MB / 0.9702 GB, free: 10.87 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (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 & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/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