Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.239/1.239, allocations: 249.4 MB / 256.7 MB, free: 0.7617 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009755/0.0009756, allocations: 177.3 kB / 316 MB, free: 8.941 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.195/1.195, allocations: 205.1 MB / 0.5667 GB, free: 13.47 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007963/0.0007965, allocations: 90.7 kB / 0.671 GB, free: 51.62 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2044/0.2052, allocations: 112.5 MB / 0.7808 GB, free: 9.895 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4606/0.6658, allocations: 106.3 MB / 0.8846 GB, free: 89.14 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1455/0.8113, allocations: 131.3 MB / 1.013 GB, free: 14.41 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.8116, allocations: 76.8 kB / 1.013 GB, free: 14.33 MB / 0.659 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.007016/0.8186, allocations: 2.275 MB / 1.015 GB, free: 12.07 MB / 0.659 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.8187, allocations: 8 kB / 1.015 GB, free: 12.07 MB / 0.659 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.8187, allocations: 11.59 kB / 1.015 GB, free: 12.06 MB / 0.659 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.8188, allocations: 163.1 kB / 1.015 GB, free: 11.86 MB / 0.659 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.8188, allocations: 0 / 1.015 GB, free: 11.86 MB / 0.659 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-06/0.8189, allocations: 1.375 kB / 1.015 GB, free: 11.86 MB / 0.659 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.36e-05/0.8189, allocations: 4 kB / 1.015 GB, free: 11.86 MB / 0.659 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.31e-05/0.819, allocations: 33.61 kB / 1.015 GB, free: 11.82 MB / 0.659 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.819, allocations: 3.406 kB / 1.015 GB, free: 11.82 MB / 0.659 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.819, allocations: 2.438 kB / 1.015 GB, free: 11.82 MB / 0.659 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.819, allocations: 0 / 1.015 GB, free: 11.82 MB / 0.659 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001384/0.8191, allocations: 134.2 kB / 1.015 GB, free: 11.65 MB / 0.659 GB Notification: Performance of preOpt comSubExp (simulation): time 4.179e-05/0.8192, allocations: 26.52 kB / 1.016 GB, free: 11.61 MB / 0.659 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.612e-05/0.8192, allocations: 4.859 kB / 1.016 GB, free: 11.61 MB / 0.659 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.8192, allocations: 10.67 kB / 1.016 GB, free: 11.6 MB / 0.659 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.8193, allocations: 30.56 kB / 1.016 GB, free: 11.56 MB / 0.659 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.8193, allocations: 0 / 1.016 GB, free: 11.56 MB / 0.659 GB Notification: Performance of matching and sorting (n=2): time 0.0001303/0.8194, allocations: 37.61 kB / 1.016 GB, free: 11.52 MB / 0.659 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.8195, allocations: 55.41 kB / 1.016 GB, free: 11.45 MB / 0.659 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.326e-05/0.8196, allocations: 90.77 kB / 1.016 GB, free: 11.36 MB / 0.659 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.8196, allocations: 25.7 kB / 1.016 GB, free: 11.32 MB / 0.659 GB Notification: Performance of collectInitialEqns (initialization): time 2.594e-05/0.8196, allocations: 81.39 kB / 1.016 GB, free: 11.24 MB / 0.659 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.8196, allocations: 7.906 kB / 1.016 GB, free: 11.23 MB / 0.659 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.8196, allocations: 0 / 1.016 GB, free: 11.23 MB / 0.659 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.8198, allocations: 315.5 kB / 1.016 GB, free: 10.92 MB / 0.659 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.8198, allocations: 3.938 kB / 1.016 GB, free: 10.91 MB / 0.659 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.267e-06/0.8198, allocations: 5.25 kB / 1.016 GB, free: 10.91 MB / 0.659 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.196e-05/0.8199, allocations: 0 / 1.016 GB, free: 10.91 MB / 0.659 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.8199, allocations: 0.75 kB / 1.016 GB, free: 10.91 MB / 0.659 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.505e-05/0.8199, allocations: 38.31 kB / 1.016 GB, free: 10.87 MB / 0.659 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.8199, allocations: 8 kB / 1.016 GB, free: 10.86 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.82, allocations: 4.781 kB / 1.016 GB, free: 10.86 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.82, allocations: 0 / 1.016 GB, free: 10.86 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.8201, allocations: 8.781 kB / 1.016 GB, free: 10.85 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003667/0.8205, allocations: 0.5951 MB / 1.017 GB, free: 10.23 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.8205, allocations: 4.156 kB / 1.017 GB, free: 10.23 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.8205, allocations: 4.688 kB / 1.017 GB, free: 10.23 MB / 0.659 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.496e-05/0.8206, allocations: 105.8 kB / 1.017 GB, free: 10.12 MB / 0.659 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.115e-06/0.8206, allocations: 4.031 kB / 1.017 GB, free: 10.11 MB / 0.659 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.1e-05/0.8207, allocations: 46.41 kB / 1.017 GB, free: 10.07 MB / 0.659 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.8207, allocations: 0 / 1.017 GB, free: 10.07 MB / 0.659 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.8208, allocations: 0 / 1.017 GB, free: 10.07 MB / 0.659 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.8208, allocations: 0 / 1.017 GB, free: 10.07 MB / 0.659 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.224e-05/0.8208, allocations: 138.1 kB / 1.017 GB, free: 9.898 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.8209, allocations: 2.156 kB / 1.017 GB, free: 9.898 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.546e-05/0.8209, allocations: 8 kB / 1.017 GB, free: 9.891 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.8209, allocations: 1.969 kB / 1.017 GB, free: 9.891 MB / 0.659 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.821, allocations: 1.359 kB / 1.017 GB, free: 9.891 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000296/0.8213, allocations: 0.5944 MB / 1.018 GB, free: 9.273 MB / 0.659 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.8213, allocations: 3.812 kB / 1.018 GB, free: 9.273 MB / 0.659 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.595e-05/0.8213, allocations: 61.64 kB / 1.018 GB, free: 9.195 MB / 0.659 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001735/0.8215, allocations: 441.4 kB / 1.018 GB, free: 8.742 MB / 0.659 GB Notification: Performance of postOpt removeConstants (simulation): time 3.346e-05/0.8216, allocations: 85.05 kB / 1.018 GB, free: 8.641 MB / 0.659 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.8216, allocations: 3.984 kB / 1.018 GB, free: 8.637 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.713e-05/0.8216, allocations: 3.906 kB / 1.018 GB, free: 8.633 MB / 0.659 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.138e-05/0.8216, allocations: 4.062 kB / 1.018 GB, free: 8.629 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.8216, allocations: 0 / 1.018 GB, free: 8.629 MB / 0.659 GB Notification: Performance of sort global known variables: time 2.658e-05/0.8217, allocations: 79.28 kB / 1.018 GB, free: 8.551 MB / 0.659 GB Notification: Performance of remove unused functions: time 0.0007183/0.8224, allocations: 12 kB / 1.018 GB, free: 8.539 MB / 0.659 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.0001608/0.8226, allocations: 111.2 kB / 1.018 GB, free: 8.418 MB / 0.659 GB Notification: Performance of simCode: created initialization part: time 0.0001485/0.8227, allocations: 21.86 kB / 1.018 GB, free: 8.398 MB / 0.659 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.8227, allocations: 160 / 1.018 GB, free: 8.398 MB / 0.659 GB Notification: Performance of simCode: created simulation system equations: time 9.558e-05/0.8228, allocations: 16 kB / 1.018 GB, free: 8.383 MB / 0.659 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.279e-05/0.8229, allocations: 0 / 1.018 GB, free: 8.383 MB / 0.659 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000182/0.8231, allocations: 59.8 kB / 1.019 GB, free: 8.301 MB / 0.659 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/0.8234, allocations: 0.6841 MB / 1.019 GB, free: 7.59 MB / 0.659 GB Notification: Performance of SimCode: time 2.51e-07/0.8234, allocations: 0 / 1.019 GB, free: 7.59 MB / 0.659 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)