Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.944/1.944, allocations: 390.4 MB / 397.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 189.2 kB / 490.8 MB, free: 1.957 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 221.3 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008723/0.0008727, allocations: 92.67 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.013e-06/7.044e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2387, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5977/0.8364, allocations: 149.8 MB / 1.358 GB, free: 17.42 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.8367, allocations: 76.36 kB / 1.358 GB, free: 17.42 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.009633/0.8463, allocations: 3.135 MB / 1.361 GB, free: 17.23 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.8463, allocations: 1.188 kB / 1.361 GB, free: 17.23 MB / 0.823 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.0002961/0.8466, allocations: 336.7 kB / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.8467, allocations: 9.547 kB / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.8467, allocations: 1.125 kB / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.791e-05/0.8468, allocations: 168.9 kB / 1.361 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.8468, allocations: 0 / 1.361 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.8468, allocations: 1.734 kB / 1.361 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.484e-05/0.8469, allocations: 3 kB / 1.361 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.158e-05/0.8469, allocations: 33.73 kB / 1.362 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.847, allocations: 1 kB / 1.362 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.847, allocations: 0 / 1.362 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.847, allocations: 0.9688 kB / 1.362 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.575e-05/0.8471, allocations: 130.4 kB / 1.362 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.852e-05/0.8471, allocations: 31.48 kB / 1.362 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.813e-05/0.8472, allocations: 11.5 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.8472, allocations: 1.031 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.8472, allocations: 32.36 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.8472, allocations: 0 / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001177/0.8473, allocations: 37.69 kB / 1.362 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.431e-05/0.8474, allocations: 55.44 kB / 1.362 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.417e-05/0.8474, allocations: 87.78 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.692e-06/0.8474, allocations: 26.67 kB / 1.362 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.38e-05/0.8475, allocations: 84.42 kB / 1.362 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.8475, allocations: 6.766 kB / 1.362 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.8475, allocations: 1.125 kB / 1.362 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.876e-05/0.8476, allocations: 311.6 kB / 1.362 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-06/0.8476, allocations: 1.719 kB / 1.362 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.304e-06/0.8476, allocations: 6.75 kB / 1.362 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.427e-05/0.8476, allocations: 8.953 kB / 1.362 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.8476, allocations: 1.281 kB / 1.362 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.216e-05/0.8477, allocations: 42.5 kB / 1.362 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.8477, allocations: 5.547 kB / 1.362 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.8477, allocations: 0 / 1.362 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.8477, allocations: 4.906 kB / 1.362 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.8479, allocations: 14.47 kB / 1.362 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003283/0.8482, allocations: 0.5906 MB / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.866e-05/0.8482, allocations: 0 / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-06/0.8483, allocations: 1.219 kB / 1.363 GB, free: 31.13 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 5.966e-05/0.8483, allocations: 107 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-06/0.8483, allocations: 1.312 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.871e-05/0.8484, allocations: 51.64 kB / 1.363 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.8484, allocations: 0 / 1.363 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.8485, allocations: 1.703 kB / 1.363 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.8485, allocations: 0 / 1.363 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.575e-05/0.8485, allocations: 131.3 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.8485, allocations: 0 / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.769e-05/0.8486, allocations: 14.5 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.8486, allocations: 0 / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.8486, allocations: 1.375 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002863/0.8489, allocations: 0.5907 MB / 1.364 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.8489, allocations: 0 / 1.364 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.072e-05/0.849, allocations: 68.42 kB / 1.364 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.231e-05/0.849, allocations: 78.19 kB / 1.364 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.8491, allocations: 1.188 kB / 1.364 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.524e-05/0.8491, allocations: 4.828 kB / 1.364 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.792e-05/0.8491, allocations: 2.172 kB / 1.364 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.8491, allocations: 1.312 kB / 1.364 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.972e-05/0.8492, allocations: 76.66 kB / 1.364 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001997/0.8494, allocations: 17.39 kB / 1.364 GB, free: 29.98 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000158/0.8495, allocations: 116.4 kB / 1.364 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001586/0.8497, allocations: 23.16 kB / 1.364 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8497, allocations: 1.062 kB / 1.364 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.195e-05/0.8498, allocations: 21.34 kB / 1.364 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.157e-05/0.8499, allocations: 1.062 kB / 1.364 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001357/0.85, allocations: 51.19 kB / 1.364 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.8502, allocations: 0.6844 MB / 1.365 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.8503, allocations: 1.031 kB / 1.365 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of Templates: time 0.00225/0.8525, allocations: 432.5 kB / 1.365 GB, free: 29.07 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches