Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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_DerivativeCheck2,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001084/0.001085, allocations: 180.3 kB / 487 MB, free: 5.375 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.436/1.436, allocations: 221.3 MB / 0.7819 GB, free: 1.332 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.0009024/0.0009025, allocations: 87.12 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.7055/0.7064, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.9846, allocations: 142.3 MB / 1.205 GB, free: 26.1 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7876/1.772, allocations: 150.1 MB / 1.352 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/1.773, allocations: 77.89 kB / 1.352 GB, free: 15.79 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.01357/1.786, allocations: 4.339 MB / 1.356 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/1.786, allocations: 10.5 kB / 1.356 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.642e-05/1.786, allocations: 4.094 kB / 1.356 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/1.786, allocations: 169.5 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.664e-05/1.786, allocations: 2.469 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/1.786, allocations: 4 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000117/1.787, allocations: 31.67 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/1.787, allocations: 59.16 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/1.787, allocations: 5 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/1.787, allocations: 5.125 kB / 1.356 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/1.787, allocations: 1.938 kB / 1.356 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/1.787, allocations: 298.2 kB / 1.357 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.407e-05/1.787, allocations: 38.27 kB / 1.357 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.891e-05/1.787, allocations: 17.52 kB / 1.357 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/1.788, allocations: 0 / 1.357 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/1.788, allocations: 40.75 kB / 1.357 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 8.81e-07/1.788, allocations: 1.031 kB / 1.357 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0009439/1.789, allocations: 0.5225 MB / 1.357 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/1.789, allocations: 56.97 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.941e-05/1.789, allocations: 99.45 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/1.789, allocations: 25.7 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.75e-05/1.789, allocations: 88.47 kB / 1.358 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/1.789, allocations: 37.78 kB / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-06/1.789, allocations: 0.7812 kB / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.374e-05/1.789, allocations: 322.2 kB / 1.358 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.555e-05/1.789, allocations: 19.06 kB / 1.358 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.039e-05/1.789, allocations: 16.62 kB / 1.358 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.202e-05/1.789, allocations: 26.53 kB / 1.358 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/1.789, allocations: 0.9062 kB / 1.358 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001644/1.789, allocations: 97.55 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/1.789, allocations: 5.344 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/1.789, allocations: 0 / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/1.789, allocations: 0.8125 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/1.789, allocations: 35.75 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/1.789, allocations: 1.031 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.17e-05/1.789, allocations: 6.844 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/1.789, allocations: 3.469 kB / 1.358 GB, free: 13.49 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 (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 5.35e-05/1.79, allocations: 109.2 kB / 1.358 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/1.79, allocations: 6.688 kB / 1.358 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002155/1.79, allocations: 110.5 kB / 1.358 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/1.79, allocations: 1.594 kB / 1.358 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/1.79, allocations: 4.781 kB / 1.358 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/1.79, allocations: 1.359 kB / 1.358 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/1.79, allocations: 328.6 kB / 1.359 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/1.79, allocations: 0.6875 kB / 1.359 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/1.79, allocations: 35.33 kB / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/1.79, allocations: 1.25 kB / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/1.79, allocations: 6.766 kB / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/1.79, allocations: 4.938 kB / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.79, allocations: 0 / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002539/1.791, allocations: 208.5 kB / 1.359 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003173/1.791, allocations: 0.6152 MB / 1.36 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/1.791, allocations: 84.2 kB / 1.36 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/1.791, allocations: 5.188 kB / 1.36 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/1.791, allocations: 7.828 kB / 1.36 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.16e-05/1.791, allocations: 9.25 kB / 1.36 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/1.791, allocations: 9.188 kB / 1.36 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.439e-05/1.791, allocations: 81.78 kB / 1.36 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008713/1.792, allocations: 45.94 kB / 1.36 GB, free: 12.2 MB / 0.8073 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.0002408/1.792, allocations: 137.5 kB / 1.36 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001522/1.793, allocations: 63.64 kB / 1.36 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.793, allocations: 0 / 1.36 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.239e-05/1.793, allocations: 31.45 kB / 1.36 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/1.793, allocations: 6.844 kB / 1.36 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004758/1.793, allocations: 226.6 kB / 1.36 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002003/1.793, allocations: 0.7168 MB / 1.361 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of SimCode: time 2.6e-07/1.793, allocations: 4 kB / 1.361 GB, free: 11.23 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat