Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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/BuildSysPro 3.5.0/package.mo): time 0.7109/0.7109, allocations: 127.4 MB / 134.6 MB, free: 4.113 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001273/0.001273, allocations: 193.2 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.872/1.872, allocations: 205.1 MB / 399.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 93.56 kB / 476.3 MB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3816/0.3827, allocations: 82.89 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.5857, allocations: 76.75 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5662/1.152, allocations: 103.4 MB / 0.722 GB, free: 8.934 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/1.152, allocations: 79.95 kB / 0.7221 GB, free: 8.855 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.01485/1.167, allocations: 4.588 MB / 0.7266 GB, free: 4.238 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.593e-05/1.167, allocations: 8 kB / 0.7266 GB, free: 4.23 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.033e-05/1.167, allocations: 7.906 kB / 0.7266 GB, free: 4.223 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/1.168, allocations: 171 kB / 0.7268 GB, free: 4.016 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/1.168, allocations: 0 / 0.7268 GB, free: 4.016 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/1.168, allocations: 4 kB / 0.7268 GB, free: 4.012 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001342/1.168, allocations: 28 kB / 0.7268 GB, free: 3.984 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/1.168, allocations: 61.61 kB / 0.7269 GB, free: 3.918 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/1.168, allocations: 0 / 0.7269 GB, free: 3.918 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/1.168, allocations: 4 kB / 0.7269 GB, free: 3.914 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/1.168, allocations: 4 kB / 0.7269 GB, free: 3.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007108/1.169, allocations: 301.2 kB / 0.7271 GB, free: 3.578 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.581e-05/1.169, allocations: 37.66 kB / 0.7272 GB, free: 3.535 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.663e-05/1.169, allocations: 20.86 kB / 0.7272 GB, free: 3.512 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003648/1.169, allocations: 97.09 kB / 0.7273 GB, free: 3.398 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/1.169, allocations: 34.55 kB / 0.7273 GB, free: 3.355 MB / 490.7 MB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/1.169, allocations: 0 / 0.7273 GB, free: 3.355 MB / 490.7 MB Notification: Performance of matching and sorting (n=11): time 0.003867/1.173, allocations: 0.7809 MB / 0.7281 GB, free: 2.484 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/1.173, allocations: 55.41 kB / 0.7281 GB, free: 2.418 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.815e-05/1.173, allocations: 92.98 kB / 0.7282 GB, free: 2.32 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/1.173, allocations: 25.7 kB / 0.7283 GB, free: 2.289 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.105e-05/1.174, allocations: 84.14 kB / 0.7283 GB, free: 2.203 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.838e-05/1.174, allocations: 43.36 kB / 0.7284 GB, free: 2.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/1.174, allocations: 4 kB / 0.7284 GB, free: 2.156 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/1.174, allocations: 318.8 kB / 0.7287 GB, free: 1.836 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.411e-05/1.174, allocations: 27.94 kB / 0.7287 GB, free: 1.809 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.368e-05/1.174, allocations: 32.84 kB / 0.7287 GB, free: 1.777 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.184e-05/1.174, allocations: 34.42 kB / 0.7288 GB, free: 1.746 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/1.174, allocations: 0 / 0.7288 GB, free: 1.746 MB / 490.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002369/1.174, allocations: 113.7 kB / 0.7289 GB, free: 1.629 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/1.174, allocations: 4 kB / 0.7289 GB, free: 1.625 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/1.174, allocations: 0 / 0.7289 GB, free: 1.625 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/1.174, allocations: 4 kB / 0.7289 GB, free: 1.621 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003885/1.175, allocations: 39.97 kB / 0.7289 GB, free: 1.582 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/1.175, allocations: 7.984 kB / 0.7289 GB, free: 1.574 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/1.175, allocations: 23.98 kB / 0.729 GB, free: 1.551 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/1.175, allocations: 7.938 kB / 0.729 GB, free: 1.543 MB / 490.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 (13): * Single equations (assignments): 13 * 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 0.0001048/1.175, allocations: 105 kB / 0.7291 GB, free: 1.434 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.904e-05/1.175, allocations: 4.094 kB / 0.7291 GB, free: 1.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.575e-05/1.175, allocations: 16.05 kB / 0.7291 GB, free: 1.418 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/1.175, allocations: 3.984 kB / 0.7291 GB, free: 1.414 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.175, allocations: 0 / 0.7291 GB, free: 1.414 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/1.175, allocations: 7.906 kB / 0.7291 GB, free: 1.406 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/1.176, allocations: 363 kB / 0.7294 GB, free: 1.008 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/1.176, allocations: 0 / 0.7294 GB, free: 1.008 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/1.176, allocations: 43.97 kB / 0.7295 GB, free: 0.9648 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-06/1.176, allocations: 7.906 kB / 0.7295 GB, free: 0.957 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/1.176, allocations: 3.984 kB / 0.7295 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/1.176, allocations: 4 kB / 0.7295 GB, free: 0.9492 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.176, allocations: 4 kB / 0.7295 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004159/1.177, allocations: 244.4 kB / 0.7297 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005811/1.177, allocations: 0.6686 MB / 0.7304 GB, free: 0 / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/1.177, allocations: 81.02 kB / 0.7305 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/1.178, allocations: 4 kB / 0.7305 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/1.178, allocations: 23.97 kB / 0.7305 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/1.178, allocations: 0 / 0.7305 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/1.178, allocations: 12.05 kB / 0.7305 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.546e-05/1.178, allocations: 83.28 kB / 0.7306 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0009005/1.179, allocations: 23.91 kB / 0.7306 GB, free: 15.76 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0002293/1.179, allocations: 111.2 kB / 0.7307 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002487/1.179, allocations: 83.92 kB / 0.7308 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.179, allocations: 0 / 0.7308 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 8.464e-05/1.179, allocations: 43.92 kB / 0.7308 GB, free: 15.51 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/1.18, allocations: 8 kB / 0.7308 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/1.181, allocations: 345.3 kB / 0.7312 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005247/1.182, allocations: 0.727 MB / 0.7319 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of SimCode: time 2.8e-07/1.182, allocations: 0 / 0.7319 GB, free: 14.39 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)