Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Airflow_Multizone_Examples_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.Orifice,fileNamePrefix="Buildings_10_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.007309/0.007309, allocations: 102.2 kB / 15.73 MB, free: 6.492 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.001695/0.001695, allocations: 194.9 kB / 16.68 MB, free: 6.375 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.89 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2597, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.Examples.Orifice): time 0.748/1.008, allocations: 173.8 MB / 1.336 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003786/1.012, allocations: 2.302 MB / 1.338 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004046/1.012, allocations: 13.62 kB / 1.338 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0007736/1.013, allocations: 233 kB / 1.338 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.002275/1.015, allocations: 0.9719 MB / 1.339 GB, free: 12.87 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00215/1.017, allocations: 0.8403 MB / 1.34 GB, free: 12.45 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001394/1.019, allocations: 0.9714 MB / 1.341 GB, free: 12.01 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000549/1.019, allocations: 327.4 kB / 1.341 GB, free: 11.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007423/1.02, allocations: 468.9 kB / 1.342 GB, free: 11.68 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004094/1.02, allocations: 314.8 kB / 1.342 GB, free: 11.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.256e-05/1.02, allocations: 36.38 kB / 1.342 GB, free: 11.54 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001948/1.022, allocations: 0.9944 MB / 1.343 GB, free: 11.14 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001879/1.023, allocations: 143.5 kB / 1.343 GB, free: 11.08 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002607/1.023, allocations: 240.3 kB / 1.344 GB, free: 10.94 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001285/1.024, allocations: 0.907 MB / 1.344 GB, free: 10.62 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/1.024, allocations: 1.094 kB / 1.344 GB, free: 10.62 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.323e-06/1.024, allocations: 0 / 1.344 GB, free: 10.62 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.175e-06/1.024, allocations: 0 / 1.344 GB, free: 10.62 MB / 1.029 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.001135/1.025, allocations: 0.8046 MB / 1.345 GB, free: 10 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/1.025, allocations: 9.5 kB / 1.345 GB, free: 10 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.777e-05/1.025, allocations: 67.66 kB / 1.345 GB, free: 9.941 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/1.027, allocations: 180.4 kB / 1.345 GB, free: 9.898 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005592/1.027, allocations: 391.2 kB / 1.346 GB, free: 9.594 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/1.027, allocations: 28.56 kB / 1.346 GB, free: 9.578 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/1.027, allocations: 28.59 kB / 1.346 GB, free: 9.57 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005719/1.028, allocations: 367.4 kB / 1.346 GB, free: 9.383 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/1.028, allocations: 7.922 kB / 1.346 GB, free: 9.375 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/1.028, allocations: 15.84 kB / 1.346 GB, free: 9.363 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/1.028, allocations: 13.94 kB / 1.346 GB, free: 9.359 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/1.028, allocations: 255 kB / 1.346 GB, free: 9.289 MB / 1.029 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.001596/1.03, allocations: 1.673 MB / 1.348 GB, free: 7.926 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003629/1.03, allocations: 207.5 kB / 1.348 GB, free: 7.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/1.031, allocations: 118.5 kB / 1.348 GB, free: 7.797 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008739/1.032, allocations: 0.8708 MB / 1.349 GB, free: 6.848 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/1.032, allocations: 36.75 kB / 1.349 GB, free: 6.805 MB / 1.029 GB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/1.032, allocations: 0 / 1.349 GB, free: 6.805 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.0008293/1.032, allocations: 357.1 kB / 1.35 GB, free: 6.672 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/1.032, allocations: 57.69 kB / 1.35 GB, free: 6.605 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004117/1.033, allocations: 422.9 kB / 1.35 GB, free: 6.406 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/1.033, allocations: 26.92 kB / 1.35 GB, free: 6.375 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/1.033, allocations: 211.4 kB / 1.35 GB, free: 6.199 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/1.033, allocations: 87.77 kB / 1.35 GB, free: 6.129 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.12e-05/1.033, allocations: 51.05 kB / 1.35 GB, free: 6.098 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001121/1.033, allocations: 353.4 kB / 1.351 GB, free: 5.766 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/1.033, allocations: 75.92 kB / 1.351 GB, free: 5.746 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/1.034, allocations: 129.8 kB / 1.351 GB, free: 5.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003668/1.034, allocations: 203 kB / 1.351 GB, free: 5.586 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.034, allocations: 3.938 kB / 1.351 GB, free: 5.582 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000488/1.035, allocations: 290 kB / 1.351 GB, free: 5.457 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/1.035, allocations: 6.656 kB / 1.352 GB, free: 5.457 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.035, allocations: 5.391 kB / 1.352 GB, free: 5.453 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/1.035, allocations: 2.719 kB / 1.352 GB, free: 5.453 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/1.035, allocations: 57.45 kB / 1.352 GB, free: 5.441 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/1.035, allocations: 4.188 kB / 1.352 GB, free: 5.441 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/1.035, allocations: 36.47 kB / 1.352 GB, free: 5.418 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/1.035, allocations: 12.25 kB / 1.352 GB, free: 5.414 MB / 1.029 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.0001481/1.035, allocations: 164.1 kB / 1.352 GB, free: 5.273 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/1.035, allocations: 39.91 kB / 1.352 GB, free: 5.254 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005268/1.036, allocations: 282.5 kB / 1.352 GB, free: 5.137 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/1.036, allocations: 7.25 kB / 1.352 GB, free: 5.133 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/1.036, allocations: 0 / 1.352 GB, free: 5.133 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/1.036, allocations: 3.938 kB / 1.352 GB, free: 5.129 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/1.037, allocations: 0.811 MB / 1.353 GB, free: 4.602 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/1.037, allocations: 2.344 kB / 1.353 GB, free: 4.602 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/1.037, allocations: 52.69 kB / 1.353 GB, free: 4.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/1.037, allocations: 3.125 kB / 1.353 GB, free: 4.59 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/1.037, allocations: 6.922 kB / 1.353 GB, free: 4.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/1.037, allocations: 2.531 kB / 1.353 GB, free: 4.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.037, allocations: 2.281 kB / 1.353 GB, free: 4.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007064/1.038, allocations: 0.5074 MB / 1.353 GB, free: 4.273 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/1.038, allocations: 143.9 kB / 1.354 GB, free: 4.145 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.361e-05/1.038, allocations: 9.75 kB / 1.354 GB, free: 4.141 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/1.038, allocations: 18.38 kB / 1.354 GB, free: 4.133 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/1.039, allocations: 15.44 kB / 1.354 GB, free: 4.133 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/1.039, allocations: 15.66 kB / 1.354 GB, free: 4.125 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002878/1.039, allocations: 304.7 kB / 1.354 GB, free: 3.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.7e-07/1.039, allocations: 0 / 1.354 GB, free: 3.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004432/1.039, allocations: 113.8 kB / 1.354 GB, free: 3.961 MB / 1.029 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.001214/1.041, allocations: 1.137 MB / 1.355 GB, free: 3.09 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004394/1.041, allocations: 212.3 kB / 1.355 GB, free: 3.027 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.041, allocations: 1.094 kB / 1.355 GB, free: 3.027 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002091/1.041, allocations: 111.3 kB / 1.355 GB, free: 2.996 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009877/1.042, allocations: 227.2 kB / 1.356 GB, free: 2.926 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004323/1.047, allocations: 3.67 MB / 1.359 GB, free: 0.6875 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/1.047, allocations: 0.8259 MB / 1.36 GB, free: 15.98 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002665/1.047, allocations: 93.12 kB / 1.36 GB, free: 15.95 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/1.047, allocations: 144.6 kB / 1.36 GB, free: 15.85 MB / 1.045 GB Notification: Performance of SimCode: time 5.71e-07/1.047, allocations: 0 / 1.36 GB, free: 15.85 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03232/1.08, allocations: 12.09 MB / 1.372 GB, free: 10.57 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/8.779, allocations: 14.84 kB / 1.372 GB, free: 10.57 MB / 1.045 GB (rm -f Buildings_10_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; mkfifo Buildings_10_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; head -c 1048576 < Buildings_10_Buildings.Airflow.Multizone.Examples.Orifice.pipe >> ../files/Buildings_10_Buildings.Airflow.Multizone.Examples.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Airflow.Multizone.Examples.Orifice_res.mat --tempDir=temp_Buildings_10_Buildings_Airflow_Multizone_Examples_Orifice_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Airflow_Multizone_Examples_Orifice.fmu > Buildings_10_Buildings.Airflow.Multizone.Examples.Orifice.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Airflow.Multizone.Examples.Orifice_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Airflow_Multizone_Examples_Orifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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