Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.081/2.081, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001443/0.001443, allocations: 180.3 kB / 487 MB, free: 5.402 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.448/1.448, allocations: 221.3 MB / 0.7819 GB, free: 1.449 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.001009/0.001009, allocations: 106.8 kB / 0.9213 GB, free: 2.703 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6039/0.605, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.8721, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6942/1.566, allocations: 148.9 MB / 1.351 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/1.567, allocations: 79.16 kB / 1.351 GB, free: 15.46 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.00714/1.574, allocations: 2.302 MB / 1.353 GB, free: 15 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/1.574, allocations: 9.812 kB / 1.353 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.801e-05/1.574, allocations: 5 kB / 1.353 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.631e-05/1.574, allocations: 168.9 kB / 1.353 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/1.574, allocations: 0.7812 kB / 1.353 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.856e-06/1.574, allocations: 4.75 kB / 1.353 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.056e-05/1.574, allocations: 3.125 kB / 1.353 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.024e-05/1.574, allocations: 33.84 kB / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/1.574, allocations: 0 / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/1.574, allocations: 0.625 kB / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/1.574, allocations: 0.7188 kB / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/1.574, allocations: 138.2 kB / 1.353 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.309e-05/1.574, allocations: 24.19 kB / 1.353 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.032e-05/1.574, allocations: 7.359 kB / 1.353 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/1.574, allocations: 0.875 kB / 1.353 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/1.574, allocations: 31.78 kB / 1.353 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/1.574, allocations: 0 / 1.353 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001275/1.575, allocations: 41.8 kB / 1.353 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.756e-05/1.575, allocations: 55.41 kB / 1.354 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.889e-05/1.575, allocations: 93.34 kB / 1.354 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.444e-06/1.575, allocations: 25.7 kB / 1.354 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.472e-05/1.575, allocations: 81.14 kB / 1.354 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/1.575, allocations: 4.812 kB / 1.354 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/1.575, allocations: 0 / 1.354 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.089e-05/1.575, allocations: 316.8 kB / 1.354 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-06/1.575, allocations: 5.438 kB / 1.354 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-06/1.575, allocations: 2.094 kB / 1.354 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.443e-05/1.575, allocations: 4.047 kB / 1.354 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/1.575, allocations: 0.6562 kB / 1.354 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.367e-05/1.575, allocations: 37.08 kB / 1.354 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/1.575, allocations: 6.328 kB / 1.354 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/1.575, allocations: 1.328 kB / 1.354 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/1.575, allocations: 1.031 kB / 1.354 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/1.575, allocations: 14.36 kB / 1.354 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002712/1.575, allocations: 0.5929 MB / 1.355 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.041e-05/1.575, allocations: 2.406 kB / 1.355 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/1.575, allocations: 2.562 kB / 1.355 GB, free: 13.27 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 (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 4.863e-05/1.576, allocations: 102.2 kB / 1.355 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-06/1.576, allocations: 4.938 kB / 1.355 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/1.576, allocations: 47.12 kB / 1.355 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/1.576, allocations: 0 / 1.355 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/1.576, allocations: 5.688 kB / 1.355 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/1.576, allocations: 3.938 kB / 1.355 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.866e-05/1.576, allocations: 130.7 kB / 1.355 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/1.576, allocations: 1.156 kB / 1.355 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.085e-05/1.576, allocations: 8.844 kB / 1.355 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/1.576, allocations: 1.641 kB / 1.355 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-06/1.576, allocations: 0 / 1.355 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002095/1.576, allocations: 0.5938 MB / 1.356 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.576, allocations: 4.984 kB / 1.356 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.444e-05/1.576, allocations: 67.8 kB / 1.356 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 9.3e-05/1.576, allocations: 454.2 kB / 1.356 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.777e-05/1.576, allocations: 79.39 kB / 1.356 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/1.576, allocations: 0 / 1.356 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.543e-05/1.576, allocations: 0.9375 kB / 1.356 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.475e-05/1.576, allocations: 2.125 kB / 1.356 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/1.576, allocations: 0.8438 kB / 1.356 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.611e-05/1.576, allocations: 80.72 kB / 1.356 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0007725/1.577, allocations: 12.7 kB / 1.356 GB, free: 11.67 MB / 0.8073 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.0001904/1.577, allocations: 120 kB / 1.356 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001815/1.578, allocations: 15.62 kB / 1.356 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.578, allocations: 5.188 kB / 1.356 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/1.578, allocations: 12.91 kB / 1.356 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001068/1.578, allocations: 7.312 kB / 1.356 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001792/1.578, allocations: 58.06 kB / 1.356 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002597/1.578, allocations: 0.6845 MB / 1.357 GB, free: 26.8 MB / 0.823 GB Notification: Performance of SimCode: time 2.9e-07/1.578, allocations: 0 / 1.357 GB, free: 26.8 MB / 0.823 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat does not exist to compare? outputFormat=mat