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.001055/0.001055, allocations: 98.64 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 182.2 kB / 16.92 MB, free: 6.918 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.363 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.493/2.493, allocations: 390.9 MB / 0.667 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004965/0.0004965, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7269/0.7274, allocations: 142.4 MB / 0.9557 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.01929/0.7468, allocations: 20.16 MB / 0.9754 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008502/0.7553, allocations: 5.396 MB / 0.9807 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000789/0.7561, allocations: 18.72 kB / 0.9807 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008884/0.757, allocations: 291.5 kB / 0.9809 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00245/0.7595, allocations: 0.8502 MB / 0.9818 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002504/0.762, allocations: 0.8121 MB / 0.9826 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003192/0.7652, allocations: 2.298 MB / 0.9848 GB, free: 444 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009087/0.7662, allocations: 434 kB / 0.9852 GB, free: 164 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.7675, allocations: 0.6038 MB / 0.9858 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007978/0.7683, allocations: 0.4951 MB / 0.9863 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 6.892e-05/0.7684, allocations: 23.25 kB / 0.9863 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002156/0.7706, allocations: 1.096 MB / 0.9874 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.7707, allocations: 119.5 kB / 0.9875 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003802/0.7711, allocations: 328 kB / 0.9878 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.7724, allocations: 0.8536 MB / 0.9887 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.7724, allocations: 4 kB / 0.9887 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7724, allocations: 0 / 0.9887 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.879e-06/0.7724, allocations: 0 / 0.9887 GB, free: 13.5 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.001715/0.7741, allocations: 0.9248 MB / 0.9896 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.7742, allocations: 12.03 kB / 0.9896 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009075/0.7751, allocations: 203.9 kB / 0.9898 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.7761, allocations: 0.5495 MB / 0.9903 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003887/0.7765, allocations: 100.9 kB / 0.9904 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.685e-05/0.7766, allocations: 40 kB / 0.9904 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.7776, allocations: 0.4999 MB / 0.9909 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.7777, allocations: 8 kB / 0.9909 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.706e-05/0.7777, allocations: 16 kB / 0.991 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.463e-05/0.7777, allocations: 12 kB / 0.991 GB, free: 11.01 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.7788, allocations: 426.6 kB / 0.9914 GB, free: 10.6 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.003182/0.782, allocations: 2.297 MB / 0.9936 GB, free: 8.086 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.7832, allocations: 396.6 kB / 0.994 GB, free: 7.691 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005346/0.7837, allocations: 237 kB / 0.9942 GB, free: 7.457 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003559/0.7841, allocations: 352.5 kB / 0.9946 GB, free: 7.039 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007029/0.7848, allocations: 307 kB / 0.9948 GB, free: 6.723 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.355e-06/0.7848, allocations: 0 / 0.9948 GB, free: 6.723 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33): time 0.00245/0.7873, allocations: 0.8859 MB / 0.9957 GB, free: 5.805 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.7873, allocations: 81.11 kB / 0.9958 GB, free: 5.707 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/0.7879, allocations: 0.491 MB / 0.9963 GB, free: 5.207 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001109/0.7881, allocations: 33.7 kB / 0.9963 GB, free: 5.168 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.7883, allocations: 280.4 kB / 0.9966 GB, free: 4.887 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.741e-05/0.7884, allocations: 110.5 kB / 0.9967 GB, free: 4.777 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.976e-05/0.7885, allocations: 33.7 kB / 0.9967 GB, free: 4.738 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.7886, allocations: 358.8 kB / 0.997 GB, free: 4.379 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004726/0.7891, allocations: 183.9 kB / 0.9972 GB, free: 4.199 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005387/0.7896, allocations: 277 kB / 0.9975 GB, free: 3.895 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.7907, allocations: 489.8 kB / 0.998 GB, free: 3.383 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.7907, allocations: 3.938 kB / 0.998 GB, free: 3.379 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001561/0.7923, allocations: 0.6361 MB / 0.9986 GB, free: 2.727 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/0.7925, allocations: 167.9 kB / 0.9987 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.7925, allocations: 11.98 kB / 0.9987 GB, free: 2.52 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003627/0.7929, allocations: 72.88 kB / 0.9988 GB, free: 2.445 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.7932, allocations: 79.88 kB / 0.9989 GB, free: 2.367 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004636/0.7937, allocations: 0.5954 MB / 0.9995 GB, free: 1.746 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005845/0.7943, allocations: 79.62 kB / 0.9996 GB, free: 1.668 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.7944, allocations: 20 kB / 0.9996 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.522e-06/0.7944, allocations: 0 / 0.9996 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001281/0.7957, allocations: 0.5604 MB / 1 GB, free: 1.078 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.7957, allocations: 4 kB / 1 GB, free: 1.074 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.7958, allocations: 56.77 kB / 1 GB, free: 1.016 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003516/0.7962, allocations: 84.03 kB / 1 GB, free: 0.9336 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.7978, allocations: 1.642 MB / 1.002 GB, free: 15.15 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005247/0.7984, allocations: 75.73 kB / 1.002 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/0.7984, allocations: 23.98 kB / 1.002 GB, free: 15.05 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.0003567/0.7988, allocations: 297.6 kB / 1.002 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.875e-05/0.7989, allocations: 55.34 kB / 1.002 GB, free: 14.69 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.8004, allocations: 0.6688 MB / 1.003 GB, free: 14 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.8004, allocations: 4 kB / 1.003 GB, free: 14 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.8004, allocations: 48 / 1.003 GB, free: 14 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001325/0.8018, allocations: 0.8288 MB / 1.004 GB, free: 13.09 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.8041, allocations: 1.322 MB / 1.005 GB, free: 11.69 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.8042, allocations: 0 / 1.005 GB, free: 11.69 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003511/0.8045, allocations: 68.05 kB / 1.005 GB, free: 11.62 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.8047, allocations: 44.81 kB / 1.005 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.8047, allocations: 16 kB / 1.005 GB, free: 11.56 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005245/0.8052, allocations: 0.5796 MB / 1.006 GB, free: 10.96 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.8053, allocations: 3.938 kB / 1.006 GB, free: 10.95 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.8072, allocations: 0.991 MB / 1.007 GB, free: 9.926 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.8075, allocations: 192.2 kB / 1.007 GB, free: 9.719 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.048e-05/0.8075, allocations: 8 kB / 1.007 GB, free: 9.711 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005465/0.8081, allocations: 60 kB / 1.007 GB, free: 9.652 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.882e-05/0.8082, allocations: 31.91 kB / 1.007 GB, free: 9.621 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.8082, allocations: 23.86 kB / 1.007 GB, free: 9.598 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003891/0.8086, allocations: 346.8 kB / 1.007 GB, free: 9.262 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8086, allocations: 0 / 1.007 GB, free: 9.262 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001059/0.8097, allocations: 335.5 kB / 1.008 GB, free: 8.934 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.0006775/0.8104, allocations: 309.7 kB / 1.008 GB, free: 8.633 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002149/0.8125, allocations: 1.002 MB / 1.009 GB, free: 7.594 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.8126, allocations: 0 / 1.009 GB, free: 7.594 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006464/0.8132, allocations: 347.8 kB / 1.009 GB, free: 7.242 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.8147, allocations: 243.9 kB / 1.009 GB, free: 7.004 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.8171, allocations: 1.422 MB / 1.011 GB, free: 5.543 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.8176, allocations: 0.8784 MB / 1.012 GB, free: 4.637 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.8178, allocations: 55.36 kB / 1.012 GB, free: 4.582 MB / 0.7637 GB Notification: Performance of SimCode: time 6.51e-07/0.8178, allocations: 0 / 1.012 GB, free: 4.582 MB / 0.7637 GB Notification: Performance of Templates: time 0.01812/0.8359, allocations: 11.42 MB / 1.023 GB, free: 9.223 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches