Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7371/0.7371, allocations: 141.8 MB / 149.1 MB, free: 3.824 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 177.6 kB / 181.9 MB, free: 15.56 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 221.3 MB / 436 MB, free: 8.793 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 92.02 kB / 0.507 GB, free: 24.12 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001835/0.001835, allocations: 278 kB / 0.5884 GB, free: 11.78 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1895/0.1913, allocations: 89.65 MB / 0.676 GB, free: 2.051 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.5936, allocations: 82.76 MB / 0.7568 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1145/0.7081, allocations: 108.3 MB / 0.8626 GB, free: 3.895 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.7084, allocations: 83.92 kB / 0.8627 GB, free: 3.816 MB / 0.5263 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.006553/0.715, allocations: 2.301 MB / 0.8649 GB, free: 1.492 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.715, allocations: 12.56 kB / 0.8649 GB, free: 1.48 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.7151, allocations: 4.938 kB / 0.8649 GB, free: 1.477 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.641e-05/0.7152, allocations: 167 kB / 0.8651 GB, free: 1.273 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.7152, allocations: 0.7188 kB / 0.8651 GB, free: 1.273 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.7152, allocations: 0 / 0.8651 GB, free: 1.273 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.887e-05/0.7153, allocations: 4.75 kB / 0.8651 GB, free: 1.27 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.322e-05/0.7153, allocations: 30.2 kB / 0.8651 GB, free: 1.234 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.7154, allocations: 3.938 kB / 0.8651 GB, free: 1.23 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.7154, allocations: 0.5 kB / 0.8651 GB, free: 1.23 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.7154, allocations: 0.9375 kB / 0.8651 GB, free: 1.23 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.7155, allocations: 138.2 kB / 0.8652 GB, free: 1.059 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 4.89e-05/0.7156, allocations: 27.86 kB / 0.8653 GB, free: 1.023 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.05e-05/0.7156, allocations: 5.641 kB / 0.8653 GB, free: 1.016 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.7156, allocations: 4 kB / 0.8653 GB, free: 1.012 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.7157, allocations: 31.78 kB / 0.8653 GB, free: 0.9727 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=2): time 2.325e-06/0.7157, allocations: 0 / 0.8653 GB, free: 0.9727 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2): time 0.0001304/0.7158, allocations: 42.55 kB / 0.8654 GB, free: 0.9258 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.7158, allocations: 55.97 kB / 0.8654 GB, free: 0.8594 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.68e-05/0.7159, allocations: 91.39 kB / 0.8655 GB, free: 0.7656 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.7159, allocations: 26.48 kB / 0.8655 GB, free: 0.7344 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 1.271e-05/0.7159, allocations: 84.14 kB / 0.8656 GB, free: 0.6484 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.716, allocations: 4.438 kB / 0.8656 GB, free: 0.6445 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.716, allocations: 1.688 kB / 0.8656 GB, free: 0.6445 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 4.896e-05/0.716, allocations: 314.8 kB / 0.8659 GB, free: 336 kB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.686e-06/0.716, allocations: 0 / 0.8659 GB, free: 336 kB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.653e-06/0.7161, allocations: 4 kB / 0.8659 GB, free: 332 kB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.298e-05/0.7161, allocations: 0.6562 kB / 0.8659 GB, free: 332 kB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.7161, allocations: 4.75 kB / 0.8659 GB, free: 328 kB / 0.5263 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.586e-05/0.7161, allocations: 42.25 kB / 0.866 GB, free: 280 kB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.7162, allocations: 4 kB / 0.866 GB, free: 276 kB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.7162, allocations: 0.5625 kB / 0.866 GB, free: 276 kB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.7162, allocations: 1 kB / 0.866 GB, free: 276 kB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.7163, allocations: 8 kB / 0.866 GB, free: 268 kB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003982/0.7168, allocations: 0.5992 MB / 0.8666 GB, free: 15.64 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.859e-05/0.7168, allocations: 0.6875 kB / 0.8666 GB, free: 15.64 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.7168, allocations: 0 / 0.8666 GB, free: 15.64 MB / 0.5419 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 6.75e-05/0.7169, allocations: 103 kB / 0.8667 GB, free: 15.53 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-06/0.7169, allocations: 4.875 kB / 0.8667 GB, free: 15.53 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.717, allocations: 42.75 kB / 0.8667 GB, free: 15.48 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.717, allocations: 3.906 kB / 0.8667 GB, free: 15.48 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.717, allocations: 0 / 0.8667 GB, free: 15.48 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.717, allocations: 1.281 kB / 0.8667 GB, free: 15.48 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.656e-05/0.7171, allocations: 135.1 kB / 0.8668 GB, free: 15.31 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.7171, allocations: 0 / 0.8668 GB, free: 15.31 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.123e-05/0.7172, allocations: 11.94 kB / 0.8668 GB, free: 15.3 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.7172, allocations: 1.25 kB / 0.8668 GB, free: 15.3 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.044e-06/0.7173, allocations: 0 / 0.8668 GB, free: 15.3 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002977/0.7176, allocations: 0.5924 MB / 0.8674 GB, free: 14.69 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.7176, allocations: 0 / 0.8674 GB, free: 14.69 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.676e-05/0.7177, allocations: 62.14 kB / 0.8675 GB, free: 14.61 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001588/0.7178, allocations: 449.5 kB / 0.8679 GB, free: 14.15 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.194e-05/0.7179, allocations: 81.77 kB / 0.868 GB, free: 14.05 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.7179, allocations: 11.92 kB / 0.868 GB, free: 14.04 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.842e-05/0.7179, allocations: 3.984 kB / 0.868 GB, free: 14.04 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.272e-05/0.7179, allocations: 0 / 0.868 GB, free: 14.04 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.7179, allocations: 0 / 0.868 GB, free: 14.04 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.539e-05/0.718, allocations: 83.31 kB / 0.8681 GB, free: 13.95 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008078/0.7188, allocations: 12 kB / 0.8681 GB, free: 13.94 MB / 0.5419 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.0001931/0.719, allocations: 111.2 kB / 0.8682 GB, free: 13.82 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001743/0.7192, allocations: 21.39 kB / 0.8682 GB, free: 13.8 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7192, allocations: 0 / 0.8682 GB, free: 13.8 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 9.718e-05/0.7193, allocations: 15.94 kB / 0.8682 GB, free: 13.79 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001119/0.7194, allocations: 8.125 kB / 0.8682 GB, free: 13.78 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001854/0.7196, allocations: 55.2 kB / 0.8683 GB, free: 13.71 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/0.7198, allocations: 0.688 MB / 0.869 GB, free: 12.99 MB / 0.5419 GB Notification: Performance of SimCode: time 2.91e-07/0.7199, allocations: 0 / 0.869 GB, free: 12.99 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)