Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.Orifice,fileNamePrefix="Buildings_9_Buildings_Airflow_Multizone_Examples_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.Orifice,fileNamePrefix="Buildings_9_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.0104/0.0104, allocations: 104.6 kB / 15.74 MB, free: 6.039 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.002173/0.002173, allocations: 195.9 kB / 16.68 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 2.386/2.386, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 4.497/4.497, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002502/0.002502, allocations: 67.89 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429/1.432, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.Examples.Orifice): time 0.3877/1.819, allocations: 173.8 MB / 1.257 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.006173/1.826, allocations: 2.294 MB / 1.259 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008611/1.827, allocations: 15.94 kB / 1.259 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001144/1.828, allocations: 238.3 kB / 1.26 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007841/1.836, allocations: 0.9294 MB / 1.261 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003396/1.839, allocations: 0.8248 MB / 1.261 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.006488/1.846, allocations: 0.9701 MB / 1.262 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/1.847, allocations: 335.4 kB / 1.263 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/1.848, allocations: 458.3 kB / 1.263 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006375/1.849, allocations: 314.7 kB / 1.263 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001002/1.849, allocations: 32 kB / 1.263 GB, free: 9.539 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002805/1.852, allocations: 0.9898 MB / 1.264 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002545/1.852, allocations: 147.5 kB / 1.265 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003926/1.853, allocations: 238.8 kB / 1.265 GB, free: 8.168 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002269/1.855, allocations: 0.9037 MB / 1.266 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/1.855, allocations: 4 kB / 1.266 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.395e-06/1.855, allocations: 0 / 1.266 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.233e-05/1.855, allocations: 0 / 1.266 GB, free: 7.258 MB / 0.9981 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.001873/1.857, allocations: 0.7983 MB / 1.266 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.229e-05/1.857, allocations: 12.03 kB / 1.266 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/1.857, allocations: 66.53 kB / 1.266 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002446/1.86, allocations: 183.1 kB / 1.267 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/1.861, allocations: 389.4 kB / 1.267 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.426e-05/1.861, allocations: 24.64 kB / 1.267 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-05/1.861, allocations: 36 kB / 1.267 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/1.862, allocations: 369.1 kB / 1.267 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/1.862, allocations: 3.906 kB / 1.267 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/1.862, allocations: 15.94 kB / 1.267 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.132e-05/1.862, allocations: 15.98 kB / 1.267 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008109/1.863, allocations: 262 kB / 1.268 GB, free: 4.988 MB / 0.9981 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.003025/1.866, allocations: 1.668 MB / 1.269 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006324/1.867, allocations: 206.5 kB / 1.27 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000344/1.867, allocations: 112.8 kB / 1.27 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001526/1.869, allocations: 0.8738 MB / 1.271 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/1.869, allocations: 34.56 kB / 1.271 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=23): time 3.647e-06/1.869, allocations: 0 / 1.271 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23): time 0.001528/1.87, allocations: 362.3 kB / 1.271 GB, free: 1.398 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/1.87, allocations: 55.41 kB / 1.271 GB, free: 1.332 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007234/1.871, allocations: 417.9 kB / 1.271 GB, free: 0.918 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.829e-05/1.871, allocations: 29.7 kB / 1.271 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/1.871, allocations: 216.4 kB / 1.272 GB, free: 0.668 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/1.871, allocations: 90.67 kB / 1.272 GB, free: 0.5781 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/1.872, allocations: 45.7 kB / 1.272 GB, free: 0.5273 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002062/1.872, allocations: 362.7 kB / 1.272 GB, free: 168 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/1.872, allocations: 71.95 kB / 1.272 GB, free: 96 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/1.872, allocations: 128 kB / 1.272 GB, free: 15.96 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/1.873, allocations: 210.9 kB / 1.272 GB, free: 15.74 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/1.873, allocations: 4 kB / 1.272 GB, free: 15.74 MB / 1.014 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009917/1.874, allocations: 284.8 kB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/1.874, allocations: 4 kB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/1.874, allocations: 3.984 kB / 1.273 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.638e-05/1.874, allocations: 4 kB / 1.273 GB, free: 15.44 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003772/1.875, allocations: 47.92 kB / 1.273 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/1.875, allocations: 3.969 kB / 1.273 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/1.875, allocations: 39.67 kB / 1.273 GB, free: 15.35 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/1.875, allocations: 12 kB / 1.273 GB, free: 15.34 MB / 1.014 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.0002841/1.876, allocations: 158.3 kB / 1.273 GB, free: 15.18 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/1.876, allocations: 43.53 kB / 1.273 GB, free: 15.13 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/1.877, allocations: 288.4 kB / 1.273 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/1.877, allocations: 4.094 kB / 1.273 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.877, allocations: 11.92 kB / 1.273 GB, free: 14.83 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/1.877, allocations: 0 / 1.273 GB, free: 14.83 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/1.879, allocations: 0.8135 MB / 1.274 GB, free: 13.94 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.879, allocations: 0 / 1.274 GB, free: 13.94 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003885/1.879, allocations: 47.91 kB / 1.274 GB, free: 13.89 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/1.879, allocations: 4 kB / 1.274 GB, free: 13.89 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/1.879, allocations: 8 kB / 1.274 GB, free: 13.88 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/1.879, allocations: 0 / 1.274 GB, free: 13.88 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/1.879, allocations: 4 kB / 1.274 GB, free: 13.88 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/1.881, allocations: 0.5038 MB / 1.275 GB, free: 13.34 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/1.881, allocations: 144.6 kB / 1.275 GB, free: 13.18 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.267e-05/1.881, allocations: 11.98 kB / 1.275 GB, free: 13.17 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004412/1.881, allocations: 15.98 kB / 1.275 GB, free: 13.15 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/1.882, allocations: 15.92 kB / 1.275 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.315e-05/1.882, allocations: 12 kB / 1.275 GB, free: 13.12 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005193/1.882, allocations: 299.1 kB / 1.275 GB, free: 12.83 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.045e-06/1.882, allocations: 0 / 1.275 GB, free: 12.83 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000794/1.883, allocations: 131.8 kB / 1.275 GB, free: 12.7 MB / 1.014 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.002227/1.885, allocations: 1.133 MB / 1.276 GB, free: 11.54 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0008688/1.886, allocations: 211.7 kB / 1.277 GB, free: 11.33 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/1.886, allocations: 0 / 1.277 GB, free: 11.33 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003601/1.886, allocations: 111.8 kB / 1.277 GB, free: 11.22 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/1.888, allocations: 227.6 kB / 1.277 GB, free: 11 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008126/1.897, allocations: 3.682 MB / 1.281 GB, free: 7.18 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005921/1.897, allocations: 0.8233 MB / 1.281 GB, free: 6.328 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0005079/1.898, allocations: 83.34 kB / 1.281 GB, free: 6.246 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/1.898, allocations: 143.3 kB / 1.282 GB, free: 6.105 MB / 1.014 GB Notification: Performance of SimCode: time 8.82e-07/1.898, allocations: 0 / 1.282 GB, free: 6.105 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2008/2.099, allocations: 12.28 MB / 1.294 GB, free: 10.05 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.3/19.39, allocations: 13.89 kB / 1.294 GB, free: 10.04 MB / 1.029 GB (rm -f Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; mkfifo Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; head -c 1048576 < Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe >> ../files/Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice_res.mat --tempDir=temp_Buildings_9_Buildings_Airflow_Multizone_Examples_Orifice_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Airflow_Multizone_Examples_Orifice.fmu > Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Airflow_Multizone_Examples_Orifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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