Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 2.052/2.052, allocations: 390.4 MB / 397.7 MB, free: 1.75 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 181.2 kB / 490.8 MB, free: 7.293 MB / 402.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 221.3 MB / 0.7863 GB, free: 72 kB / 0.5496 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 94.95 kB / 0.9264 GB, free: 436 kB / 0.6902 GB Notification: Performance of FrontEnd - loaded program: time 0.6611/0.6622, allocations: 149.1 MB / 1.072 GB, free: 137.3 MB / 0.7215 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.9923, allocations: 143 MB / 1.212 GB, free: 10.32 MB / 0.7371 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9765/1.969, allocations: 150.2 MB / 1.358 GB, free: 11.6 MB / 0.8309 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/1.969, allocations: 75.95 kB / 1.358 GB, free: 11.53 MB / 0.8309 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.01446/1.984, allocations: 4.533 MB / 1.363 GB, free: 6.965 MB / 0.8309 GB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/1.984, allocations: 11.98 kB / 1.363 GB, free: 6.953 MB / 0.8309 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.743e-05/1.984, allocations: 3.906 kB / 1.363 GB, free: 6.949 MB / 0.8309 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/1.984, allocations: 167 kB / 1.363 GB, free: 6.746 MB / 0.8309 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/1.984, allocations: 0 / 1.363 GB, free: 6.746 MB / 0.8309 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.275e-05/1.984, allocations: 8 kB / 1.363 GB, free: 6.738 MB / 0.8309 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001077/1.984, allocations: 16 kB / 1.363 GB, free: 6.723 MB / 0.8309 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/1.984, allocations: 45.59 kB / 1.363 GB, free: 6.672 MB / 0.8309 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/1.984, allocations: 0 / 1.363 GB, free: 6.672 MB / 0.8309 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/1.984, allocations: 0 / 1.363 GB, free: 6.672 MB / 0.8309 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/1.984, allocations: 0 / 1.363 GB, free: 6.672 MB / 0.8309 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002252/1.985, allocations: 142.2 kB / 1.363 GB, free: 6.496 MB / 0.8309 GB Notification: Performance of preOpt comSubExp (simulation): time 8.711e-05/1.985, allocations: 37.7 kB / 1.363 GB, free: 6.453 MB / 0.8309 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.295e-05/1.985, allocations: 24.86 kB / 1.363 GB, free: 6.426 MB / 0.8309 GB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/1.985, allocations: 7.906 kB / 1.363 GB, free: 6.418 MB / 0.8309 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/1.985, allocations: 34.56 kB / 1.363 GB, free: 6.375 MB / 0.8309 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/1.985, allocations: 3.938 kB / 1.363 GB, free: 6.371 MB / 0.8309 GB Notification: Performance of matching and sorting (n=11): time 0.001126/1.986, allocations: 0.5092 MB / 1.364 GB, free: 5.77 MB / 0.8309 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/1.986, allocations: 63.34 kB / 1.364 GB, free: 5.695 MB / 0.8309 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.269e-05/1.986, allocations: 85 kB / 1.364 GB, free: 5.605 MB / 0.8309 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/1.986, allocations: 29.7 kB / 1.364 GB, free: 5.57 MB / 0.8309 GB Notification: Performance of collectInitialEqns (initialization): time 2.862e-05/1.986, allocations: 84.14 kB / 1.364 GB, free: 5.484 MB / 0.8309 GB Notification: Performance of collectInitialBindings (initialization): time 4.673e-05/1.986, allocations: 39.39 kB / 1.364 GB, free: 5.445 MB / 0.8309 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.349e-06/1.986, allocations: 0 / 1.364 GB, free: 5.445 MB / 0.8309 GB Notification: Performance of setup shared object (initialization): time 0.0001289/1.986, allocations: 318.7 kB / 1.364 GB, free: 5.125 MB / 0.8309 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.406e-05/1.987, allocations: 20 kB / 1.364 GB, free: 5.105 MB / 0.8309 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.601e-05/1.987, allocations: 20.12 kB / 1.364 GB, free: 5.086 MB / 0.8309 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.969e-05/1.987, allocations: 20.88 kB / 1.364 GB, free: 5.066 MB / 0.8309 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/1.987, allocations: 0 / 1.364 GB, free: 5.066 MB / 0.8309 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001639/1.987, allocations: 100.4 kB / 1.365 GB, free: 4.965 MB / 0.8309 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/1.987, allocations: 4.938 kB / 1.365 GB, free: 4.961 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/1.987, allocations: 0 / 1.365 GB, free: 4.961 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/1.987, allocations: 0 / 1.365 GB, free: 4.961 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/1.987, allocations: 27.92 kB / 1.365 GB, free: 4.934 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/1.987, allocations: 0 / 1.365 GB, free: 4.934 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/1.987, allocations: 0 / 1.365 GB, free: 4.934 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/1.987, allocations: 8 kB / 1.365 GB, free: 4.926 MB / 0.8309 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 8.699e-05/1.987, allocations: 105 kB / 1.365 GB, free: 4.816 MB / 0.8309 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/1.987, allocations: 7.906 kB / 1.365 GB, free: 4.809 MB / 0.8309 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002372/1.987, allocations: 93.7 kB / 1.365 GB, free: 4.715 MB / 0.8309 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/1.987, allocations: 0 / 1.365 GB, free: 4.715 MB / 0.8309 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/1.987, allocations: 3.984 kB / 1.365 GB, free: 4.711 MB / 0.8309 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/1.987, allocations: 0 / 1.365 GB, free: 4.711 MB / 0.8309 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005391/1.988, allocations: 325.4 kB / 1.365 GB, free: 4.352 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.988, allocations: 4 kB / 1.365 GB, free: 4.348 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/1.988, allocations: 23.98 kB / 1.365 GB, free: 4.324 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/1.988, allocations: 0 / 1.365 GB, free: 4.324 MB / 0.8309 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/1.988, allocations: 7.938 kB / 1.365 GB, free: 4.316 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/1.988, allocations: 0 / 1.365 GB, free: 4.316 MB / 0.8309 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.988, allocations: 0 / 1.365 GB, free: 4.316 MB / 0.8309 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002708/1.989, allocations: 207.3 kB / 1.365 GB, free: 4.098 MB / 0.8309 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003817/1.989, allocations: 0.5976 MB / 1.366 GB, free: 3.48 MB / 0.8309 GB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/1.989, allocations: 77.11 kB / 1.366 GB, free: 3.387 MB / 0.8309 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/1.989, allocations: 7.906 kB / 1.366 GB, free: 3.379 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.26e-05/1.989, allocations: 4.312 kB / 1.366 GB, free: 3.375 MB / 0.8309 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.078e-05/1.989, allocations: 7.938 kB / 1.366 GB, free: 3.367 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/1.989, allocations: 3.938 kB / 1.366 GB, free: 3.363 MB / 0.8309 GB Notification: Performance of sort global known variables: time 4.261e-05/1.989, allocations: 83.34 kB / 1.366 GB, free: 3.281 MB / 0.8309 GB Notification: Performance of remove unused functions: time 0.0009208/1.99, allocations: 43.92 kB / 1.366 GB, free: 3.238 MB / 0.8309 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.0003853/1.991, allocations: 139.2 kB / 1.366 GB, free: 3.094 MB / 0.8309 GB Notification: Performance of simCode: created initialization part: time 0.0001737/1.991, allocations: 56.48 kB / 1.366 GB, free: 3.039 MB / 0.8309 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/1.991, allocations: 0 / 1.366 GB, free: 3.039 MB / 0.8309 GB Notification: Performance of simCode: created simulation system equations: time 4.858e-05/1.991, allocations: 24 kB / 1.366 GB, free: 3.016 MB / 0.8309 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/1.991, allocations: 10.58 kB / 1.366 GB, free: 3.008 MB / 0.8309 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006008/1.992, allocations: 221.4 kB / 1.367 GB, free: 2.77 MB / 0.8309 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003632/1.992, allocations: 0.7075 MB / 1.367 GB, free: 2.035 MB / 0.8309 GB Notification: Performance of SimCode: time 7.61e-07/1.992, allocations: 0 / 1.367 GB, free: 2.035 MB / 0.8309 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat