Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.176/2.176, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001211/0.001211, allocations: 177.3 kB / 490.8 MB, free: 1.91 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.621/1.621, allocations: 221.3 MB / 0.7863 GB, free: 13.6 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.001003/0.001003, allocations: 86.73 kB / 0.9264 GB, free: 14.13 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7825/0.7836, allocations: 149.1 MB / 1.072 GB, free: 182.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/1.108, allocations: 143 MB / 1.212 GB, free: 39.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.951/2.059, allocations: 149.9 MB / 1.358 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/2.059, allocations: 76.36 kB / 1.358 GB, free: 17.5 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.009534/2.068, allocations: 2.877 MB / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.539e-05/2.069, allocations: 8.875 kB / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.86e-05/2.069, allocations: 2.219 kB / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/2.069, allocations: 165.1 kB / 1.361 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/2.069, allocations: 1.5 kB / 1.361 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/2.069, allocations: 1.062 kB / 1.361 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.786e-05/2.069, allocations: 15.95 kB / 1.361 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.46e-05/2.069, allocations: 40.81 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/2.069, allocations: 0 / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/2.069, allocations: 0.6562 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/2.069, allocations: 4.906 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002015/2.069, allocations: 138.3 kB / 1.361 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/2.069, allocations: 28.5 kB / 1.361 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.577e-05/2.07, allocations: 16.88 kB / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/2.07, allocations: 4.656 kB / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/2.07, allocations: 32.66 kB / 1.361 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 3.888e-06/2.07, allocations: 7.922 kB / 1.361 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0006664/2.07, allocations: 279.3 kB / 1.362 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.518e-05/2.07, allocations: 51.41 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.897e-05/2.07, allocations: 90.22 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/2.07, allocations: 29.7 kB / 1.362 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.131e-05/2.07, allocations: 84.98 kB / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/2.071, allocations: 12.06 kB / 1.362 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/2.071, allocations: 0 / 1.362 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001378/2.071, allocations: 320.8 kB / 1.362 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.917e-05/2.071, allocations: 14.22 kB / 1.362 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.079e-05/2.071, allocations: 5.938 kB / 1.362 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.54e-05/2.071, allocations: 11.33 kB / 1.362 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/2.071, allocations: 3.938 kB / 1.362 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001136/2.071, allocations: 61.7 kB / 1.362 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/2.071, allocations: 6.781 kB / 1.362 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/2.071, allocations: 6.578 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/2.071, allocations: 0 / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.309e-05/2.071, allocations: 17.92 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/2.071, allocations: 1.094 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.143e-05/2.071, allocations: 0.7031 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/2.071, allocations: 1.531 kB / 1.362 GB, free: 31.62 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 (7): * Single equations (assignments): 7 * 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 8.425e-05/2.071, allocations: 107 kB / 1.362 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/2.071, allocations: 10.34 kB / 1.362 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/2.071, allocations: 66.02 kB / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/2.071, allocations: 3.203 kB / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/2.071, allocations: 0 / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/2.071, allocations: 0 / 1.363 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003278/2.072, allocations: 291.3 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/2.072, allocations: 1.219 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-05/2.072, allocations: 11.73 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/2.072, allocations: 1.188 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/2.072, allocations: 5.344 kB / 1.363 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/2.072, allocations: 0.7969 kB / 1.363 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/2.072, allocations: 1.219 kB / 1.363 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002005/2.072, allocations: 185.4 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004205/2.073, allocations: 0.5661 MB / 1.364 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/2.073, allocations: 89.78 kB / 1.364 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/2.073, allocations: 0.9688 kB / 1.364 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.632e-05/2.073, allocations: 2.266 kB / 1.364 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.192e-05/2.073, allocations: 2.906 kB / 1.364 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/2.073, allocations: 4.328 kB / 1.364 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.609e-05/2.073, allocations: 81.81 kB / 1.364 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009031/2.074, allocations: 29.05 kB / 1.364 GB, free: 30.3 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0003042/2.074, allocations: 127.1 kB / 1.364 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001199/2.074, allocations: 27.72 kB / 1.364 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/2.074, allocations: 1.062 kB / 1.364 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.313e-05/2.074, allocations: 22.31 kB / 1.364 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/2.074, allocations: 6.281 kB / 1.364 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004044/2.075, allocations: 133.9 kB / 1.364 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/2.075, allocations: 0.6946 MB / 1.365 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/2.075, allocations: 0 / 1.365 GB, free: 29.38 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat does not exist to compare? outputFormat=mat