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.008403/0.008403, allocations: 101.1 kB / 15.73 MB, free: 6.043 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.001619/0.001619, allocations: 183.8 kB / 16.67 MB, free: 5.977 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.608/1.608, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.946/2.946, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 63.91 kB / 1.054 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4052/0.4067, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.Examples.Orifice): time 1.22/1.627, allocations: 173.8 MB / 1.377 GB, free: 12.41 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.006604/1.634, allocations: 2.3 MB / 1.379 GB, free: 10.78 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/1.635, allocations: 16.59 kB / 1.379 GB, free: 10.77 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001546/1.637, allocations: 233.5 kB / 1.379 GB, free: 10.62 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.004288/1.641, allocations: 0.9296 MB / 1.38 GB, free: 9.949 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.003487/1.645, allocations: 0.8245 MB / 1.381 GB, free: 9.348 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.002314/1.647, allocations: 0.964 MB / 1.382 GB, free: 8.797 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009177/1.648, allocations: 333 kB / 1.382 GB, free: 8.594 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001496/1.649, allocations: 453.8 kB / 1.383 GB, free: 8.348 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005761/1.65, allocations: 319.7 kB / 1.383 GB, free: 8.156 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 8.426e-05/1.65, allocations: 37.12 kB / 1.383 GB, free: 8.152 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002583/1.653, allocations: 0.9894 MB / 1.384 GB, free: 7.598 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0002532/1.653, allocations: 147.5 kB / 1.384 GB, free: 7.496 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0003757/1.653, allocations: 243.4 kB / 1.385 GB, free: 7.344 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001937/1.655, allocations: 0.8964 MB / 1.385 GB, free: 6.805 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/1.655, allocations: 0 / 1.385 GB, free: 6.805 MB / 1.076 GB Notification: Performance of FrontEnd: time 3.156e-06/1.655, allocations: 0 / 1.385 GB, free: 6.805 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.036e-05/1.655, allocations: 1.188 kB / 1.385 GB, free: 6.805 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.001562/1.657, allocations: 0.8126 MB / 1.386 GB, free: 6.113 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 6.361e-05/1.657, allocations: 10.97 kB / 1.386 GB, free: 6.113 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/1.657, allocations: 68.06 kB / 1.386 GB, free: 6.047 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001363/1.658, allocations: 180.1 kB / 1.386 GB, free: 5.961 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008113/1.659, allocations: 391.3 kB / 1.387 GB, free: 5.617 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/1.659, allocations: 20.53 kB / 1.387 GB, free: 5.609 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.779e-05/1.659, allocations: 33.19 kB / 1.387 GB, free: 5.598 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/1.66, allocations: 371.5 kB / 1.387 GB, free: 5.344 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/1.66, allocations: 4.734 kB / 1.387 GB, free: 5.34 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.023e-05/1.66, allocations: 12.16 kB / 1.387 GB, free: 5.332 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/1.66, allocations: 17.69 kB / 1.387 GB, free: 5.324 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005857/1.661, allocations: 259.8 kB / 1.388 GB, free: 5.207 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.0024/1.663, allocations: 1.67 MB / 1.389 GB, free: 3.664 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005238/1.664, allocations: 204.7 kB / 1.389 GB, free: 3.559 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/1.664, allocations: 117 kB / 1.389 GB, free: 3.5 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001276/1.665, allocations: 0.8693 MB / 1.39 GB, free: 2.52 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.672e-05/1.666, allocations: 36.97 kB / 1.39 GB, free: 2.477 MB / 1.076 GB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/1.666, allocations: 1.344 kB / 1.39 GB, free: 2.477 MB / 1.076 GB Notification: Performance of matching and sorting (n=23): time 0.001136/1.667, allocations: 357.2 kB / 1.391 GB, free: 2.301 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/1.667, allocations: 61.66 kB / 1.391 GB, free: 2.23 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006692/1.667, allocations: 420 kB / 1.391 GB, free: 1.977 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/1.668, allocations: 30.98 kB / 1.391 GB, free: 1.941 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002693/1.668, allocations: 213.5 kB / 1.391 GB, free: 1.746 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/1.668, allocations: 85.05 kB / 1.391 GB, free: 1.672 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/1.668, allocations: 49.39 kB / 1.392 GB, free: 1.637 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0002583/1.668, allocations: 353.2 kB / 1.392 GB, free: 1.293 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/1.669, allocations: 82.55 kB / 1.392 GB, free: 1.254 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/1.669, allocations: 121.8 kB / 1.392 GB, free: 1.176 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005517/1.669, allocations: 208.5 kB / 1.392 GB, free: 1.055 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/1.669, allocations: 1.25 kB / 1.392 GB, free: 1.055 MB / 1.076 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007196/1.67, allocations: 287 kB / 1.393 GB, free: 0.9023 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/1.67, allocations: 10.33 kB / 1.393 GB, free: 0.8984 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/1.67, allocations: 1.156 kB / 1.393 GB, free: 0.8984 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/1.67, allocations: 2.281 kB / 1.393 GB, free: 0.8984 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/1.671, allocations: 47.86 kB / 1.393 GB, free: 0.8906 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/1.671, allocations: 5.203 kB / 1.393 GB, free: 0.8867 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/1.671, allocations: 34.09 kB / 1.393 GB, free: 0.8633 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/1.671, allocations: 12.11 kB / 1.393 GB, free: 0.8594 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.0002165/1.671, allocations: 169.3 kB / 1.393 GB, free: 0.707 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.954e-05/1.671, allocations: 39.44 kB / 1.393 GB, free: 0.6875 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007012/1.672, allocations: 288.6 kB / 1.393 GB, free: 0.5156 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/1.672, allocations: 2.219 kB / 1.393 GB, free: 0.5156 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/1.672, allocations: 1.125 kB / 1.393 GB, free: 0.5156 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/1.672, allocations: 5.875 kB / 1.393 GB, free: 0.5117 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/1.674, allocations: 0.8112 MB / 1.394 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/1.674, allocations: 6.281 kB / 1.394 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/1.674, allocations: 42.59 kB / 1.394 GB, free: 15.85 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/1.674, allocations: 3.156 kB / 1.394 GB, free: 15.85 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/1.674, allocations: 7.969 kB / 1.394 GB, free: 15.84 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/1.674, allocations: 10.66 kB / 1.394 GB, free: 15.84 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/1.674, allocations: 3.734 kB / 1.394 GB, free: 15.84 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009549/1.675, allocations: 0.5044 MB / 1.394 GB, free: 15.48 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/1.675, allocations: 145.7 kB / 1.395 GB, free: 15.34 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/1.675, allocations: 2.562 kB / 1.395 GB, free: 15.34 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/1.675, allocations: 24.36 kB / 1.395 GB, free: 15.32 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.217e-05/1.676, allocations: 16.86 kB / 1.395 GB, free: 15.32 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/1.676, allocations: 6.469 kB / 1.395 GB, free: 15.32 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0004328/1.676, allocations: 308.1 kB / 1.395 GB, free: 15.13 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.4e-07/1.676, allocations: 0 / 1.395 GB, free: 15.13 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0006612/1.677, allocations: 117.3 kB / 1.395 GB, free: 15.11 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.001766/1.678, allocations: 1.136 MB / 1.396 GB, free: 14.18 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0005701/1.679, allocations: 211 kB / 1.396 GB, free: 14.09 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/1.679, allocations: 1.219 kB / 1.396 GB, free: 14.09 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0002692/1.679, allocations: 113.5 kB / 1.396 GB, free: 14.04 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/1.681, allocations: 231.4 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.005944/1.686, allocations: 3.685 MB / 1.4 GB, free: 11.36 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/1.687, allocations: 0.8266 MB / 1.401 GB, free: 10.6 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0003617/1.687, allocations: 90.11 kB / 1.401 GB, free: 10.56 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/1.688, allocations: 135.4 kB / 1.401 GB, free: 10.45 MB / 1.092 GB Notification: Performance of SimCode: time 6.81e-07/1.688, allocations: 2.219 kB / 1.401 GB, free: 10.45 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03963/1.727, allocations: 12.28 MB / 1.413 GB, free: 3.613 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.42/10.15, allocations: 13.19 kB / 1.413 GB, free: 3.602 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