Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.153/2.153, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.001073/0.001073, allocations: 169.3 kB / 490.8 MB, free: 1.949 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.442/1.442, allocations: 221.4 MB / 0.7863 GB, free: 13.65 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.001026/0.001026, allocations: 94.53 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.693/0.6941, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/1.001, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9255/1.927, allocations: 149.7 MB / 1.358 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/1.927, allocations: 77.41 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.007936/1.935, allocations: 2.305 MB / 1.36 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/1.935, allocations: 8.969 kB / 1.36 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.16e-05/1.935, allocations: 3.969 kB / 1.36 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/1.935, allocations: 165.1 kB / 1.36 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/1.936, allocations: 5 kB / 1.36 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/1.936, allocations: 0.9688 kB / 1.36 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.968e-05/1.936, allocations: 2.094 kB / 1.36 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.675e-05/1.936, allocations: 34.28 kB / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.026e-06/1.936, allocations: 1.094 kB / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/1.936, allocations: 0 / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/1.936, allocations: 1.312 kB / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/1.936, allocations: 134.7 kB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.281e-05/1.936, allocations: 27.73 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.357e-05/1.936, allocations: 11.3 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/1.936, allocations: 0 / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/1.936, allocations: 32.67 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.743e-06/1.936, allocations: 3.984 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001532/1.936, allocations: 32.59 kB / 1.361 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/1.936, allocations: 57.66 kB / 1.361 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.055e-05/1.936, allocations: 95.06 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.357e-06/1.936, allocations: 25.7 kB / 1.361 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/1.936, allocations: 81.36 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/1.936, allocations: 5.312 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/1.936, allocations: 0 / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001229/1.937, allocations: 313.9 kB / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.202e-05/1.937, allocations: 1.344 kB / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.168e-05/1.937, allocations: 5.969 kB / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.85e-05/1.937, allocations: 6.5 kB / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/1.937, allocations: 0 / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7e-05/1.937, allocations: 38.47 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/1.937, allocations: 10.28 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/1.937, allocations: 1.062 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/1.937, allocations: 0.9375 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/1.937, allocations: 10 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004061/1.937, allocations: 0.594 MB / 1.362 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.86e-05/1.937, allocations: 0 / 1.362 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/1.937, allocations: 2.328 kB / 1.362 GB, free: 31.3 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.6e-05/1.937, allocations: 105.8 kB / 1.362 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/1.938, allocations: 1.938 kB / 1.362 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/1.938, allocations: 47.73 kB / 1.362 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/1.938, allocations: 5.391 kB / 1.362 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/1.938, allocations: 1.156 kB / 1.362 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/1.938, allocations: 0 / 1.362 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.647e-05/1.938, allocations: 130.6 kB / 1.362 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/1.938, allocations: 5.062 kB / 1.362 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.911e-05/1.938, allocations: 12.95 kB / 1.362 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/1.938, allocations: 1.188 kB / 1.362 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/1.938, allocations: 1.641 kB / 1.362 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003766/1.938, allocations: 0.5893 MB / 1.363 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/1.938, allocations: 1.453 kB / 1.363 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.575e-05/1.938, allocations: 63.25 kB / 1.363 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001949/1.939, allocations: 447.2 kB / 1.363 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/1.939, allocations: 81.02 kB / 1.363 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/1.939, allocations: 1.5 kB / 1.363 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.262e-05/1.939, allocations: 1.359 kB / 1.363 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.331e-05/1.939, allocations: 4.5 kB / 1.363 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/1.939, allocations: 0 / 1.363 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.199e-05/1.939, allocations: 76.81 kB / 1.363 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001831/1.941, allocations: 14.39 kB / 1.363 GB, free: 29.71 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002029/1.941, allocations: 118.3 kB / 1.363 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001834/1.941, allocations: 15.2 kB / 1.363 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/1.941, allocations: 1.125 kB / 1.363 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/1.941, allocations: 20.23 kB / 1.364 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001723/1.941, allocations: 5.031 kB / 1.364 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000203/1.941, allocations: 53.86 kB / 1.364 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003147/1.942, allocations: 0.6893 MB / 1.364 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.942, allocations: 0 / 1.364 GB, free: 28.83 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat does not exist to compare? outputFormat=mat