Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/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_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_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.005894/0.005894, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001608/0.001608, allocations: 201.7 kB / 16.68 MB, free: 5.93 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8558/0.8558, allocations: 135.6 MB / 426.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 65.89 kB / 0.5857 GB, free: 21.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1365, allocations: 81.02 MB / 0.6649 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002212/0.1388, allocations: 1.269 MB / 0.6661 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001049/0.1399, allocations: 0.6191 MB / 0.6667 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.177e-05/0.1399, allocations: 0 / 0.6667 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.784e-05/0.1399, allocations: 3.938 kB / 0.6667 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.795e-05/0.14, allocations: 7.984 kB / 0.6667 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005513/0.1405, allocations: 154.6 kB / 0.6669 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.169e-05/0.1406, allocations: 27.86 kB / 0.6669 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.96e-05/0.1406, allocations: 7.984 kB / 0.6669 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.353e-05/0.1407, allocations: 7.938 kB / 0.6669 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.531e-05/0.1407, allocations: 15.92 kB / 0.6669 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.1407, allocations: 4 kB / 0.6669 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000546/0.1413, allocations: 343.3 kB / 0.6673 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.976e-05/0.1413, allocations: 12 kB / 0.6673 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.692e-05/0.1414, allocations: 11.92 kB / 0.6673 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002764/0.1416, allocations: 155.8 kB / 0.6674 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1417, allocations: 0 / 0.6674 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.526e-06/0.1417, allocations: 0 / 0.6674 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.1417, allocations: 3.938 kB / 0.6674 GB, free: 2.984 MB / 0.4981 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.0004518/0.1421, allocations: 367.1 kB / 0.6678 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1422, allocations: 9.109 kB / 0.6678 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.717e-05/0.1422, allocations: 38.75 kB / 0.6678 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.1423, allocations: 8.891 kB / 0.6678 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.1424, allocations: 168.4 kB / 0.668 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.1424, allocations: 384 / 0.668 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.1425, allocations: 12.12 kB / 0.668 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.1426, allocations: 49.67 kB / 0.6681 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.1426, allocations: 0 / 0.6681 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.1426, allocations: 0 / 0.6681 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1426, allocations: 0 / 0.6681 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.633e-05/0.1427, allocations: 23.92 kB / 0.6681 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000201/0.1429, allocations: 173.6 kB / 0.6682 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.143, allocations: 62.56 kB / 0.6683 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.374e-05/0.1431, allocations: 32.78 kB / 0.6683 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.1431, allocations: 4 kB / 0.6683 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.1431, allocations: 34.56 kB / 0.6684 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.1431, allocations: 0 / 0.6684 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001385/0.1445, allocations: 0.584 MB / 0.6689 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.1446, allocations: 51.41 kB / 0.669 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.556e-05/0.1447, allocations: 101.8 kB / 0.6691 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.1447, allocations: 25.7 kB / 0.6691 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.913e-05/0.1448, allocations: 92.25 kB / 0.6692 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.1448, allocations: 43.59 kB / 0.6692 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/0.1449, allocations: 29.7 kB / 0.6693 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.145, allocations: 314.8 kB / 0.6696 GB, free: 496 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.965e-05/0.1451, allocations: 23.98 kB / 0.6696 GB, free: 472 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.257e-05/0.1451, allocations: 19.98 kB / 0.6696 GB, free: 452 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.1452, allocations: 60.86 kB / 0.6697 GB, free: 388 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.1452, allocations: 0 / 0.6697 GB, free: 388 kB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001627/0.1454, allocations: 93.61 kB / 0.6698 GB, free: 288 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.1454, allocations: 8 kB / 0.6698 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.1454, allocations: 0 / 0.6698 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1455, allocations: 4 kB / 0.6698 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.1456, allocations: 20 kB / 0.6698 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1456, allocations: 0 / 0.6698 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.602e-05/0.1456, allocations: 3.984 kB / 0.6698 GB, free: 252 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.1456, allocations: 4 kB / 0.6698 GB, free: 248 kB / 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 9.364e-05/0.1457, allocations: 121.8 kB / 0.6699 GB, free: 116 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.1458, allocations: 7.953 kB / 0.6699 GB, free: 108 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.146, allocations: 113.7 kB / 0.67 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.146, allocations: 0 / 0.67 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.146, allocations: 0 / 0.67 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.146, allocations: 7.984 kB / 0.67 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004573/0.1465, allocations: 350.6 kB / 0.6704 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1465, allocations: 0 / 0.6704 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.1466, allocations: 23.98 kB / 0.6704 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1466, allocations: 0 / 0.6704 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.1467, allocations: 4 kB / 0.6704 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1467, allocations: 0 / 0.6704 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.1467, allocations: 7.984 kB / 0.6704 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.147, allocations: 226 kB / 0.6706 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.147, allocations: 81.06 kB / 0.6707 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.147, allocations: 4.031 kB / 0.6707 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.389e-05/0.1471, allocations: 0 / 0.6707 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-05/0.1472, allocations: 15.92 kB / 0.6707 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.1472, allocations: 8.094 kB / 0.6707 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.426e-05/0.1472, allocations: 83.28 kB / 0.6708 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1472, allocations: 0 / 0.6708 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002801/0.1475, allocations: 39.86 kB / 0.6708 GB, free: 15.06 MB / 0.5137 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.0006646/0.1482, allocations: 0.7786 MB / 0.6716 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001525/0.1484, allocations: 60.14 kB / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/0.1484, allocations: 0 / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 5.588e-05/0.1484, allocations: 43.86 kB / 0.6717 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.1487, allocations: 3.938 kB / 0.6717 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.1503, allocations: 1.5 MB / 0.6732 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.1506, allocations: 0.6884 MB / 0.6738 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.607e-05/0.1507, allocations: 12.05 kB / 0.6739 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.1508, allocations: 23.44 kB / 0.6739 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of SimCode: time 2.11e-07/0.1508, allocations: 0 / 0.6739 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2679/0.4187, allocations: 2.061 MB / 0.6759 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.737/9.156, allocations: 4.625 kB / 0.6759 GB, free: 9.906 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)