Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) [: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 2.179/2.179, allocations: 390.4 MB / 397.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 177.6 kB / 490.8 MB, free: 11.18 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.406/1.406, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009947/0.0009945, allocations: 96.2 kB / 0.9264 GB, free: 20.93 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 0.3443/0.3453, allocations: 149.1 MB / 1.072 GB, free: 15.88 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.003/1.348, allocations: 143 MB / 1.212 GB, free: 53.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2255/1.574, allocations: 150.9 MB / 1.359 GB, free: 3.02 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/1.574, allocations: 84.44 kB / 1.359 GB, free: 2.938 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0147/1.589, allocations: 4.331 MB / 1.363 GB, free: 14.56 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/1.589, allocations: 8 kB / 1.363 GB, free: 14.55 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.297e-05/1.589, allocations: 7.906 kB / 1.363 GB, free: 14.55 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/1.589, allocations: 166.9 kB / 1.363 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/1.589, allocations: 4 kB / 1.363 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/1.589, allocations: 7.938 kB / 1.363 GB, free: 14.33 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001263/1.589, allocations: 35.98 kB / 1.364 GB, free: 14.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/1.589, allocations: 57.69 kB / 1.364 GB, free: 14.23 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/1.589, allocations: 3.984 kB / 1.364 GB, free: 14.23 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/1.589, allocations: 0 / 1.364 GB, free: 14.23 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/1.59, allocations: 7.906 kB / 1.364 GB, free: 14.22 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008023/1.59, allocations: 293.2 kB / 1.364 GB, free: 13.9 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/1.59, allocations: 41.7 kB / 1.364 GB, free: 13.85 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.956e-05/1.591, allocations: 16.86 kB / 1.364 GB, free: 13.83 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/1.591, allocations: 0 / 1.364 GB, free: 13.83 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.267e-05/1.591, allocations: 38.56 kB / 1.364 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/1.591, allocations: 3.938 kB / 1.364 GB, free: 13.78 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.00141/1.592, allocations: 0.5323 MB / 1.364 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/1.592, allocations: 51.41 kB / 1.365 GB, free: 13.09 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/1.592, allocations: 89 kB / 1.365 GB, free: 13 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/1.592, allocations: 25.7 kB / 1.365 GB, free: 12.97 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.805e-05/1.592, allocations: 96.03 kB / 1.365 GB, free: 12.87 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.579e-05/1.592, allocations: 31.47 kB / 1.365 GB, free: 12.84 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-06/1.592, allocations: 4 kB / 1.365 GB, free: 12.84 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001962/1.593, allocations: 318.8 kB / 1.365 GB, free: 12.52 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.298e-05/1.593, allocations: 20 kB / 1.365 GB, free: 12.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.824e-05/1.593, allocations: 20.5 kB / 1.365 GB, free: 12.48 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.963e-05/1.593, allocations: 25.73 kB / 1.365 GB, free: 12.45 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/1.593, allocations: 0 / 1.365 GB, free: 12.45 MB / 0.8698 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001942/1.593, allocations: 93.53 kB / 1.365 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/1.593, allocations: 4 kB / 1.365 GB, free: 12.35 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/1.593, allocations: 3.984 kB / 1.365 GB, free: 12.35 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/1.593, allocations: 4 kB / 1.365 GB, free: 12.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/1.593, allocations: 27.98 kB / 1.365 GB, free: 12.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/1.593, allocations: 0 / 1.365 GB, free: 12.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.117e-05/1.593, allocations: 8 kB / 1.365 GB, free: 12.31 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/1.594, allocations: 0 / 1.365 GB, free: 12.31 MB / 0.8698 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001461/1.594, allocations: 122.2 kB / 1.365 GB, free: 12.18 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.955e-05/1.594, allocations: 0 / 1.365 GB, free: 12.18 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002566/1.594, allocations: 109.6 kB / 1.365 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/1.594, allocations: 0 / 1.365 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/1.594, allocations: 4 kB / 1.365 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/1.594, allocations: 0 / 1.365 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004652/1.594, allocations: 326.9 kB / 1.366 GB, free: 11.71 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.594, allocations: 0 / 1.366 GB, free: 11.71 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/1.595, allocations: 39.97 kB / 1.366 GB, free: 11.67 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/1.595, allocations: 0 / 1.366 GB, free: 11.67 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/1.595, allocations: 4 kB / 1.366 GB, free: 11.66 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/1.595, allocations: 1.875 kB / 1.366 GB, free: 11.66 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.595, allocations: 0 / 1.366 GB, free: 11.66 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002849/1.595, allocations: 208.4 kB / 1.366 GB, free: 11.45 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004247/1.595, allocations: 0.6136 MB / 1.367 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.144e-05/1.596, allocations: 85 kB / 1.367 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/1.596, allocations: 4 kB / 1.367 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/1.596, allocations: 8 kB / 1.367 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/1.596, allocations: 7.984 kB / 1.367 GB, free: 10.69 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/1.596, allocations: 11.94 kB / 1.367 GB, free: 10.68 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.314e-05/1.596, allocations: 83.25 kB / 1.367 GB, free: 10.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009404/1.597, allocations: 47.92 kB / 1.367 GB, free: 10.55 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000306/1.597, allocations: 139.1 kB / 1.367 GB, free: 10.41 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001729/1.597, allocations: 64.19 kB / 1.367 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.597, allocations: 0 / 1.367 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.606e-05/1.597, allocations: 39.94 kB / 1.367 GB, free: 10.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/1.598, allocations: 9.859 kB / 1.367 GB, free: 10.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005707/1.598, allocations: 221.5 kB / 1.367 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003732/1.599, allocations: 0.7153 MB / 1.368 GB, free: 9.312 MB / 0.8698 GB Notification: Performance of SimCode: time 8.92e-07/1.599, allocations: 4 kB / 1.368 GB, free: 9.309 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat