Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7332/0.7332, allocations: 141.8 MB / 149.1 MB, free: 2.367 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.001102/0.001102, allocations: 177 kB / 181.9 MB, free: 1.914 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.295/1.295, allocations: 221.3 MB / 436 MB, free: 6.762 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.000985/0.000985, allocations: 100.6 kB / 0.507 GB, free: 3.445 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001717/0.001717, allocations: 274.5 kB / 0.5884 GB, free: 48.36 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1678/0.1695, allocations: 89.65 MB / 0.676 GB, free: 6.629 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.5238, allocations: 82.76 MB / 0.7568 GB, free: 25.76 MB / 458.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.6663, allocations: 109.5 MB / 0.8637 GB, free: 12.15 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.6666, allocations: 91.8 kB / 0.8638 GB, free: 12.07 MB / 0.5419 GB 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.01386/0.6805, allocations: 4.324 MB / 0.868 GB, free: 7.699 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/0.6806, allocations: 8 kB / 0.868 GB, free: 7.691 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.083e-05/0.6806, allocations: 7.906 kB / 0.868 GB, free: 7.684 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.6808, allocations: 167 kB / 0.8682 GB, free: 7.48 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/0.6809, allocations: 4 kB / 0.8682 GB, free: 7.477 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.6809, allocations: 4 kB / 0.8682 GB, free: 7.473 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001247/0.681, allocations: 27.94 kB / 0.8682 GB, free: 7.445 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.6812, allocations: 64.3 kB / 0.8683 GB, free: 7.379 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.6813, allocations: 4 kB / 0.8683 GB, free: 7.375 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.6813, allocations: 7.891 kB / 0.8683 GB, free: 7.367 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.6813, allocations: 3.938 kB / 0.8683 GB, free: 7.363 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006844/0.682, allocations: 297.2 kB / 0.8686 GB, free: 7.035 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.288e-05/0.6821, allocations: 41.7 kB / 0.8686 GB, free: 6.988 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.6822, allocations: 20.8 kB / 0.8686 GB, free: 6.965 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.6822, allocations: 0 / 0.8686 GB, free: 6.965 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.6822, allocations: 38.47 kB / 0.8687 GB, free: 6.918 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.6822, allocations: 0 / 0.8687 GB, free: 6.918 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11): time 0.001179/0.6834, allocations: 0.5167 MB / 0.8692 GB, free: 6.309 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.6835, allocations: 55.34 kB / 0.8692 GB, free: 6.242 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.585e-05/0.6836, allocations: 93 kB / 0.8693 GB, free: 6.145 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.6836, allocations: 29.69 kB / 0.8694 GB, free: 6.109 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 5.798e-05/0.6837, allocations: 88.05 kB / 0.8694 GB, free: 6.02 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 5.521e-05/0.6838, allocations: 39.45 kB / 0.8695 GB, free: 5.98 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-06/0.6838, allocations: 0 / 0.8695 GB, free: 5.98 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.6839, allocations: 314.8 kB / 0.8698 GB, free: 5.664 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.168e-05/0.684, allocations: 20 kB / 0.8698 GB, free: 5.645 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.935e-05/0.684, allocations: 27.92 kB / 0.8698 GB, free: 5.617 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.295e-05/0.6841, allocations: 16 kB / 0.8698 GB, free: 5.602 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/0.6841, allocations: 0 / 0.8698 GB, free: 5.602 MB / 0.5419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000176/0.6843, allocations: 93.7 kB / 0.8699 GB, free: 5.504 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.6843, allocations: 8 kB / 0.8699 GB, free: 5.496 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.6843, allocations: 0 / 0.8699 GB, free: 5.496 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.6843, allocations: 4 kB / 0.8699 GB, free: 5.492 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002022/0.6845, allocations: 39.92 kB / 0.87 GB, free: 5.453 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.6846, allocations: 0 / 0.87 GB, free: 5.453 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.096e-05/0.6846, allocations: 7.984 kB / 0.87 GB, free: 5.445 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.6847, allocations: 4 kB / 0.87 GB, free: 5.441 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 (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.0001005/0.6848, allocations: 104.9 kB / 0.8701 GB, free: 5.332 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.896e-05/0.6848, allocations: 4 kB / 0.8701 GB, free: 5.328 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.6851, allocations: 113.6 kB / 0.8702 GB, free: 5.211 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.6851, allocations: 0 / 0.8702 GB, free: 5.211 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.6851, allocations: 0 / 0.8702 GB, free: 5.211 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.6851, allocations: 0 / 0.8702 GB, free: 5.211 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000441/0.6856, allocations: 335.1 kB / 0.8705 GB, free: 4.84 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.6856, allocations: 0 / 0.8705 GB, free: 4.84 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/0.6858, allocations: 31.92 kB / 0.8705 GB, free: 4.809 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.6858, allocations: 4 kB / 0.8706 GB, free: 4.805 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.6858, allocations: 0 / 0.8706 GB, free: 4.805 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.6858, allocations: 0 / 0.8706 GB, free: 4.805 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.6858, allocations: 4 kB / 0.8706 GB, free: 4.801 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003474/0.6862, allocations: 217.9 kB / 0.8708 GB, free: 4.574 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004922/0.6867, allocations: 0.6172 MB / 0.8714 GB, free: 3.938 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.851e-05/0.6868, allocations: 81.02 kB / 0.8714 GB, free: 3.84 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.6868, allocations: 3.938 kB / 0.8714 GB, free: 3.836 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.687, allocations: 11.98 kB / 0.8715 GB, free: 3.824 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.687, allocations: 4 kB / 0.8715 GB, free: 3.82 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.687, allocations: 7.891 kB / 0.8715 GB, free: 3.812 MB / 0.5419 GB Notification: Performance of sort global known variables: time 5.124e-05/0.6871, allocations: 87.45 kB / 0.8716 GB, free: 3.727 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0009612/0.688, allocations: 44 kB / 0.8716 GB, free: 3.684 MB / 0.5419 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.0003297/0.6884, allocations: 139.1 kB / 0.8717 GB, free: 3.539 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001605/0.6885, allocations: 59.94 kB / 0.8718 GB, free: 3.48 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6886, allocations: 3.938 kB / 0.8718 GB, free: 3.477 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 5.739e-05/0.6886, allocations: 35.98 kB / 0.8718 GB, free: 3.441 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.6888, allocations: 1.641 kB / 0.8718 GB, free: 3.441 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005912/0.6894, allocations: 225.3 kB / 0.872 GB, free: 3.199 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004342/0.6899, allocations: 0.723 MB / 0.8727 GB, free: 2.453 MB / 0.5419 GB Notification: Performance of SimCode: time 5.01e-07/0.6899, allocations: 0 / 0.8727 GB, free: 2.453 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)