Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.002/2.002, allocations: 387.2 MB / 394.5 MB, free: 13.25 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.00117/0.00117, allocations: 188.7 kB / 487 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 221.3 MB / 0.7819 GB, free: 6.766 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009416/0.0009416, allocations: 101.8 kB / 0.9213 GB, free: 43.67 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3227/0.3237, allocations: 148.5 MB / 1.066 GB, free: 7.461 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7508/1.074, allocations: 142.3 MB / 1.205 GB, free: 72.65 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/1.261, allocations: 149.4 MB / 1.351 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/1.261, allocations: 76.55 kB / 1.351 GB, free: 13.7 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01365/1.275, allocations: 4.524 MB / 1.356 GB, free: 9.168 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/1.275, allocations: 13.72 kB / 1.356 GB, free: 9.156 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/1.275, allocations: 7.906 kB / 1.356 GB, free: 9.148 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/1.275, allocations: 163 kB / 1.356 GB, free: 8.949 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/1.275, allocations: 0 / 1.356 GB, free: 8.949 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/1.275, allocations: 4 kB / 1.356 GB, free: 8.945 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.662e-05/1.275, allocations: 25.92 kB / 1.356 GB, free: 8.922 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.759e-05/1.275, allocations: 41.69 kB / 1.356 GB, free: 8.875 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/1.275, allocations: 3.938 kB / 1.356 GB, free: 8.871 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/1.275, allocations: 1.281 kB / 1.356 GB, free: 8.871 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/1.275, allocations: 4 kB / 1.356 GB, free: 8.867 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/1.275, allocations: 134.2 kB / 1.356 GB, free: 8.699 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 7.251e-05/1.275, allocations: 47.11 kB / 1.356 GB, free: 8.648 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.451e-05/1.275, allocations: 36.59 kB / 1.356 GB, free: 8.613 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/1.275, allocations: 240 / 1.356 GB, free: 8.613 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/1.275, allocations: 34.55 kB / 1.356 GB, free: 8.57 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/1.276, allocations: 0 / 1.356 GB, free: 8.57 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0008441/1.276, allocations: 0.5097 MB / 1.357 GB, free: 7.969 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/1.276, allocations: 55.41 kB / 1.357 GB, free: 7.902 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.354e-05/1.276, allocations: 89 kB / 1.357 GB, free: 7.809 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/1.276, allocations: 25.7 kB / 1.357 GB, free: 7.777 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/1.277, allocations: 84.12 kB / 1.357 GB, free: 7.691 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.682e-05/1.277, allocations: 39.31 kB / 1.357 GB, free: 7.652 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-06/1.277, allocations: 0 / 1.357 GB, free: 7.652 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.471e-05/1.277, allocations: 321.1 kB / 1.357 GB, free: 7.332 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.539e-05/1.277, allocations: 20.12 kB / 1.357 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.269e-05/1.277, allocations: 20 kB / 1.357 GB, free: 7.293 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.433e-05/1.277, allocations: 19.98 kB / 1.357 GB, free: 7.273 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/1.277, allocations: 0 / 1.357 GB, free: 7.273 MB / 0.8542 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001319/1.277, allocations: 93.59 kB / 1.357 GB, free: 7.176 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/1.277, allocations: 4 kB / 1.357 GB, free: 7.172 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/1.277, allocations: 1.25 kB / 1.357 GB, free: 7.172 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/1.277, allocations: 0 / 1.357 GB, free: 7.172 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/1.277, allocations: 27.92 kB / 1.357 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/1.277, allocations: 0 / 1.357 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.591e-05/1.277, allocations: 0 / 1.357 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/1.277, allocations: 8 kB / 1.357 GB, free: 7.137 MB / 0.8542 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.0001518/1.277, allocations: 101 kB / 1.358 GB, free: 7.031 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.894e-05/1.277, allocations: 7.906 kB / 1.358 GB, free: 7.023 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/1.278, allocations: 104.5 kB / 1.358 GB, free: 6.922 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/1.278, allocations: 0 / 1.358 GB, free: 6.922 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/1.278, allocations: 0 / 1.358 GB, free: 6.922 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/1.278, allocations: 4 kB / 1.358 GB, free: 6.918 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004062/1.278, allocations: 322.9 kB / 1.358 GB, free: 6.562 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/1.278, allocations: 0 / 1.358 GB, free: 6.562 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/1.278, allocations: 19.94 kB / 1.358 GB, free: 6.543 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/1.278, allocations: 4 kB / 1.358 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/1.278, allocations: 0 / 1.358 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/1.278, allocations: 3.984 kB / 1.358 GB, free: 6.535 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.278, allocations: 3.906 kB / 1.358 GB, free: 6.531 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002159/1.278, allocations: 203.4 kB / 1.358 GB, free: 6.316 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003277/1.279, allocations: 0.6025 MB / 1.359 GB, free: 5.695 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/1.279, allocations: 85.09 kB / 1.359 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/1.279, allocations: 3.906 kB / 1.359 GB, free: 5.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.671e-05/1.279, allocations: 0 / 1.359 GB, free: 5.59 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.205e-05/1.279, allocations: 7.984 kB / 1.359 GB, free: 5.582 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/1.279, allocations: 8 kB / 1.359 GB, free: 5.574 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.224e-05/1.279, allocations: 79.34 kB / 1.359 GB, free: 5.496 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000907/1.28, allocations: 43.94 kB / 1.359 GB, free: 5.453 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.0002758/1.28, allocations: 136.6 kB / 1.359 GB, free: 5.312 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001226/1.28, allocations: 53.36 kB / 1.359 GB, free: 5.262 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.28, allocations: 0 / 1.359 GB, free: 5.262 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.303e-05/1.28, allocations: 40.14 kB / 1.359 GB, free: 5.223 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/1.281, allocations: 0 / 1.359 GB, free: 5.223 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004782/1.281, allocations: 220.7 kB / 1.359 GB, free: 4.992 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/1.281, allocations: 0.7075 MB / 1.36 GB, free: 4.258 MB / 0.8542 GB Notification: Performance of SimCode: time 2.31e-07/1.281, allocations: 0 / 1.36 GB, free: 4.258 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat