Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001604/0.001604, allocations: 190.7 kB / 7.804 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.5552/0.5552, allocations: 90.85 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.356/1.356, allocations: 221.4 MB / 342.8 MB, free: 5.207 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.0009675/0.0009675, allocations: 90.58 kB / 415.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1867/0.1877, allocations: 78.45 MB / 494 MB, free: 7.992 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.5718, allocations: 72.31 MB / 0.553 GB, free: 73.45 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.6781, allocations: 101.4 MB / 0.652 GB, free: 8.668 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.6784, allocations: 79.94 kB / 0.6521 GB, free: 8.59 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.008775/0.6871, allocations: 2.88 MB / 0.6549 GB, free: 5.699 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.6872, allocations: 8.625 kB / 0.6549 GB, free: 5.691 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.6872, allocations: 5.594 kB / 0.6549 GB, free: 5.688 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.6874, allocations: 163.7 kB / 0.6551 GB, free: 5.488 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.6874, allocations: 0 / 0.6551 GB, free: 5.488 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.6874, allocations: 8.688 kB / 0.6551 GB, free: 5.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.182e-05/0.6875, allocations: 4 kB / 0.6551 GB, free: 5.477 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.391e-05/0.6876, allocations: 39.27 kB / 0.6551 GB, free: 5.434 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.6876, allocations: 3.984 kB / 0.6552 GB, free: 5.43 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.6876, allocations: 0 / 0.6552 GB, free: 5.43 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.6876, allocations: 0.9688 kB / 0.6552 GB, free: 5.43 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00014/0.6877, allocations: 130.2 kB / 0.6553 GB, free: 5.266 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.6879, allocations: 38.31 kB / 0.6553 GB, free: 5.223 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.586e-05/0.6879, allocations: 13.39 kB / 0.6553 GB, free: 5.207 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.688, allocations: 0.75 kB / 0.6553 GB, free: 5.207 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.688, allocations: 35.78 kB / 0.6554 GB, free: 5.164 MB / 474.7 MB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.688, allocations: 4 kB / 0.6554 GB, free: 5.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005042/0.6885, allocations: 280.7 kB / 0.6556 GB, free: 4.836 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.334e-05/0.6886, allocations: 52.31 kB / 0.6557 GB, free: 4.773 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.013e-05/0.6886, allocations: 94.31 kB / 0.6558 GB, free: 4.676 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.6886, allocations: 26.45 kB / 0.6558 GB, free: 4.645 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.763e-05/0.6887, allocations: 80.64 kB / 0.6559 GB, free: 4.562 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.231e-05/0.6887, allocations: 25.08 kB / 0.6559 GB, free: 4.539 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-06/0.6887, allocations: 0 / 0.6559 GB, free: 4.539 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.6888, allocations: 310.8 kB / 0.6562 GB, free: 4.227 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.201e-05/0.6889, allocations: 9.688 kB / 0.6562 GB, free: 4.219 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.979e-05/0.6889, allocations: 15.98 kB / 0.6562 GB, free: 4.203 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.765e-05/0.6889, allocations: 8 kB / 0.6562 GB, free: 4.195 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-07/0.6889, allocations: 3.938 kB / 0.6562 GB, free: 4.191 MB / 474.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.056e-05/0.689, allocations: 64.16 kB / 0.6563 GB, free: 4.125 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.689, allocations: 4 kB / 0.6563 GB, free: 4.121 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.689, allocations: 4.688 kB / 0.6563 GB, free: 4.117 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.6891, allocations: 0 / 0.6563 GB, free: 4.117 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.995e-05/0.6891, allocations: 19.48 kB / 0.6563 GB, free: 4.102 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.6891, allocations: 0.7812 kB / 0.6563 GB, free: 4.102 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.902e-05/0.6892, allocations: 1.031 kB / 0.6563 GB, free: 4.102 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.6892, allocations: 0 / 0.6563 GB, free: 4.102 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 5.794e-05/0.6892, allocations: 110 kB / 0.6564 GB, free: 3.988 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.046e-05/0.6893, allocations: 4 kB / 0.6564 GB, free: 3.984 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001393/0.6894, allocations: 69.14 kB / 0.6565 GB, free: 3.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.6894, allocations: 12.42 kB / 0.6565 GB, free: 3.898 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.6894, allocations: 0.5312 kB / 0.6565 GB, free: 3.898 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.6894, allocations: 0 / 0.6565 GB, free: 3.898 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.6897, allocations: 282.7 kB / 0.6568 GB, free: 3.578 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.6897, allocations: 0 / 0.6568 GB, free: 3.578 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.987e-05/0.6898, allocations: 12.59 kB / 0.6568 GB, free: 3.566 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.6898, allocations: 0.5625 kB / 0.6568 GB, free: 3.566 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.6898, allocations: 3.938 kB / 0.6568 GB, free: 3.562 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6898, allocations: 4.5 kB / 0.6568 GB, free: 3.559 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.6899, allocations: 8.734 kB / 0.6568 GB, free: 3.551 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001804/0.69, allocations: 180.9 kB / 0.657 GB, free: 3.352 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002851/0.6903, allocations: 0.5685 MB / 0.6575 GB, free: 2.762 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.6904, allocations: 90.66 kB / 0.6576 GB, free: 2.656 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.6904, allocations: 0 / 0.6576 GB, free: 2.656 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.087e-05/0.6905, allocations: 0 / 0.6576 GB, free: 2.656 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.6905, allocations: 8.5 kB / 0.6576 GB, free: 2.648 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.6905, allocations: 0 / 0.6576 GB, free: 2.648 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.559e-05/0.6906, allocations: 83.8 kB / 0.6577 GB, free: 2.566 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008698/0.6915, allocations: 28.62 kB / 0.6577 GB, free: 2.539 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.0001953/0.6917, allocations: 127.9 kB / 0.6579 GB, free: 2.406 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 9.103e-05/0.6918, allocations: 28.94 kB / 0.6579 GB, free: 2.379 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6918, allocations: 0 / 0.6579 GB, free: 2.379 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 2.475e-05/0.6918, allocations: 24.55 kB / 0.6579 GB, free: 2.355 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.692, allocations: 5.641 kB / 0.6579 GB, free: 2.352 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003122/0.6923, allocations: 144.9 kB / 0.6581 GB, free: 2.188 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.6925, allocations: 0.6919 MB / 0.6587 GB, free: 1.469 MB / 474.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6925, allocations: 0 / 0.6587 GB, free: 1.469 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)