Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",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/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 192.5 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4547/0.4547, allocations: 90.86 MB / 99.08 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 221.4 MB / 342.8 MB, free: 5.125 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009616/0.0009616, allocations: 97.64 kB / 415.5 MB, free: 6.379 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1597/0.1607, allocations: 78.45 MB / 494 MB, free: 7.922 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.5072, allocations: 72.3 MB / 0.553 GB, free: 73.27 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.6295, allocations: 101.5 MB / 0.6522 GB, free: 8.41 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003798/0.6299, allocations: 78.33 kB / 0.6522 GB, free: 8.336 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.02123/0.6512, allocations: 4.026 MB / 0.6562 GB, free: 4.301 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.6512, allocations: 8 kB / 0.6562 GB, free: 4.293 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.6513, allocations: 0.5625 kB / 0.6562 GB, free: 4.293 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.6515, allocations: 171 kB / 0.6563 GB, free: 4.086 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.6515, allocations: 0.75 kB / 0.6563 GB, free: 4.086 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.6515, allocations: 7.906 kB / 0.6563 GB, free: 4.078 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.798e-05/0.6516, allocations: 8.719 kB / 0.6563 GB, free: 4.07 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.891e-05/0.6517, allocations: 34.19 kB / 0.6564 GB, free: 4.031 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.6517, allocations: 2.438 kB / 0.6564 GB, free: 4.031 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.6518, allocations: 0.75 kB / 0.6564 GB, free: 4.031 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.6518, allocations: 4 kB / 0.6564 GB, free: 4.027 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002084/0.652, allocations: 135.1 kB / 0.6565 GB, free: 3.859 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.6522, allocations: 34.41 kB / 0.6565 GB, free: 3.82 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.995e-05/0.6522, allocations: 21.36 kB / 0.6566 GB, free: 3.797 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.6523, allocations: 4.094 kB / 0.6566 GB, free: 3.797 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.6523, allocations: 31.47 kB / 0.6566 GB, free: 3.758 MB / 474.7 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.6523, allocations: 0.6875 kB / 0.6566 GB, free: 3.758 MB / 474.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005584/0.6529, allocations: 280.1 kB / 0.6569 GB, free: 3.434 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.6529, allocations: 59.34 kB / 0.6569 GB, free: 3.363 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.237e-05/0.653, allocations: 89.19 kB / 0.657 GB, free: 3.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.653, allocations: 26.33 kB / 0.657 GB, free: 3.238 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.313e-05/0.6531, allocations: 84.8 kB / 0.6571 GB, free: 3.152 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.6531, allocations: 19.64 kB / 0.6571 GB, free: 3.133 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-06/0.6531, allocations: 1 kB / 0.6571 GB, free: 3.133 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.6532, allocations: 318.8 kB / 0.6574 GB, free: 2.812 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.006e-05/0.6532, allocations: 9.062 kB / 0.6574 GB, free: 2.805 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.748e-05/0.6533, allocations: 8 kB / 0.6575 GB, free: 2.797 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.63e-05/0.6533, allocations: 8.5 kB / 0.6575 GB, free: 2.789 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-07/0.6533, allocations: 0 / 0.6575 GB, free: 2.789 MB / 474.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.348e-05/0.6534, allocations: 62.53 kB / 0.6575 GB, free: 2.723 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.6534, allocations: 4 kB / 0.6575 GB, free: 2.719 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.6534, allocations: 0.5 kB / 0.6575 GB, free: 2.719 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.6534, allocations: 4.938 kB / 0.6575 GB, free: 2.715 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.024e-05/0.6535, allocations: 23.91 kB / 0.6576 GB, free: 2.691 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.6535, allocations: 4 kB / 0.6576 GB, free: 2.688 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/0.6535, allocations: 3.188 kB / 0.6576 GB, free: 2.688 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.6536, allocations: 0 / 0.6576 GB, free: 2.688 MB / 474.7 MB 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 (7): * Single equations (assignments): 7 * 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 7.673e-05/0.6536, allocations: 104.9 kB / 0.6577 GB, free: 2.578 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.6537, allocations: 4 kB / 0.6577 GB, free: 2.574 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/0.6538, allocations: 68.23 kB / 0.6577 GB, free: 2.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.6538, allocations: 0 / 0.6577 GB, free: 2.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.6538, allocations: 3.188 kB / 0.6577 GB, free: 2.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.6538, allocations: 1.062 kB / 0.6577 GB, free: 2.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003218/0.6542, allocations: 293.2 kB / 0.658 GB, free: 2.168 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.6542, allocations: 0 / 0.658 GB, free: 2.168 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.761e-05/0.6542, allocations: 12 kB / 0.658 GB, free: 2.156 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.6543, allocations: 0 / 0.658 GB, free: 2.156 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.6543, allocations: 0.5312 kB / 0.658 GB, free: 2.156 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.39e-05/0.6543, allocations: 3.984 kB / 0.658 GB, free: 2.152 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.6543, allocations: 5.25 kB / 0.658 GB, free: 2.148 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001796/0.6545, allocations: 190.2 kB / 0.6582 GB, free: 1.941 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003343/0.6548, allocations: 0.5665 MB / 0.6588 GB, free: 1.352 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.6549, allocations: 81.09 kB / 0.6588 GB, free: 1.254 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.6549, allocations: 4.719 kB / 0.6589 GB, free: 1.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.913e-05/0.655, allocations: 0.625 kB / 0.6589 GB, free: 1.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.603e-05/0.655, allocations: 4.406 kB / 0.6589 GB, free: 1.246 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.655, allocations: 7.984 kB / 0.6589 GB, free: 1.238 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.734e-05/0.6551, allocations: 79.88 kB / 0.6589 GB, free: 1.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008453/0.656, allocations: 28.69 kB / 0.659 GB, free: 1.133 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.000234/0.6562, allocations: 131.3 kB / 0.6591 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 9.063e-05/0.6563, allocations: 28 kB / 0.6591 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6563, allocations: 0 / 0.6591 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.823e-05/0.6563, allocations: 19.94 kB / 0.6591 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.6565, allocations: 6.406 kB / 0.6591 GB, free: 0.9453 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003327/0.6569, allocations: 140.7 kB / 0.6593 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.6573, allocations: 0.6919 MB / 0.66 GB, free: 68 kB / 474.7 MB Notification: Performance of SimCode: time 3.357e-06/0.6573, allocations: 0 / 0.66 GB, free: 68 kB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)