Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.Orifice,fileNamePrefix="Buildings_latest_Buildings_Airflow_Multizone_Examples_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.Orifice,fileNamePrefix="Buildings_latest_Buildings_Airflow_Multizone_Examples_Orifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007412/0.007412, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001749/0.001749, allocations: 187.2 kB / 16.67 MB, free: 5.957 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.265/1.265, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.488/2.488, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 67.91 kB / 1.054 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2586, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.Examples.Orifice): time 0.7271/0.9857, allocations: 173.8 MB / 1.377 GB, free: 12.39 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.003545/0.9893, allocations: 2.304 MB / 1.379 GB, free: 10.76 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004189/0.9897, allocations: 13.81 kB / 1.379 GB, free: 10.76 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0006867/0.9904, allocations: 233.5 kB / 1.379 GB, free: 10.61 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.002015/0.9925, allocations: 0.9254 MB / 1.38 GB, free: 9.941 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001948/0.9945, allocations: 0.8289 MB / 1.381 GB, free: 9.336 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.001196/0.9957, allocations: 0.9676 MB / 1.382 GB, free: 8.781 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004716/0.9962, allocations: 329.2 kB / 1.382 GB, free: 8.582 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007174/0.9969, allocations: 457.9 kB / 1.383 GB, free: 8.332 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.9973, allocations: 315.9 kB / 1.383 GB, free: 8.145 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.9973, allocations: 32.53 kB / 1.383 GB, free: 8.145 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.999, allocations: 0.9921 MB / 1.384 GB, free: 7.586 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.9991, allocations: 148.7 kB / 1.384 GB, free: 7.484 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.9994, allocations: 239 kB / 1.385 GB, free: 7.336 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001292/1.001, allocations: 0.901 MB / 1.385 GB, free: 6.793 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/1.001, allocations: 0 / 1.385 GB, free: 6.793 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.472e-06/1.001, allocations: 0 / 1.385 GB, free: 6.793 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.276e-06/1.001, allocations: 0 / 1.385 GB, free: 6.793 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001196/1.002, allocations: 0.8055 MB / 1.386 GB, free: 6.109 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/1.002, allocations: 14.56 kB / 1.386 GB, free: 6.105 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.552e-05/1.002, allocations: 65.81 kB / 1.386 GB, free: 6.043 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/1.003, allocations: 182.8 kB / 1.386 GB, free: 5.953 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006123/1.004, allocations: 390.6 kB / 1.387 GB, free: 5.605 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/1.004, allocations: 22.06 kB / 1.387 GB, free: 5.598 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.161e-05/1.004, allocations: 31.66 kB / 1.387 GB, free: 5.586 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/1.004, allocations: 372 kB / 1.387 GB, free: 5.332 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/1.005, allocations: 5 kB / 1.387 GB, free: 5.328 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/1.005, allocations: 11.34 kB / 1.387 GB, free: 5.32 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.563e-05/1.005, allocations: 13.97 kB / 1.387 GB, free: 5.316 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004812/1.005, allocations: 260.8 kB / 1.388 GB, free: 5.199 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.00167/1.007, allocations: 1.669 MB / 1.389 GB, free: 3.656 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/1.007, allocations: 209.3 kB / 1.389 GB, free: 3.547 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/1.007, allocations: 113.2 kB / 1.389 GB, free: 3.492 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009016/1.008, allocations: 0.8706 MB / 1.39 GB, free: 2.512 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/1.008, allocations: 43.81 kB / 1.39 GB, free: 2.461 MB / 1.076 GB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/1.008, allocations: 0 / 1.39 GB, free: 2.461 MB / 1.076 GB Notification: Performance of matching and sorting (n=23): time 0.0008555/1.009, allocations: 357.7 kB / 1.391 GB, free: 2.285 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/1.009, allocations: 54.53 kB / 1.391 GB, free: 2.223 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/1.01, allocations: 424.1 kB / 1.391 GB, free: 1.969 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/1.01, allocations: 30.8 kB / 1.391 GB, free: 1.934 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/1.01, allocations: 210 kB / 1.391 GB, free: 1.742 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 5.984e-05/1.01, allocations: 88.77 kB / 1.391 GB, free: 1.664 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/1.01, allocations: 49.42 kB / 1.392 GB, free: 1.629 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.01, allocations: 352.4 kB / 1.392 GB, free: 1.285 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/1.01, allocations: 82.03 kB / 1.392 GB, free: 1.246 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/1.01, allocations: 126.8 kB / 1.392 GB, free: 1.164 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/1.011, allocations: 206.8 kB / 1.392 GB, free: 1.047 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/1.011, allocations: 0 / 1.392 GB, free: 1.047 MB / 1.076 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004955/1.011, allocations: 290.2 kB / 1.393 GB, free: 0.8906 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/1.011, allocations: 5.031 kB / 1.393 GB, free: 0.8906 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/1.011, allocations: 1.031 kB / 1.393 GB, free: 0.8906 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/1.011, allocations: 2.906 kB / 1.393 GB, free: 0.8906 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/1.012, allocations: 52.83 kB / 1.393 GB, free: 0.8789 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/1.012, allocations: 5.984 kB / 1.393 GB, free: 0.875 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/1.012, allocations: 32.97 kB / 1.393 GB, free: 0.8516 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/1.012, allocations: 7.969 kB / 1.393 GB, free: 0.8516 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001536/1.012, allocations: 168.7 kB / 1.393 GB, free: 0.6992 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.26e-05/1.012, allocations: 44.5 kB / 1.393 GB, free: 0.6758 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000557/1.013, allocations: 284.6 kB / 1.393 GB, free: 0.5078 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/1.013, allocations: 2.344 kB / 1.393 GB, free: 0.5078 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/1.013, allocations: 0 / 1.393 GB, free: 0.5078 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/1.013, allocations: 3.938 kB / 1.393 GB, free: 0.5039 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/1.014, allocations: 0.8084 MB / 1.394 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/1.014, allocations: 2.75 kB / 1.394 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/1.014, allocations: 50.47 kB / 1.394 GB, free: 15.84 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/1.014, allocations: 6.75 kB / 1.394 GB, free: 15.84 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/1.014, allocations: 8.125 kB / 1.394 GB, free: 15.83 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/1.014, allocations: 2.75 kB / 1.394 GB, free: 15.83 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/1.014, allocations: 3.562 kB / 1.394 GB, free: 15.83 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007389/1.015, allocations: 0.5096 MB / 1.394 GB, free: 15.47 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/1.015, allocations: 143.9 kB / 1.395 GB, free: 15.33 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/1.015, allocations: 3.812 kB / 1.395 GB, free: 15.33 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/1.015, allocations: 14.58 kB / 1.395 GB, free: 15.32 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/1.016, allocations: 25.98 kB / 1.395 GB, free: 15.31 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/1.016, allocations: 7.25 kB / 1.395 GB, free: 15.31 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.000297/1.016, allocations: 311.4 kB / 1.395 GB, free: 15.12 MB / 1.092 GB Notification: Performance of sort global known variables: time 2e-07/1.016, allocations: 0 / 1.395 GB, free: 15.12 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.00045/1.016, allocations: 117 kB / 1.395 GB, free: 15.09 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (ori.mExc,den1.d,den2.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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 Backend phase and start with SimCode phase: time 0.001237/1.018, allocations: 1.135 MB / 1.396 GB, free: 14.16 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0004655/1.018, allocations: 209.7 kB / 1.396 GB, free: 14.08 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.018, allocations: 0 / 1.396 GB, free: 14.08 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0002146/1.018, allocations: 116.5 kB / 1.396 GB, free: 14.03 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/1.019, allocations: 225.1 kB / 1.397 GB, free: 13.92 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00442/1.024, allocations: 3.68 MB / 1.4 GB, free: 11.36 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/1.024, allocations: 0.8303 MB / 1.401 GB, free: 10.59 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0002859/1.024, allocations: 86.2 kB / 1.401 GB, free: 10.55 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/1.025, allocations: 140.6 kB / 1.401 GB, free: 10.44 MB / 1.092 GB Notification: Performance of SimCode: time 7.11e-07/1.025, allocations: 0 / 1.401 GB, free: 10.44 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02991/1.055, allocations: 12.28 MB / 1.413 GB, free: 3.57 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/8.793, allocations: 15.89 kB / 1.413 GB, free: 3.555 MB / 1.092 GB (rm -f Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; mkfifo Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; head -c 1048576 < Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice.pipe >> ../files/Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice_res.mat --tempDir=temp_Buildings_latest_Buildings_Airflow_Multizone_Examples_Orifice_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Airflow_Multizone_Examples_Orifice.fmu > Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Airflow_Multizone_Examples_Orifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Airflow.Multizone.Examples.Orifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,ori.V_flow,ori.dp,ori.v Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,den1.T_start,den1.X_start[1],den1.X_start[2],den1.allowFlowReversal,den1.d,den1.d_start,den1.initType,den1.m_flow_nominal,den1.m_flow_small,den1.p_start,den1.port_a.Xi_outflow[1],den1.port_a.h_outflow,den1.port_a.m_flow,den1.port_a.p,den1.port_b.Xi_outflow[1],den1.port_b.h_outflow,den1.port_b.m_flow,den1.port_b.p,den1.tau,den2.T_start,den2.X_start[1],den2.X_start[2],den2.allowFlowReversal,den2.d,den2.d_start,den2.initType,den2.m_flow_nominal,den2.m_flow_small,den2.p_start,den2.port_a.Xi_outflow[1],den2.port_a.h_outflow,den2.port_a.m_flow,den2.port_a.p,den2.port_b.Xi_outflow[1],den2.port_b.h_outflow,den2.port_b.m_flow,den2.port_b.p,den2.tau,der(den1.d),der(den2.d),der(ori.mExc),ori.A,ori.C,ori.CD,ori.V_flow,ori.allowFlowReversal,ori.dp,ori.dp_turbulent,ori.forceErrorControlOnFlow,ori.m,ori.mExc,ori.m_flow,ori.m_flow_nominal,ori.m_flow_small,ori.port_a.Xi_outflow[1],ori.port_a.h_outflow,ori.port_a.m_flow,ori.port_a.p,ori.port_b.Xi_outflow[1],ori.port_b.h_outflow,ori.port_b.m_flow,ori.port_b.p,ori.rho,ori.show_T,ori.useDefaultProperties,ori.v,preBou.k,preBou.y,ram.duration,ram.height,ram.offset,ram.startTime,ram.y,roo1.T,roo1.X[1],roo1.X[2],roo1.nPorts,roo1.p,roo1.p_in,roo1.ports[1].Xi_outflow[1],roo1.ports[1].h_outflow,roo1.ports[1].m_flow,roo1.ports[1].p,roo1.use_C_in,roo1.use_T_in,roo1.use_X_in,roo1.use_Xi_in,roo1.use_p_in,roo1.verifyInputs,roo2.T,roo2.X[1],roo2.X[2],roo2.nPorts,roo2.p,roo2.p_in,roo2.ports[1].Xi_outflow[1],roo2.ports[1].h_outflow,roo2.ports[1].m_flow,roo2.ports[1].p,roo2.use_C_in,roo2.use_T_in,roo2.use_X_in,roo2.use_Xi_in,roo2.use_p_in,roo2.verifyInputs,time