Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.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.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001345/0.001345, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 239.9 MB, free: 5.328 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.385/2.385, allocations: 390.3 MB / 0.6653 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003539, allocations: 8 kB / 0.8145 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6924/0.6927, allocations: 142.3 MB / 0.9535 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02012/0.7129, allocations: 17.48 MB / 0.9706 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008448/0.7214, allocations: 4.667 MB / 0.9751 GB, free: 6.605 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009116/0.7224, allocations: 23.56 kB / 0.9752 GB, free: 6.594 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.7235, allocations: 295.7 kB / 0.9754 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002938/0.7265, allocations: 0.822 MB / 0.9762 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002949/0.7294, allocations: 0.8952 MB / 0.9771 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002476/0.7319, allocations: 1.035 MB / 0.9781 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008878/0.7328, allocations: 427.4 kB / 0.9785 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001284/0.7341, allocations: 0.5411 MB / 0.9791 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006077/0.7347, allocations: 326.9 kB / 0.9794 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.346e-05/0.7348, allocations: 26.19 kB / 0.9794 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002326/0.7372, allocations: 0.8261 MB / 0.9802 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002539/0.7374, allocations: 116.4 kB / 0.9803 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003792/0.7378, allocations: 141.9 kB / 0.9805 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002063/0.7399, allocations: 0.781 MB / 0.9812 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.7399, allocations: 0 / 0.9812 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.108e-06/0.7399, allocations: 1.094 kB / 0.9812 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.598e-05/0.74, allocations: 0 / 0.9812 GB, free: 2.566 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002788/0.7428, allocations: 0.9191 MB / 0.9821 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.812e-05/0.7428, allocations: 8.75 kB / 0.9821 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.7439, allocations: 194.9 kB / 0.9823 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.745, allocations: 0.5047 MB / 0.9828 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/0.7454, allocations: 99.47 kB / 0.9829 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.403e-05/0.7455, allocations: 42.17 kB / 0.9829 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.7466, allocations: 0.4968 MB / 0.9834 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.7466, allocations: 1.438 kB / 0.9834 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.7466, allocations: 12.12 kB / 0.9834 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.672e-05/0.7467, allocations: 8.656 kB / 0.9834 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.7477, allocations: 431.6 kB / 0.9839 GB, free: 0.7031 MB / 0.7325 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.003284/0.751, allocations: 2.316 MB / 0.9861 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.7521, allocations: 394.9 kB / 0.9865 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003146/0.7524, allocations: 340.6 kB / 0.9868 GB, free: 13.54 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006562/0.7531, allocations: 308.5 kB / 0.9871 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.7531, allocations: 0 / 0.9871 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33): time 0.002332/0.7554, allocations: 0.9655 MB / 0.9881 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.7555, allocations: 81.11 kB / 0.9881 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005355/0.756, allocations: 0.4951 MB / 0.9886 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/0.7561, allocations: 33.7 kB / 0.9886 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.7563, allocations: 280.4 kB / 0.9889 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.822e-05/0.7564, allocations: 114.3 kB / 0.989 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/0.7564, allocations: 4 kB / 0.989 GB, free: 11.17 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.7566, allocations: 366.8 kB / 0.9894 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/0.7571, allocations: 179.9 kB / 0.9896 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.7576, allocations: 273 kB / 0.9898 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004766/0.7581, allocations: 222.1 kB / 0.99 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.7581, allocations: 7.984 kB / 0.99 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001408/0.7595, allocations: 0.624 MB / 0.9906 GB, free: 9.457 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002974/0.7598, allocations: 0.6503 MB / 0.9913 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.7598, allocations: 3.984 kB / 0.9913 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/0.7602, allocations: 72.88 kB / 0.9913 GB, free: 8.676 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.7606, allocations: 75.89 kB / 0.9914 GB, free: 8.602 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004666/0.761, allocations: 0.603 MB / 0.992 GB, free: 7.973 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/0.7616, allocations: 75.7 kB / 0.9921 GB, free: 7.898 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.543e-05/0.7617, allocations: 19.98 kB / 0.9921 GB, free: 7.879 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.7617, allocations: 4 kB / 0.9921 GB, free: 7.875 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001224/0.763, allocations: 0.5645 MB / 0.9927 GB, free: 7.301 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.763, allocations: 3.938 kB / 0.9927 GB, free: 7.297 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001438/0.7631, allocations: 48.83 kB / 0.9927 GB, free: 7.246 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003521/0.7635, allocations: 80.05 kB / 0.9928 GB, free: 7.168 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.7651, allocations: 1.638 MB / 0.9944 GB, free: 5.387 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/0.7657, allocations: 79.73 kB / 0.9945 GB, free: 5.309 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.7658, allocations: 15.98 kB / 0.9945 GB, free: 5.293 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004587/0.7662, allocations: 299.2 kB / 0.9948 GB, free: 4.984 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.885e-05/0.7663, allocations: 55.53 kB / 0.9948 GB, free: 4.93 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.7678, allocations: 0.6725 MB / 0.9955 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.7678, allocations: 4 kB / 0.9955 GB, free: 4.23 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.7678, allocations: 3.984 kB / 0.9955 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001238/0.7691, allocations: 0.825 MB / 0.9963 GB, free: 3.324 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.7714, allocations: 1.315 MB / 0.9976 GB, free: 1.934 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.7714, allocations: 0 / 0.9976 GB, free: 1.934 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/0.7718, allocations: 68.05 kB / 0.9976 GB, free: 1.867 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001451/0.7719, allocations: 56.69 kB / 0.9977 GB, free: 1.809 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/0.7719, allocations: 12 kB / 0.9977 GB, free: 1.797 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000369/0.7723, allocations: 0.5718 MB / 0.9983 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.7723, allocations: 7.984 kB / 0.9983 GB, free: 1.191 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.7742, allocations: 1.02 MB / 0.9993 GB, free: 120 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003515/0.7745, allocations: 188.3 kB / 0.9994 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.49e-05/0.7746, allocations: 11.98 kB / 0.9994 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005465/0.7752, allocations: 67.92 kB / 0.9995 GB, free: 15.84 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.09e-05/0.7753, allocations: 27.86 kB / 0.9995 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.7753, allocations: 23.97 kB / 0.9996 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004256/0.7758, allocations: 354.8 kB / 0.9999 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.3e-07/0.7758, allocations: 0 / 0.9999 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001218/0.777, allocations: 343.5 kB / 1 GB, free: 15.11 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007125/0.7777, allocations: 312.4 kB / 1.001 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002077/0.7798, allocations: 1.001 MB / 1.002 GB, free: 13.76 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.7798, allocations: 0 / 1.002 GB, free: 13.76 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006047/0.7804, allocations: 331.4 kB / 1.002 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.7817, allocations: 251.4 kB / 1.002 GB, free: 13.18 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.7841, allocations: 1.344 MB / 1.003 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.7846, allocations: 0.894 MB / 1.004 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005653/0.7852, allocations: 128.4 kB / 1.004 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.7853, allocations: 51.42 kB / 1.004 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of SimCode: time 1.232e-06/0.7853, allocations: 0 / 1.004 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of Templates: time 0.0203/0.8056, allocations: 10.93 MB / 1.015 GB, free: 15.9 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_ConservationEquation.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches