Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.00782/0.00782, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.002151/0.002151, allocations: 193.8 kB / 16.67 MB, free: 5.93 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.263/1.263, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.488/2.488, allocations: 482.6 MB / 0.755 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 68.72 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2506, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001863/0.2525, allocations: 1.265 MB / 1.243 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.2534, allocations: 0.5817 MB / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.972e-05/0.2534, allocations: 3.938 kB / 1.244 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.244e-05/0.2534, allocations: 0 / 1.244 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.831e-05/0.2535, allocations: 3.938 kB / 1.244 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.2539, allocations: 147.4 kB / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 3.929e-05/0.254, allocations: 8 kB / 1.244 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.244e-05/0.254, allocations: 4 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.314e-05/0.254, allocations: 0 / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.732e-05/0.2541, allocations: 7.984 kB / 1.244 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.2541, allocations: 0 / 1.244 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004688/0.2545, allocations: 343.3 kB / 1.244 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.2546, allocations: 7.938 kB / 1.244 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.627e-05/0.2546, allocations: 4 kB / 1.244 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.2548, allocations: 139.8 kB / 1.244 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2548, allocations: 0 / 1.244 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2548, allocations: 7.938 kB / 1.244 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.2548, allocations: 0 / 1.244 GB, free: 6.422 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003444/0.2552, allocations: 355.1 kB / 1.245 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2552, allocations: 12.03 kB / 1.245 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.669e-05/0.2552, allocations: 30.75 kB / 1.245 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.656e-05/0.2553, allocations: 0.9375 kB / 1.245 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.2554, allocations: 164.4 kB / 1.245 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-06/0.2554, allocations: 384 / 1.245 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-06/0.2554, allocations: 8.312 kB / 1.245 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.91e-05/0.2555, allocations: 34.27 kB / 1.245 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.2555, allocations: 3.938 kB / 1.245 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-06/0.2555, allocations: 4 kB / 1.245 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-06/0.2555, allocations: 0 / 1.245 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.875e-05/0.2555, allocations: 0 / 1.245 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001407/0.2557, allocations: 153.7 kB / 1.245 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.053e-05/0.2557, allocations: 18.61 kB / 1.245 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.867e-05/0.2557, allocations: 20.86 kB / 1.245 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.2558, allocations: 3.984 kB / 1.245 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.2558, allocations: 34.55 kB / 1.245 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.2558, allocations: 4 kB / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001077/0.2559, allocations: 37.64 kB / 1.245 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.256, allocations: 55.41 kB / 1.245 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.181e-05/0.256, allocations: 93.98 kB / 1.245 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.256, allocations: 29.83 kB / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.025e-05/0.2561, allocations: 84.12 kB / 1.245 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.2561, allocations: 3.953 kB / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.2561, allocations: 21.66 kB / 1.245 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.2562, allocations: 310.8 kB / 1.246 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.206e-05/0.2563, allocations: 7.938 kB / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-06/0.2563, allocations: 0 / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.891e-05/0.2563, allocations: 16.92 kB / 1.246 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2563, allocations: 0 / 1.246 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.576e-05/0.2564, allocations: 41.69 kB / 1.246 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.2564, allocations: 10.12 kB / 1.246 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-06/0.2564, allocations: 0 / 1.246 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2564, allocations: 0 / 1.246 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.2565, allocations: 11.98 kB / 1.246 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003381/0.2569, allocations: 0.5938 MB / 1.246 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.423e-05/0.2569, allocations: 0 / 1.246 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.2569, allocations: 4.031 kB / 1.246 GB, free: 4.027 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.257, allocations: 110.3 kB / 1.246 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-06/0.257, allocations: 0 / 1.246 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.38e-05/0.2571, allocations: 52.69 kB / 1.247 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.2571, allocations: 0 / 1.247 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2571, allocations: 128 / 1.247 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.2571, allocations: 8 kB / 1.247 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.704e-05/0.2572, allocations: 153.6 kB / 1.247 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.2572, allocations: 0 / 1.247 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-05/0.2573, allocations: 8 kB / 1.247 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.2573, allocations: 4 kB / 1.247 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.2573, allocations: 7.984 kB / 1.247 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002963/0.2576, allocations: 0.5821 MB / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2576, allocations: 8.031 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.352e-05/0.2577, allocations: 65.06 kB / 1.247 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.879e-05/0.2577, allocations: 89.02 kB / 1.247 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.177e-06/0.2577, allocations: 4 kB / 1.247 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.2577, allocations: 0 / 1.247 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.2578, allocations: 3.938 kB / 1.247 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.2578, allocations: 0 / 1.247 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.602e-05/0.2578, allocations: 83.31 kB / 1.248 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.2578, allocations: 0 / 1.248 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001715/0.258, allocations: 8 kB / 1.248 GB, free: 2.73 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003533/0.2583, allocations: 0.6124 MB / 1.248 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000131/0.2585, allocations: 24.05 kB / 1.248 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2585, allocations: 0 / 1.248 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.978e-05/0.2586, allocations: 19.98 kB / 1.248 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001135/0.2587, allocations: 3.938 kB / 1.248 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003339/0.259, allocations: 135.6 kB / 1.248 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.2593, allocations: 0.6691 MB / 1.249 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.337e-05/0.2593, allocations: 8 kB / 1.249 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.2593, allocations: 10.11 kB / 1.249 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.2593, allocations: 3.938 kB / 1.249 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.2/7.459, allocations: 1.391 MB / 1.25 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.48/28.94, allocations: 14.41 kB / 1.25 GB, free: 15.97 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches