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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001113/0.001113, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.0111/0.0111, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.444/1.444, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.0003241, allocations: 16 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6958/0.6961, allocations: 142.4 MB / 0.955 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02186/0.718, allocations: 20.16 MB / 0.9747 GB, free: 7.594 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009337/0.7274, allocations: 5.388 MB / 0.98 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.7287, allocations: 18.88 kB / 0.98 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.73, allocations: 283.7 kB / 0.9803 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002927/0.7329, allocations: 0.8503 MB / 0.9811 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002825/0.7357, allocations: 0.8145 MB / 0.9819 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003472/0.7392, allocations: 2.304 MB / 0.9841 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009801/0.7402, allocations: 435.3 kB / 0.9846 GB, free: 268 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001653/0.7419, allocations: 0.6039 MB / 0.9851 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.743, allocations: 494.5 kB / 0.9856 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.7432, allocations: 23.34 kB / 0.9856 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002651/0.7458, allocations: 1.094 MB / 0.9867 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.7461, allocations: 127.4 kB / 0.9868 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000611/0.7467, allocations: 324.1 kB / 0.9871 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002269/0.749, allocations: 1.184 MB / 0.9883 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.749, allocations: 4 kB / 0.9883 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.853e-06/0.749, allocations: 0 / 0.9883 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.737e-05/0.749, allocations: 3.938 kB / 0.9883 GB, free: 13.2 MB / 0.7481 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.001724/0.7508, allocations: 0.917 MB / 0.9892 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.7508, allocations: 12.03 kB / 0.9892 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009571/0.7518, allocations: 207.9 kB / 0.9894 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.7529, allocations: 0.5573 MB / 0.99 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003477/0.7532, allocations: 96.94 kB / 0.99 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.946e-05/0.7533, allocations: 40 kB / 0.9901 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.7543, allocations: 0.496 MB / 0.9906 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.7543, allocations: 4 kB / 0.9906 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.712e-05/0.7544, allocations: 16 kB / 0.9906 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.7544, allocations: 12 kB / 0.9906 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.7555, allocations: 426.6 kB / 0.991 GB, free: 10.31 MB / 0.7481 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.002887/0.7584, allocations: 2.305 MB / 0.9933 GB, free: 7.789 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.7595, allocations: 404.6 kB / 0.9936 GB, free: 7.387 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005233/0.76, allocations: 235.6 kB / 0.9939 GB, free: 7.156 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002884/0.7603, allocations: 344.7 kB / 0.9942 GB, free: 6.746 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000639/0.7609, allocations: 310.8 kB / 0.9945 GB, free: 6.426 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.761, allocations: 0 / 0.9945 GB, free: 6.426 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33): time 0.002365/0.7633, allocations: 0.8859 MB / 0.9954 GB, free: 5.508 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.7634, allocations: 85.11 kB / 0.9954 GB, free: 5.406 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005393/0.7639, allocations: 0.491 MB / 0.9959 GB, free: 4.906 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.764, allocations: 33.7 kB / 0.996 GB, free: 4.867 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.7642, allocations: 280.4 kB / 0.9962 GB, free: 4.586 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.393e-05/0.7643, allocations: 106.6 kB / 0.9963 GB, free: 4.48 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.528e-05/0.7644, allocations: 33.69 kB / 0.9964 GB, free: 4.441 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.7645, allocations: 362.8 kB / 0.9967 GB, free: 4.078 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.765, allocations: 179.9 kB / 0.9969 GB, free: 3.902 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000535/0.7655, allocations: 281 kB / 0.9971 GB, free: 3.594 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.7665, allocations: 477.8 kB / 0.9976 GB, free: 3.094 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.7666, allocations: 7.922 kB / 0.9976 GB, free: 3.086 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001557/0.7681, allocations: 0.6479 MB / 0.9982 GB, free: 2.422 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.7683, allocations: 171.9 kB / 0.9984 GB, free: 2.223 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.7683, allocations: 4 kB / 0.9984 GB, free: 2.219 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003607/0.7686, allocations: 76.67 kB / 0.9985 GB, free: 2.141 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003827/0.769, allocations: 75.95 kB / 0.9985 GB, free: 2.066 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004666/0.7695, allocations: 0.5992 MB / 0.9991 GB, free: 1.441 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006038/0.7701, allocations: 71.7 kB / 0.9992 GB, free: 1.371 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.67e-05/0.7702, allocations: 19.98 kB / 0.9992 GB, free: 1.352 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.993e-06/0.7702, allocations: 5.562 kB / 0.9992 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001324/0.7715, allocations: 0.5643 MB / 0.9998 GB, free: 0.7734 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.7716, allocations: 4 kB / 0.9998 GB, free: 0.7695 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001471/0.7717, allocations: 48.83 kB / 0.9998 GB, free: 0.7188 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/0.7721, allocations: 84.05 kB / 0.9999 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/0.7737, allocations: 1.635 MB / 1.002 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006069/0.7743, allocations: 83.72 kB / 1.002 GB, free: 14.77 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.7744, allocations: 19.98 kB / 1.002 GB, free: 14.75 MB / 0.7637 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 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004146/0.7748, allocations: 299.2 kB / 1.002 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.623e-05/0.7749, allocations: 55.34 kB / 1.002 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.7765, allocations: 0.6687 MB / 1.003 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.7766, allocations: 4 kB / 1.003 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.7766, allocations: 0 / 1.003 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001374/0.7779, allocations: 0.8249 MB / 1.003 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00253/0.7805, allocations: 1.311 MB / 1.005 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.7805, allocations: 0 / 1.005 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.7809, allocations: 79.97 kB / 1.005 GB, free: 11.33 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.781, allocations: 40.84 kB / 1.005 GB, free: 11.29 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.7811, allocations: 19.97 kB / 1.005 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004487/0.7815, allocations: 0.5795 MB / 1.005 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.7816, allocations: 7.922 kB / 1.005 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/0.7836, allocations: 1.003 MB / 1.006 GB, free: 9.617 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/0.7839, allocations: 188.2 kB / 1.007 GB, free: 9.414 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.37e-05/0.784, allocations: 12 kB / 1.007 GB, free: 9.402 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005819/0.7846, allocations: 60 kB / 1.007 GB, free: 9.344 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.7847, allocations: 23.97 kB / 1.007 GB, free: 9.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.487e-05/0.7847, allocations: 19.98 kB / 1.007 GB, free: 9.301 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004046/0.7851, allocations: 346.8 kB / 1.007 GB, free: 8.965 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7851, allocations: 0 / 1.007 GB, free: 8.965 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001161/0.7863, allocations: 339.5 kB / 1.007 GB, free: 8.633 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006628/0.787, allocations: 298.4 kB / 1.008 GB, free: 8.344 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002209/0.7892, allocations: 1.014 MB / 1.009 GB, free: 7.293 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.7892, allocations: 4.062 kB / 1.009 GB, free: 7.289 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006887/0.7899, allocations: 336.2 kB / 1.009 GB, free: 6.949 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001589/0.7915, allocations: 248.2 kB / 1.009 GB, free: 6.707 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.7941, allocations: 1.379 MB / 1.01 GB, free: 5.293 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005403/0.7946, allocations: 0.8901 MB / 1.011 GB, free: 4.375 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006521/0.7953, allocations: 128.4 kB / 1.011 GB, free: 4.246 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.7954, allocations: 43.42 kB / 1.012 GB, free: 4.203 MB / 0.7637 GB Notification: Performance of SimCode: time 1.022e-06/0.7954, allocations: 0 / 1.012 GB, free: 4.203 MB / 0.7637 GB Notification: Performance of Templates: time 0.02077/0.8162, allocations: 11.01 MB / 1.022 GB, free: 9.328 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches