Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.001488/0.001489, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.002001/0.002001, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.851/1.851, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.444/1.444, allocations: 135.2 MB / 426.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006433/0.0006435, allocations: 8 kB / 0.5069 GB, free: 5.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2434, allocations: 82.32 MB / 0.5873 GB, free: 3.043 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00208/0.2455, allocations: 0.9789 MB / 0.5882 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009221/0.2465, allocations: 315.2 kB / 0.5885 GB, free: 1.742 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.64e-05/0.2465, allocations: 4 kB / 0.5886 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.22e-05/0.2466, allocations: 3.938 kB / 0.5886 GB, free: 1.734 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.289e-05/0.2466, allocations: 7.969 kB / 0.5886 GB, free: 1.727 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005442/0.2472, allocations: 63.78 kB / 0.5886 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.359e-05/0.2472, allocations: 15.98 kB / 0.5886 GB, free: 1.648 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.292e-05/0.2473, allocations: 3.984 kB / 0.5886 GB, free: 1.645 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.055e-05/0.2474, allocations: 4 kB / 0.5886 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.174e-05/0.2474, allocations: 11.94 kB / 0.5887 GB, free: 1.629 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.2475, allocations: 0 / 0.5887 GB, free: 1.629 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004103/0.2479, allocations: 187.6 kB / 0.5888 GB, free: 1.445 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.226e-05/0.2479, allocations: 7.938 kB / 0.5888 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.022e-05/0.248, allocations: 25.7 kB / 0.5889 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.2481, allocations: 56.16 kB / 0.5889 GB, free: 1.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2482, allocations: 0 / 0.5889 GB, free: 1.352 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2482, allocations: 0 / 0.5889 GB, free: 1.352 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.2482, allocations: 0 / 0.5889 GB, free: 1.352 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004475/0.2486, allocations: 341.7 kB / 0.5892 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.2487, allocations: 8.031 kB / 0.5893 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.842e-05/0.2488, allocations: 34.56 kB / 0.5893 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.2488, allocations: 8 kB / 0.5893 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.249, allocations: 167 kB / 0.5895 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.249, allocations: 0 / 0.5895 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.2491, allocations: 4 kB / 0.5895 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.2492, allocations: 37.69 kB / 0.5895 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.2492, allocations: 0 / 0.5895 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.2493, allocations: 4 kB / 0.5895 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.2493, allocations: 0 / 0.5895 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.117e-05/0.2493, allocations: 11.98 kB / 0.5895 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002248/0.2496, allocations: 169.7 kB / 0.5897 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.2499, allocations: 46.5 kB / 0.5897 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.2499, allocations: 0 / 0.5897 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.2499, allocations: 30.56 kB / 0.5897 GB, free: 348 kB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.2499, allocations: 0 / 0.5897 GB, free: 348 kB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008225/0.2508, allocations: 318.2 kB / 0.5901 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.2508, allocations: 51.41 kB / 0.5901 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.461e-05/0.2509, allocations: 101.8 kB / 0.5902 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.251, allocations: 25.7 kB / 0.5902 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.646e-05/0.251, allocations: 80.14 kB / 0.5903 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.2511, allocations: 15.81 kB / 0.5903 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.2511, allocations: 0 / 0.5903 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2512, allocations: 326.7 kB / 0.5906 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.631e-05/0.2513, allocations: 12 kB / 0.5906 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.98e-05/0.2513, allocations: 15.92 kB / 0.5907 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.599e-05/0.2514, allocations: 16 kB / 0.5907 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.2514, allocations: 0 / 0.5907 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001555/0.2515, allocations: 65.75 kB / 0.5907 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2516, allocations: 4 kB / 0.5907 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2516, allocations: 0 / 0.5907 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.2516, allocations: 0 / 0.5907 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.715e-05/0.2517, allocations: 15.94 kB / 0.5907 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.2517, allocations: 4.062 kB / 0.5908 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.582e-05/0.2517, allocations: 0 / 0.5908 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.2518, allocations: 8 kB / 0.5908 GB, free: 15.2 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 (7): * Single equations (assignments): 7 * 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 9.479e-05/0.2519, allocations: 117.7 kB / 0.5909 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.622e-05/0.2519, allocations: 4 kB / 0.5909 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001815/0.2521, allocations: 69.64 kB / 0.5909 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2521, allocations: 0 / 0.5909 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2521, allocations: 0 / 0.5909 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2521, allocations: 0 / 0.5909 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004072/0.2525, allocations: 323.4 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2525, allocations: 0 / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.2527, allocations: 16.17 kB / 0.5913 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.2527, allocations: 0 / 0.5913 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.2527, allocations: 4 kB / 0.5913 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2527, allocations: 4 kB / 0.5913 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2527, allocations: 0 / 0.5913 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.253, allocations: 197.9 kB / 0.5915 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.2532, allocations: 81.14 kB / 0.5915 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.2532, allocations: 4 kB / 0.5915 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.2533, allocations: 3.984 kB / 0.5915 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.898e-05/0.2533, allocations: 4 kB / 0.5916 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.2534, allocations: 4 kB / 0.5916 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.67e-05/0.2534, allocations: 75.28 kB / 0.5916 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2534, allocations: 0 / 0.5916 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004196/0.2539, allocations: 31.89 kB / 0.5917 GB, free: 14.16 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0006598/0.2545, allocations: 0.8149 MB / 0.5925 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001264/0.2547, allocations: 27.98 kB / 0.5925 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2547, allocations: 4.062 kB / 0.5925 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.292e-05/0.2547, allocations: 23.92 kB / 0.5925 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.255, allocations: 10.59 kB / 0.5925 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.2561, allocations: 496.1 kB / 0.593 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.2564, allocations: 0.6809 MB / 0.5937 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.729e-05/0.2564, allocations: 8.062 kB / 0.5937 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.3e-05/0.2565, allocations: 15.42 kB / 0.5937 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of SimCode: time 4.3e-07/0.2565, allocations: 0 / 0.5937 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01335/0.2698, allocations: 1.379 MB / 0.595 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/0.2701, allocations: 215.5 kB / 0.5952 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.559/2.829, allocations: 0 / 0.5952 GB, free: 10.59 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) Environment - environmentSimulation: