Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.074/2.074, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.001139/0.001138, allocations: 184.3 kB / 487 MB, free: 5.383 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.432/1.432, allocations: 221.3 MB / 0.7819 GB, free: 1.414 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009658/0.0009656, allocations: 98.33 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.7011/0.7021, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.972, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7888/1.761, allocations: 149.2 MB / 1.351 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/1.761, allocations: 79.45 kB / 1.351 GB, free: 15.84 MB / 0.8073 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.008553/1.77, allocations: 2.868 MB / 1.354 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/1.77, allocations: 10.25 kB / 1.354 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.188e-05/1.77, allocations: 9.469 kB / 1.354 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/1.77, allocations: 162 kB / 1.354 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/1.77, allocations: 0.6562 kB / 1.354 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/1.77, allocations: 2.391 kB / 1.354 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.659e-05/1.77, allocations: 10.52 kB / 1.354 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.49e-05/1.77, allocations: 47.95 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.77, allocations: 0 / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/1.77, allocations: 4.422 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/1.77, allocations: 0.6562 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002052/1.77, allocations: 134 kB / 1.354 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/1.771, allocations: 29.33 kB / 1.354 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.438e-05/1.771, allocations: 12.55 kB / 1.354 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/1.771, allocations: 1.531 kB / 1.354 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/1.771, allocations: 40.05 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/1.771, allocations: 3.938 kB / 1.354 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0006999/1.771, allocations: 277.8 kB / 1.355 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/1.772, allocations: 53.03 kB / 1.355 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.107e-05/1.772, allocations: 88.98 kB / 1.355 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/1.772, allocations: 25.7 kB / 1.355 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.954e-05/1.772, allocations: 89.38 kB / 1.355 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/1.772, allocations: 15.48 kB / 1.355 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/1.772, allocations: 0 / 1.355 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.003e-05/1.772, allocations: 317.6 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.705e-05/1.772, allocations: 13.53 kB / 1.355 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.349e-05/1.772, allocations: 5.938 kB / 1.355 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.632e-05/1.772, allocations: 12.09 kB / 1.355 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/1.772, allocations: 0.7031 kB / 1.355 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001156/1.772, allocations: 60.03 kB / 1.355 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/1.772, allocations: 4.875 kB / 1.355 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/1.772, allocations: 9.172 kB / 1.355 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/1.772, allocations: 0.6562 kB / 1.355 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.064e-05/1.772, allocations: 11.38 kB / 1.355 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/1.772, allocations: 1.125 kB / 1.355 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.091e-05/1.772, allocations: 0 / 1.355 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/1.772, allocations: 6.234 kB / 1.355 GB, free: 13.97 MB / 0.8073 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 6.682e-05/1.772, allocations: 113.4 kB / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/1.772, allocations: 10.09 kB / 1.355 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001903/1.773, allocations: 68.06 kB / 1.355 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/1.773, allocations: 1.062 kB / 1.355 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/1.773, allocations: 0.9688 kB / 1.355 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.773, allocations: 0.8281 kB / 1.355 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003526/1.773, allocations: 288.3 kB / 1.356 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.773, allocations: 1.656 kB / 1.356 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.795e-05/1.773, allocations: 11.11 kB / 1.356 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/1.773, allocations: 1.25 kB / 1.356 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/1.773, allocations: 1.547 kB / 1.356 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/1.773, allocations: 5.625 kB / 1.356 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.773, allocations: 0 / 1.356 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000159/1.773, allocations: 185.8 kB / 1.356 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001849/1.773, allocations: 0.5653 MB / 1.356 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-05/1.774, allocations: 87.2 kB / 1.357 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/1.774, allocations: 1.188 kB / 1.357 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.732e-05/1.774, allocations: 2.469 kB / 1.357 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.949e-05/1.774, allocations: 3.234 kB / 1.357 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/1.774, allocations: 6.234 kB / 1.357 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.884e-05/1.774, allocations: 80.91 kB / 1.357 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008731/1.775, allocations: 30.27 kB / 1.357 GB, free: 12.65 MB / 0.8073 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.0002745/1.775, allocations: 136.2 kB / 1.357 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001178/1.775, allocations: 27.91 kB / 1.357 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.775, allocations: 0 / 1.357 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.62e-05/1.775, allocations: 19.03 kB / 1.357 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001641/1.775, allocations: 5.375 kB / 1.357 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004227/1.776, allocations: 141.9 kB / 1.357 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/1.776, allocations: 0.6951 MB / 1.358 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of SimCode: time 2.61e-07/1.776, allocations: 0 / 1.358 GB, free: 11.72 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat does not exist to compare? outputFormat=mat