Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 104.5 kB / 16.41 MB, free: 6.508 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.001122/0.001122, allocations: 185.8 kB / 17.34 MB, free: 5.742 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.419/2.419, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 63.91 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8569/0.8583, allocations: 151.6 MB / 1.167 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.08506/0.9434, allocations: 81.03 MB / 1.246 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.03176/0.9752, allocations: 21.05 MB / 1.267 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003984/0.9793, allocations: 107.4 kB / 1.267 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006217/0.9855, allocations: 1.961 MB / 1.269 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.009003/0.9945, allocations: 3.034 MB / 1.272 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006692/1.001, allocations: 2.486 MB / 1.274 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.02301/1.024, allocations: 18.47 MB / 1.292 GB, free: 3.285 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01061/1.035, allocations: 7.237 MB / 1.299 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01187/1.047, allocations: 5.963 MB / 1.305 GB, free: 6 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008816/1.056, allocations: 5.121 MB / 1.31 GB, free: 0.8594 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.002163/1.058, allocations: 0.5508 MB / 1.311 GB, free: 316 kB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006215/1.064, allocations: 1.978 MB / 1.313 GB, free: 14.33 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.00336/1.067, allocations: 1.76 MB / 1.314 GB, free: 12.56 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.007159/1.075, allocations: 3.48 MB / 1.318 GB, free: 9.066 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.01455/1.089, allocations: 9.667 MB / 1.327 GB, free: 15.37 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/1.089, allocations: 0 / 1.327 GB, free: 15.37 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.154e-06/1.089, allocations: 4 kB / 1.327 GB, free: 15.37 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0003248/1.09, allocations: 0 / 1.327 GB, free: 15.37 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01783/1.107, allocations: 6.905 MB / 1.334 GB, free: 8.363 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/1.108, allocations: 8.031 kB / 1.334 GB, free: 8.355 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00535/1.113, allocations: 0.9527 MB / 1.335 GB, free: 7.395 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01508/1.128, allocations: 6.416 MB / 1.341 GB, free: 0.8984 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003325/1.128, allocations: 262.6 kB / 1.342 GB, free: 0.6406 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001323/1.13, allocations: 339.9 kB / 1.342 GB, free: 316 kB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/1.143, allocations: 5.743 MB / 1.347 GB, free: 10.32 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001132/1.143, allocations: 15.88 kB / 1.347 GB, free: 10.3 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001022/1.144, allocations: 148 kB / 1.348 GB, free: 10.16 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/1.144, allocations: 114 kB / 1.348 GB, free: 10.05 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/1.154, allocations: 5.562 MB / 1.353 GB, free: 4.473 MB / 1.076 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03984/1.194, allocations: 24.08 MB / 1.377 GB, free: 11.32 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005333/1.2, allocations: 2.763 MB / 1.379 GB, free: 8.559 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003235/1.203, allocations: 1.909 MB / 1.381 GB, free: 6.645 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0144/1.217, allocations: 7.167 MB / 1.388 GB, free: 15.16 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003334/1.221, allocations: 1.922 MB / 1.39 GB, free: 13.23 MB / 1.123 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003539/1.224, allocations: 0.7194 MB / 1.391 GB, free: 12.51 MB / 1.123 GB Notification: Performance of pre-optimization done (n=154): time 1.074e-05/1.224, allocations: 0 / 1.391 GB, free: 12.51 MB / 1.123 GB Notification: Performance of matching and sorting (n=154): time 0.02561/1.25, allocations: 8.029 MB / 1.399 GB, free: 4.395 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/1.25, allocations: 68.72 kB / 1.399 GB, free: 4.316 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01056/1.261, allocations: 5.598 MB / 1.404 GB, free: 14.75 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.0006791/1.261, allocations: 65.7 kB / 1.404 GB, free: 14.68 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003129/1.264, allocations: 2.597 MB / 1.407 GB, free: 12.05 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.266, allocations: 0.5587 MB / 1.407 GB, free: 11.49 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002049/1.268, allocations: 0.7713 MB / 1.408 GB, free: 10.71 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001003/1.268, allocations: 305.1 kB / 1.408 GB, free: 10.41 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003403/1.271, allocations: 1.904 MB / 1.41 GB, free: 8.492 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004327/1.276, allocations: 3.159 MB / 1.413 GB, free: 4.773 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007574/1.283, allocations: 5.024 MB / 1.418 GB, free: 15.27 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.71e-05/1.283, allocations: 8 kB / 1.418 GB, free: 15.26 MB / 1.154 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01425/1.297, allocations: 6.796 MB / 1.425 GB, free: 8.434 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 8.362e-05/1.298, allocations: 51.89 kB / 1.425 GB, free: 8.379 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.545e-05/1.298, allocations: 36 kB / 1.425 GB, free: 8.344 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08038/1.378, allocations: 13.54 MB / 1.438 GB, free: 10.78 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003244/1.381, allocations: 0.6981 MB / 1.439 GB, free: 10.08 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/1.392, allocations: 5.474 MB / 1.444 GB, free: 4.527 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.397, allocations: 240.4 kB / 1.444 GB, free: 4.293 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008059/1.397, allocations: 203.8 kB / 1.445 GB, free: 4.094 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006546/1.404, allocations: 3.277 MB / 1.448 GB, free: 0.8086 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004605/1.409, allocations: 3.109 MB / 1.451 GB, free: 13.13 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007721/1.416, allocations: 4.925 MB / 1.456 GB, free: 7.73 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.236e-05/1.417, allocations: 12 kB / 1.456 GB, free: 7.719 MB / 1.186 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01338/1.43, allocations: 6.515 MB / 1.462 GB, free: 1.172 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 6.715e-05/1.43, allocations: 49.7 kB / 1.462 GB, free: 1.117 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-05/1.43, allocations: 32.88 kB / 1.462 GB, free: 1.086 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07847/1.509, allocations: 13.31 MB / 1.475 GB, free: 3.758 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003175/1.512, allocations: 0.6981 MB / 1.476 GB, free: 3.059 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01388/1.526, allocations: 8.905 MB / 1.484 GB, free: 9.832 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004777/1.531, allocations: 248.1 kB / 1.485 GB, free: 9.586 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007104/1.531, allocations: 203.8 kB / 1.485 GB, free: 9.387 MB / 1.217 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (317): * Single equations (assignments): 311 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00128/1.533, allocations: 375.2 kB / 1.485 GB, free: 9.012 MB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001741/1.534, allocations: 0.4899 MB / 1.486 GB, free: 8.516 MB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/1.544, allocations: 4.585 MB / 1.49 GB, free: 3.906 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-05/1.544, allocations: 16 kB / 1.49 GB, free: 3.891 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.544, allocations: 0 / 1.49 GB, free: 3.891 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01134/1.556, allocations: 5.668 MB / 1.496 GB, free: 13.96 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03007/1.586, allocations: 10.92 MB / 1.506 GB, free: 2.953 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/1.586, allocations: 64 / 1.506 GB, free: 2.953 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002392/1.588, allocations: 379.5 kB / 1.507 GB, free: 2.582 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07054/1.659, allocations: 11.71 MB / 1.518 GB, free: 6.855 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005524/1.66, allocations: 51.95 kB / 1.518 GB, free: 6.805 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006366/1.666, allocations: 3.551 MB / 1.522 GB, free: 3.18 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.666, allocations: 4 kB / 1.522 GB, free: 3.176 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02253/1.688, allocations: 8.101 MB / 1.53 GB, free: 11.04 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003851/1.692, allocations: 0.9866 MB / 1.531 GB, free: 10.02 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001621/1.694, allocations: 32 kB / 1.531 GB, free: 9.992 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004112/1.698, allocations: 143.8 kB / 1.531 GB, free: 9.852 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004883/1.699, allocations: 113.8 kB / 1.531 GB, free: 9.738 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004235/1.699, allocations: 83.92 kB / 1.531 GB, free: 9.656 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.008245/1.707, allocations: 3.828 MB / 1.535 GB, free: 5.859 MB / 1.264 GB Notification: Performance of sort global known variables: time 7.51e-07/1.707, allocations: 0 / 1.535 GB, free: 5.859 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.01164/1.719, allocations: 2.799 MB / 1.537 GB, free: 3.055 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002215/1.721, allocations: 0.672 MB / 1.538 GB, free: 2.379 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.022/1.743, allocations: 7.944 MB / 1.546 GB, free: 10.4 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/1.743, allocations: 4 kB / 1.546 GB, free: 10.39 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.006077/1.749, allocations: 2.304 MB / 1.548 GB, free: 8.09 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01499/1.765, allocations: 2.904 MB / 1.551 GB, free: 5.266 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6283/2.393, allocations: 10.86 MB / 1.562 GB, free: 367.2 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003498/2.396, allocations: 3.398 MB / 1.565 GB, free: 366.4 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001907/2.398, allocations: 411 kB / 1.565 GB, free: 366.4 MB / 1.279 GB Notification: Performance of SimCode: time 1.984e-06/2.398, allocations: 0 / 1.565 GB, free: 366.4 MB / 1.279 GB Notification: Performance of Templates: time 0.1518/2.55, allocations: 174.1 MB / 1.735 GB, free: 206.5 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches