Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 198.4 kB / 16.79 MB, free: 6.809 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.384/1.384, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.2 MB / 0.6649 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 75.88 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6526/0.654, allocations: 140.4 MB / 0.9496 GB, free: 9.371 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002155/0.6562, allocations: 1.305 MB / 0.9509 GB, free: 8.34 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008598/0.6571, allocations: 0.5975 MB / 0.9515 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.471e-05/0.6571, allocations: 0 / 0.9515 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.6572, allocations: 0 / 0.9515 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.449e-05/0.6572, allocations: 5.5 kB / 0.9515 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004293/0.6576, allocations: 130 kB / 0.9516 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.957e-05/0.6577, allocations: 8.125 kB / 0.9516 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.256e-05/0.6577, allocations: 5.359 kB / 0.9516 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.6578, allocations: 2.75 kB / 0.9516 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.143e-05/0.6578, allocations: 10.67 kB / 0.9516 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.6578, allocations: 0 / 0.9516 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004292/0.6583, allocations: 339.6 kB / 0.9519 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.031e-05/0.6583, allocations: 5.359 kB / 0.9519 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.907e-05/0.6583, allocations: 1.375 kB / 0.9519 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.6585, allocations: 99.58 kB / 0.952 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.6585, allocations: 0 / 0.952 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.723e-06/0.6585, allocations: 1.562 kB / 0.952 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.6585, allocations: 0 / 0.952 GB, free: 7.52 MB / 0.7169 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.0003099/0.6588, allocations: 350.4 kB / 0.9524 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.6589, allocations: 10.81 kB / 0.9524 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.393e-05/0.6589, allocations: 4.922 kB / 0.9524 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.659, allocations: 165.9 kB / 0.9525 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.659, allocations: 384 / 0.9525 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.615e-06/0.659, allocations: 5.188 kB / 0.9525 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.768e-05/0.6591, allocations: 29.33 kB / 0.9526 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.6591, allocations: 1.219 kB / 0.9526 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.6591, allocations: 3.938 kB / 0.9526 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.6592, allocations: 0 / 0.9526 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.463e-05/0.6592, allocations: 7.141 kB / 0.9526 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.6593, allocations: 152.8 kB / 0.9527 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.78e-05/0.6594, allocations: 35.42 kB / 0.9528 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.705e-05/0.6594, allocations: 11.5 kB / 0.9528 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.6594, allocations: 1.25 kB / 0.9528 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.246e-05/0.6594, allocations: 31.91 kB / 0.9528 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.6594, allocations: 0 / 0.9528 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001342/0.6596, allocations: 43.36 kB / 0.9528 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.083e-05/0.6596, allocations: 55.34 kB / 0.9529 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.964e-05/0.6596, allocations: 100.8 kB / 0.953 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.34e-06/0.6597, allocations: 25.7 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.222e-05/0.6597, allocations: 81.64 kB / 0.9531 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.6597, allocations: 11.84 kB / 0.9531 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.258e-05/0.6597, allocations: 13.09 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.012e-05/0.6598, allocations: 310.8 kB / 0.9534 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.218e-05/0.6598, allocations: 10.94 kB / 0.9534 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.498e-06/0.6598, allocations: 5.25 kB / 0.9534 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.076e-05/0.6599, allocations: 18.47 kB / 0.9535 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.6599, allocations: 3.938 kB / 0.9535 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.051e-05/0.6599, allocations: 38.05 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.6599, allocations: 5 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.6599, allocations: 13.2 kB / 0.9535 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.66, allocations: 0 / 0.9535 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.6601, allocations: 12.17 kB / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002331/0.6604, allocations: 0.5822 MB / 0.9541 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.6604, allocations: 3.906 kB / 0.9541 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.6604, allocations: 1.312 kB / 0.9541 GB, free: 5.262 MB / 0.7169 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.625e-05/0.6605, allocations: 111.1 kB / 0.9542 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-06/0.6605, allocations: 1.531 kB / 0.9542 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.342e-05/0.6606, allocations: 48.75 kB / 0.9542 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.6606, allocations: 5.906 kB / 0.9543 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6606, allocations: 0 / 0.9543 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.6606, allocations: 0 / 0.9543 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.888e-05/0.6607, allocations: 155.7 kB / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.6607, allocations: 1.531 kB / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.765e-05/0.6607, allocations: 10.39 kB / 0.9544 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.6608, allocations: 1.312 kB / 0.9544 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-06/0.6608, allocations: 0 / 0.9544 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001643/0.6609, allocations: 0.5831 MB / 0.955 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6609, allocations: 3.938 kB / 0.955 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.254e-05/0.661, allocations: 66.81 kB / 0.9551 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.656e-05/0.661, allocations: 78.11 kB / 0.9551 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.061e-05/0.661, allocations: 0 / 0.9551 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.437e-05/0.6611, allocations: 1.062 kB / 0.9551 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.704e-05/0.6611, allocations: 5.344 kB / 0.9551 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-06/0.6611, allocations: 8.125 kB / 0.9551 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.703e-05/0.6611, allocations: 78.59 kB / 0.9552 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6611, allocations: 0 / 0.9552 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002006/0.6613, allocations: 6.594 kB / 0.9552 GB, free: 4.039 MB / 0.7169 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.0001385/0.6615, allocations: 110.7 kB / 0.9553 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001436/0.6616, allocations: 29.2 kB / 0.9554 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.6616, allocations: 160 / 0.9554 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.807e-05/0.6617, allocations: 23.11 kB / 0.9554 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.6619, allocations: 1.031 kB / 0.9554 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003026/0.6622, allocations: 138.4 kB / 0.9555 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.668e-05/0.6623, allocations: 0.672 MB / 0.9562 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.142e-05/0.6623, allocations: 12.78 kB / 0.9562 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.6623, allocations: 64 / 0.9562 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of Templates: time 0.002063/0.6644, allocations: 0.6859 MB / 0.9568 GB, free: 2.719 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches