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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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_latest_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_latest_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.001401/0.001401, allocations: 103.4 kB / 16.35 MB, free: 6.289 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.00157/0.00157, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.458/2.458, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 69.34 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2795, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002331/0.2819, allocations: 1.253 MB / 1.028 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008726/0.2828, allocations: 0.59 MB / 1.029 GB, free: 220 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.901e-05/0.2828, allocations: 0 / 1.029 GB, free: 220 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.816e-05/0.2828, allocations: 0 / 1.029 GB, free: 220 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.042e-05/0.2829, allocations: 7.938 kB / 1.029 GB, free: 212 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.2834, allocations: 139.5 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.041e-05/0.2834, allocations: 7.938 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.107e-05/0.2835, allocations: 0 / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.187e-05/0.2835, allocations: 11.94 kB / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.152e-05/0.2836, allocations: 7.969 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.2836, allocations: 0 / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004739/0.2841, allocations: 347.3 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.2841, allocations: 0 / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.163e-05/0.2841, allocations: 15.92 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.2844, allocations: 135.6 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2844, allocations: 0 / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2844, allocations: 4 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.2844, allocations: 0 / 1.029 GB, free: 15.55 MB / 0.8106 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.0003602/0.2848, allocations: 355.5 kB / 1.03 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.2848, allocations: 8.031 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.2848, allocations: 4.938 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.285, allocations: 168.4 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.285, allocations: 384 / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.285, allocations: 384 / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.2851, allocations: 46.12 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.2851, allocations: 192 / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.2851, allocations: 3.938 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.2851, allocations: 4 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.385e-05/0.2852, allocations: 4 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.2853, allocations: 149.7 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.622e-05/0.2854, allocations: 22.61 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.708e-05/0.2854, allocations: 4.859 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.2854, allocations: 4.062 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.2854, allocations: 46.48 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.2854, allocations: 0 / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001271/0.2856, allocations: 41.55 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.2856, allocations: 51.41 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.329e-05/0.2857, allocations: 97.86 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.2857, allocations: 25.7 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.044e-05/0.2857, allocations: 80.14 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.2858, allocations: 7.984 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.2858, allocations: 17.97 kB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.607e-05/0.2859, allocations: 310.8 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.2859, allocations: 4 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.107e-06/0.2859, allocations: 3.938 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.121e-05/0.286, allocations: 16.86 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.286, allocations: 0 / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.778e-05/0.286, allocations: 41.59 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.286, allocations: 4.094 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2861, allocations: 7.938 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.2861, allocations: 0 / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.2862, allocations: 11.98 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003205/0.2865, allocations: 0.586 MB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.2866, allocations: 3.938 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.2866, allocations: 4 kB / 1.031 GB, free: 13.2 MB / 0.8106 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.468e-05/0.2866, allocations: 113.9 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-06/0.2867, allocations: 4 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.46e-05/0.2868, allocations: 44.81 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.2868, allocations: 0 / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2868, allocations: 0 / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2868, allocations: 3.938 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.825e-05/0.2869, allocations: 153.6 kB / 1.032 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2869, allocations: 0 / 1.032 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-05/0.287, allocations: 11.97 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.287, allocations: 4 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.287, allocations: 7.984 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002555/0.2872, allocations: 0.5782 MB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.2872, allocations: 7.938 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.363e-05/0.2873, allocations: 73.11 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.87e-05/0.2874, allocations: 81.09 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.588e-06/0.2874, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.4e-05/0.2874, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.156e-05/0.2874, allocations: 3.938 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-06/0.2874, allocations: 4 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.921e-05/0.2874, allocations: 75.28 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2874, allocations: 0 / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001857/0.2876, allocations: 12 kB / 1.032 GB, free: 11.9 MB / 0.8106 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.0001363/0.2878, allocations: 119.3 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001453/0.2879, allocations: 15.98 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2879, allocations: 0 / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.492e-05/0.288, allocations: 19.92 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.2882, allocations: 0 / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002506/0.2884, allocations: 119.5 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.2886, allocations: 0.669 MB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.275e-05/0.2887, allocations: 0 / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.123e-05/0.2887, allocations: 11.44 kB / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of SimCode: time 2.535e-06/0.2887, allocations: 0 / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of Templates: time 0.00222/0.2909, allocations: 471.8 kB / 1.034 GB, free: 10.47 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (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 & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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