Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001501/0.001501, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 191.9 kB / 16.53 MB, free: 6.668 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9034/0.9034, allocations: 135.1 MB / 425.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 69.02 kB / 0.5055 GB, free: 5.176 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1394, allocations: 80.91 MB / 0.5845 GB, free: 4.406 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002548/0.142, allocations: 1.461 MB / 0.5859 GB, free: 2.926 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.143, allocations: 0.6321 MB / 0.5865 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.454e-05/0.1431, allocations: 0 / 0.5865 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.686e-05/0.1431, allocations: 3.984 kB / 0.5865 GB, free: 2.289 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.527e-05/0.1432, allocations: 11.86 kB / 0.5865 GB, free: 2.277 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.1438, allocations: 155.4 kB / 0.5867 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.846e-05/0.1439, allocations: 51.84 kB / 0.5867 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.99e-05/0.1439, allocations: 4 kB / 0.5867 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.213e-05/0.144, allocations: 23.92 kB / 0.5868 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.676e-05/0.144, allocations: 23.91 kB / 0.5868 GB, free: 2.023 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.144, allocations: 4 kB / 0.5868 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004977/0.1445, allocations: 347.3 kB / 0.5871 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.254e-05/0.1446, allocations: 19.91 kB / 0.5871 GB, free: 1.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.294e-05/0.1446, allocations: 19.88 kB / 0.5872 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002862/0.1449, allocations: 187.8 kB / 0.5873 GB, free: 1.457 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1449, allocations: 0 / 0.5873 GB, free: 1.457 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1449, allocations: 0 / 0.5873 GB, free: 1.457 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1449, allocations: 0 / 0.5873 GB, free: 1.457 MB / 494.1 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.0005663/0.1455, allocations: 395.3 kB / 0.5877 GB, free: 1.023 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1455, allocations: 12.03 kB / 0.5877 GB, free: 1.012 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.148e-05/0.1456, allocations: 38.69 kB / 0.5878 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.1456, allocations: 8.844 kB / 0.5878 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.1458, allocations: 168.3 kB / 0.5879 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.1458, allocations: 12.36 kB / 0.5879 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.1458, allocations: 12.38 kB / 0.588 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.1461, allocations: 80.47 kB / 0.588 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1461, allocations: 7.891 kB / 0.588 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.1461, allocations: 0 / 0.588 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.1461, allocations: 4 kB / 0.588 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.1464, allocations: 47.95 kB / 0.5881 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005189/0.1469, allocations: 332.6 kB / 0.5884 GB, free: 220 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.1472, allocations: 78.53 kB / 0.5885 GB, free: 132 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.1473, allocations: 32.84 kB / 0.5885 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.1473, allocations: 3.938 kB / 0.5885 GB, free: 92 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.1474, allocations: 34.56 kB / 0.5885 GB, free: 48 kB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.1474, allocations: 3.938 kB / 0.5886 GB, free: 44 kB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001651/0.149, allocations: 0.6492 MB / 0.5892 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.1491, allocations: 51.41 kB / 0.5892 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.301e-05/0.1492, allocations: 101.8 kB / 0.5893 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.1492, allocations: 29.7 kB / 0.5894 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.806e-05/0.1492, allocations: 88.14 kB / 0.5894 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/0.1493, allocations: 35.45 kB / 0.5895 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.767e-05/0.1493, allocations: 33.7 kB / 0.5895 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.429e-05/0.1494, allocations: 310.8 kB / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.1496, allocations: 35.97 kB / 0.5898 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.1497, allocations: 31.97 kB / 0.5899 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002582/0.15, allocations: 72.78 kB / 0.5899 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.15, allocations: 3.984 kB / 0.5899 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003314/0.1503, allocations: 117.7 kB / 0.5901 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.1503, allocations: 8 kB / 0.5901 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.1504, allocations: 0 / 0.5901 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1504, allocations: 3.938 kB / 0.5901 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.1505, allocations: 27.98 kB / 0.5901 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.1506, allocations: 0 / 0.5901 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.88e-05/0.1506, allocations: 4 kB / 0.5901 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.1506, allocations: 15.92 kB / 0.5901 GB, free: 14.3 MB / 0.4981 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 8.122e-05/0.1507, allocations: 117.8 kB / 0.5902 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.1508, allocations: 7.906 kB / 0.5902 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003816/0.1512, allocations: 125.6 kB / 0.5904 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.1512, allocations: 3.938 kB / 0.5904 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1512, allocations: 96 / 0.5904 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1512, allocations: 11.92 kB / 0.5904 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005608/0.1518, allocations: 386.4 kB / 0.5907 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1518, allocations: 3.938 kB / 0.5907 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.1519, allocations: 23.98 kB / 0.5908 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.152, allocations: 7.984 kB / 0.5908 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.152, allocations: 192 / 0.5908 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.152, allocations: 4 kB / 0.5908 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.152, allocations: 0 / 0.5908 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005146/0.1525, allocations: 262.8 kB / 0.591 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.1526, allocations: 85.08 kB / 0.5911 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.1526, allocations: 0 / 0.5911 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.1527, allocations: 11.98 kB / 0.5911 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.1527, allocations: 4 kB / 0.5911 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.1527, allocations: 4 kB / 0.5911 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.591e-05/0.1528, allocations: 91.33 kB / 0.5912 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1528, allocations: 0 / 0.5912 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002846/0.1531, allocations: 36 kB / 0.5912 GB, free: 13.02 MB / 0.4981 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 () * 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.0008317/0.1539, allocations: 0.8213 MB / 0.5921 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003354/0.1543, allocations: 87.89 kB / 0.5921 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1543, allocations: 0 / 0.5921 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.1544, allocations: 43.97 kB / 0.5922 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.1547, allocations: 8 kB / 0.5922 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002035/0.1568, allocations: 1.592 MB / 0.5937 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.1571, allocations: 0.6962 MB / 0.5944 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.8e-05/0.1571, allocations: 12.75 kB / 0.5944 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.824e-05/0.1572, allocations: 27.42 kB / 0.5945 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1572, allocations: 0 / 0.5945 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7399/0.8971, allocations: 2.282 MB / 0.5967 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/11.1, allocations: 12.17 kB / 0.5967 GB, free: 7.492 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)