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.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: 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.01079/0.01079, allocations: 102.5 kB / 15.73 MB, free: 5.508 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.001952/0.001952, allocations: 195.7 kB / 16.67 MB, free: 5.438 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.45/2.45, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 70.3 kB / 0.9508 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2845, allocations: 140.4 MB / 1.088 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.003039/0.2876, allocations: 1.257 MB / 1.089 GB, free: 360 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2887, allocations: 0.5855 MB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.996e-05/0.2888, allocations: 0 / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.717e-05/0.2888, allocations: 0 / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.034e-05/0.2889, allocations: 3.938 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006505/0.2895, allocations: 146.8 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.097e-05/0.2896, allocations: 8 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.455e-05/0.2897, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.134e-05/0.2897, allocations: 11.98 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.515e-05/0.2897, allocations: 7.922 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.2898, allocations: 3.938 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004992/0.2903, allocations: 339.4 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.224e-05/0.2903, allocations: 0 / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.2903, allocations: 7.984 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.2906, allocations: 139.5 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2906, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2906, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.2906, allocations: 4 kB / 1.09 GB, free: 15.11 MB / 0.8575 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.0004499/0.2911, allocations: 355.1 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.2911, allocations: 8.031 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/0.2912, allocations: 0.9375 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.2913, allocations: 168.3 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.2913, allocations: 12.31 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.2913, allocations: 384 / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.969e-05/0.2915, allocations: 34.27 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.2915, allocations: 192 / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.2915, allocations: 7.875 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2915, allocations: 4 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.754e-05/0.2915, allocations: 4 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001708/0.2917, allocations: 149.7 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.422e-05/0.2918, allocations: 26.55 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.132e-05/0.2918, allocations: 8.859 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.2918, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.2919, allocations: 42.61 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.2919, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001429/0.292, allocations: 37.64 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.2921, allocations: 51.41 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.499e-05/0.2921, allocations: 97.86 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.2921, allocations: 25.7 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.631e-05/0.2922, allocations: 84.12 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.874e-05/0.2922, allocations: 4.203 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.2922, allocations: 25.66 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.88e-05/0.2924, allocations: 310.8 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.35e-05/0.2924, allocations: 4 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-06/0.2924, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.089e-05/0.2924, allocations: 16.86 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2924, allocations: 0 / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.299e-05/0.2925, allocations: 41.62 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.2925, allocations: 8.094 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2925, allocations: 3.938 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.2925, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.2927, allocations: 11.98 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003398/0.2931, allocations: 0.5821 MB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.316e-05/0.2931, allocations: 8.031 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.2931, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 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 7.548e-05/0.2932, allocations: 115.8 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.062e-05/0.2932, allocations: 3.953 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.2933, allocations: 48.75 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.2933, allocations: 4 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2933, allocations: 0 / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2933, allocations: 0 / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.541e-05/0.2934, allocations: 157.6 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2934, allocations: 3.938 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.825e-05/0.2935, allocations: 16.02 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2935, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.2935, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002827/0.2938, allocations: 0.5782 MB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2938, allocations: 3.938 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.874e-05/0.2939, allocations: 73.19 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.402e-05/0.294, allocations: 81.11 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.294, allocations: 4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.294, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.294, allocations: 7.922 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.294, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.2e-05/0.2941, allocations: 79.28 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.2941, allocations: 0 / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001993/0.2943, allocations: 11.94 kB / 1.094 GB, free: 11.46 MB / 0.8575 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.0001608/0.2945, allocations: 119.3 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001633/0.2946, allocations: 15.98 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2946, allocations: 0 / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.736e-05/0.2947, allocations: 19.92 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.2949, allocations: 5.719 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003331/0.2952, allocations: 102.3 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.2955, allocations: 0.6729 MB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.614e-05/0.2955, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.384e-05/0.2955, allocations: 11.38 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.2955, allocations: 0 / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of Templates: time 0.002584/0.2981, allocations: 458.8 kB / 1.095 GB, free: 10.01 MB / 0.8575 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/jenkins/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