Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004889/0.004889, allocations: 99.64 kB / 15.73 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 186.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00198/0.00198, allocations: 279 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9016/0.9016, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 95.84 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1448, allocations: 86.98 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002204/0.147, allocations: 1.279 MB / 0.7672 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009983/0.148, allocations: 0.6149 MB / 0.7678 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.442e-05/0.1481, allocations: 0 / 0.7678 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.162e-05/0.1481, allocations: 7.922 kB / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.509e-05/0.1482, allocations: 4 kB / 0.7678 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006108/0.1488, allocations: 146.9 kB / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.868e-05/0.1488, allocations: 27.86 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.156e-05/0.1489, allocations: 4 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.619e-05/0.1489, allocations: 15.91 kB / 0.768 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.405e-05/0.149, allocations: 19.92 kB / 0.768 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.149, allocations: 4 kB / 0.768 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005129/0.1495, allocations: 347.3 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.438e-05/0.1496, allocations: 4 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.001e-05/0.1496, allocations: 11.94 kB / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002866/0.1499, allocations: 151.9 kB / 0.7685 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1499, allocations: 0 / 0.7685 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.994e-06/0.1499, allocations: 0 / 0.7685 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.1499, allocations: 0 / 0.7685 GB, free: 6.305 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004665/0.1504, allocations: 367.4 kB / 0.7688 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.1505, allocations: 16.03 kB / 0.7688 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.1505, allocations: 42.67 kB / 0.7689 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.1505, allocations: 4.938 kB / 0.7689 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.1507, allocations: 168.3 kB / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.1507, allocations: 384 / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.1507, allocations: 8.281 kB / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.1509, allocations: 50.25 kB / 0.7691 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1509, allocations: 3.938 kB / 0.7691 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.1509, allocations: 0 / 0.7691 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1509, allocations: 0 / 0.7691 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.76e-05/0.151, allocations: 27.92 kB / 0.7691 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001947/0.1512, allocations: 161.7 kB / 0.7693 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001068/0.1513, allocations: 62.48 kB / 0.7693 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.432e-05/0.1513, allocations: 28.86 kB / 0.7694 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.1514, allocations: 3.984 kB / 0.7694 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.1514, allocations: 30.56 kB / 0.7694 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1514, allocations: 4 kB / 0.7694 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001227/0.1527, allocations: 0.5878 MB / 0.77 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.1527, allocations: 59.34 kB / 0.77 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.825e-05/0.1528, allocations: 101.8 kB / 0.7701 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1528, allocations: 29.7 kB / 0.7702 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.548e-05/0.1529, allocations: 80.14 kB / 0.7702 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.962e-05/0.1529, allocations: 43.44 kB / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.153, allocations: 21.72 kB / 0.7703 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.095e-05/0.1531, allocations: 318.8 kB / 0.7706 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.745e-05/0.1531, allocations: 23.98 kB / 0.7706 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.421e-05/0.1531, allocations: 24 kB / 0.7706 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.422e-05/0.1532, allocations: 56.97 kB / 0.7707 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.1532, allocations: 4 kB / 0.7707 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001371/0.1534, allocations: 93.53 kB / 0.7708 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1534, allocations: 13.81 kB / 0.7708 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1534, allocations: 0 / 0.7708 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.1534, allocations: 4 kB / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.915e-05/0.1535, allocations: 23.98 kB / 0.7708 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1535, allocations: 4 kB / 0.7708 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.375e-05/0.1536, allocations: 0 / 0.7708 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.1536, allocations: 4 kB / 0.7708 GB, free: 3.551 MB / 0.5606 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.297e-05/0.1537, allocations: 114.5 kB / 0.7709 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.1537, allocations: 7.938 kB / 0.771 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.1539, allocations: 121.4 kB / 0.7711 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1539, allocations: 4 kB / 0.7711 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1539, allocations: 0 / 0.7711 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1539, allocations: 0 / 0.7711 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003582/0.1543, allocations: 350.5 kB / 0.7714 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1543, allocations: 4 kB / 0.7714 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.1544, allocations: 19.98 kB / 0.7714 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1544, allocations: 4 kB / 0.7714 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.1544, allocations: 4 kB / 0.7714 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.1544, allocations: 4 kB / 0.7714 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1544, allocations: 0 / 0.7714 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/0.1547, allocations: 211.4 kB / 0.7716 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.1547, allocations: 89.03 kB / 0.7717 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.1547, allocations: 3.938 kB / 0.7717 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.249e-05/0.1548, allocations: 0 / 0.7717 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.486e-05/0.1548, allocations: 16.05 kB / 0.7718 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.1549, allocations: 4 kB / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.787e-05/0.1549, allocations: 75.28 kB / 0.7718 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1549, allocations: 4 kB / 0.7718 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002641/0.1552, allocations: 39.94 kB / 0.7719 GB, free: 2.391 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006066/0.1558, allocations: 0.7832 MB / 0.7726 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001533/0.1559, allocations: 66.41 kB / 0.7727 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.156, allocations: 0 / 0.7727 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.735e-05/0.156, allocations: 39.86 kB / 0.7727 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.1562, allocations: 5.219 kB / 0.7727 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2896/0.4458, allocations: 1.489 MB / 0.7742 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.446, allocations: 0.6872 MB / 0.7749 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.011e-05/0.446, allocations: 11.17 kB / 0.7749 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.802e-05/0.4461, allocations: 22.28 kB / 0.7749 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of SimCode: time 9.01e-07/0.4461, allocations: 0 / 0.7749 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.4649, allocations: 2.113 MB / 0.777 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.174/7.639, allocations: 5.781 kB / 0.777 GB, free: 13.57 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)