Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001636/0.001637, allocations: 106 kB / 16.35 MB, free: 5.824 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.001777/0.001777, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.421/1.421, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.536/2.536, allocations: 442.5 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.84 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3016, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004298/0.3059, allocations: 2.484 MB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002595/0.3085, allocations: 1.569 MB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002077/0.3088, allocations: 7.938 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.3098, allocations: 323.3 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004644/0.3103, allocations: 211.1 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006943/0.311, allocations: 270.1 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004189/0.3114, allocations: 386.8 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.3116, allocations: 76.69 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.3119, allocations: 159.2 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.3121, allocations: 163.3 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.086e-05/0.3121, allocations: 20 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.3124, allocations: 79.89 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.3125, allocations: 127.5 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.3127, allocations: 186.6 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005463/0.3132, allocations: 0.502 MB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3132, allocations: 0 / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3133, allocations: 0 / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.3133, allocations: 0 / 1.033 GB, free: 11.48 MB / 0.8106 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.001193/0.3145, allocations: 0.8347 MB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3145, allocations: 8.031 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.176e-05/0.3146, allocations: 60.19 kB / 1.034 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005409/0.3152, allocations: 440.8 kB / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.3152, allocations: 11.94 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.3152, allocations: 8 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.3155, allocations: 136.5 kB / 1.035 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.3155, allocations: 8 kB / 1.035 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.3156, allocations: 4 kB / 1.035 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3156, allocations: 3.938 kB / 1.035 GB, free: 9.879 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.3157, allocations: 63.97 kB / 1.035 GB, free: 9.816 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008891/0.3166, allocations: 0.5705 MB / 1.035 GB, free: 9.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.317, allocations: 130.6 kB / 1.035 GB, free: 9.059 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.3171, allocations: 48.84 kB / 1.035 GB, free: 9.008 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.3171, allocations: 4 kB / 1.035 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002347/0.3174, allocations: 115 kB / 1.035 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=13): time 2.916e-06/0.3174, allocations: 7.938 kB / 1.035 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13): time 0.0005039/0.3179, allocations: 236.9 kB / 1.036 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.318, allocations: 85.11 kB / 1.036 GB, free: 8.535 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007346/0.3187, allocations: 0.676 MB / 1.036 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.3187, allocations: 33.7 kB / 1.036 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.3189, allocations: 264.2 kB / 1.037 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.496e-05/0.319, allocations: 35.61 kB / 1.037 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.575e-05/0.3191, allocations: 53.7 kB / 1.037 GB, free: 7.453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3193, allocations: 374.8 kB / 1.037 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.3194, allocations: 67.97 kB / 1.037 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.3196, allocations: 127 kB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.3199, allocations: 136.2 kB / 1.037 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3199, allocations: 3.938 kB / 1.037 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004342/0.3203, allocations: 266.6 kB / 1.038 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3204, allocations: 6.188 kB / 1.038 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3204, allocations: 3.984 kB / 1.038 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.3204, allocations: 4.047 kB / 1.038 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.3206, allocations: 43.91 kB / 1.038 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.3206, allocations: 8.062 kB / 1.038 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.3207, allocations: 23.83 kB / 1.038 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.3208, allocations: 8 kB / 1.038 GB, free: 6.367 MB / 0.8106 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.0002132/0.321, allocations: 211.5 kB / 1.038 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/0.3211, allocations: 55.28 kB / 1.038 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.933e-05/0.3212, allocations: 57.05 kB / 1.038 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3212, allocations: 0 / 1.038 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.3212, allocations: 4 kB / 1.038 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.3212, allocations: 7.984 kB / 1.038 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.3215, allocations: 373.3 kB / 1.038 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3215, allocations: 3.938 kB / 1.038 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-05/0.3216, allocations: 8 kB / 1.039 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3216, allocations: 0 / 1.039 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.3216, allocations: 4 kB / 1.039 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3216, allocations: 3.938 kB / 1.039 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3216, allocations: 4 kB / 1.039 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.322, allocations: 220.4 kB / 1.039 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.3221, allocations: 132.4 kB / 1.039 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.3221, allocations: 7.938 kB / 1.039 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.3223, allocations: 11.98 kB / 1.039 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.3223, allocations: 15.98 kB / 1.039 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3223, allocations: 7.984 kB / 1.039 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004758/0.3228, allocations: 471 kB / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3228, allocations: 0 / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000303/0.3231, allocations: 63.91 kB / 1.039 GB, free: 4.645 MB / 0.8106 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.001095/0.3242, allocations: 431.6 kB / 1.04 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003662/0.3246, allocations: 151.8 kB / 1.04 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3246, allocations: 0 / 1.04 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.3248, allocations: 51.98 kB / 1.04 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.3252, allocations: 119 kB / 1.04 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.3264, allocations: 0.825 MB / 1.041 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.3268, allocations: 0.8579 MB / 1.042 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001253/0.3269, allocations: 50.94 kB / 1.042 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.321e-05/0.327, allocations: 31.44 kB / 1.042 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.327, allocations: 0 / 1.042 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of Templates: time 0.009067/0.3361, allocations: 4.339 MB / 1.046 GB, free: 13.95 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches