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.00124/0.00124, allocations: 99.7 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.0009986/0.0009985, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.121/2.121, allocations: 223.2 MB / 239.9 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.593/1.593, allocations: 135.2 MB / 426.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005456/0.0005458, allocations: 12 kB / 0.5069 GB, free: 5.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2356, allocations: 82.32 MB / 0.5873 GB, free: 3.047 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002154/0.2378, allocations: 1.163 MB / 0.5884 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008583/0.2387, allocations: 339.2 kB / 0.5887 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.379e-05/0.2388, allocations: 0 / 0.5887 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.17e-05/0.2388, allocations: 3.938 kB / 0.5887 GB, free: 1.535 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.156e-05/0.2389, allocations: 11.97 kB / 0.5888 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005263/0.2394, allocations: 71.72 kB / 0.5888 GB, free: 1.453 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.172e-05/0.2395, allocations: 35.95 kB / 0.5889 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.2396, allocations: 0 / 0.5889 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.138e-05/0.2397, allocations: 23.92 kB / 0.5889 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.338e-05/0.2397, allocations: 31.91 kB / 0.5889 GB, free: 1.363 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.2398, allocations: 0 / 0.5889 GB, free: 1.363 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003826/0.2401, allocations: 183.7 kB / 0.5891 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.212e-05/0.2402, allocations: 15.92 kB / 0.5891 GB, free: 1.168 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.2402, allocations: 29.7 kB / 0.5891 GB, free: 1.133 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.2404, allocations: 68.12 kB / 0.5892 GB, free: 1.066 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2404, allocations: 0 / 0.5892 GB, free: 1.066 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2404, allocations: 0 / 0.5892 GB, free: 1.066 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.2405, allocations: 0 / 0.5892 GB, free: 1.066 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.0007541/0.2412, allocations: 387.1 kB / 0.5896 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.2413, allocations: 8.031 kB / 0.5896 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.707e-05/0.2413, allocations: 34.56 kB / 0.5896 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.2415, allocations: 11.91 kB / 0.5896 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.2416, allocations: 174.9 kB / 0.5898 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.2417, allocations: 8 kB / 0.5898 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.2417, allocations: 8 kB / 0.5898 GB, free: 360 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.2421, allocations: 81.66 kB / 0.5899 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2421, allocations: 0 / 0.5899 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.2421, allocations: 4 kB / 0.5899 GB, free: 268 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2421, allocations: 0 / 0.5899 GB, free: 268 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/0.2424, allocations: 55.95 kB / 0.5899 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007278/0.2432, allocations: 336.6 kB / 0.5903 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.2436, allocations: 86.53 kB / 0.5903 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.2436, allocations: 4 kB / 0.5903 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.2437, allocations: 34.5 kB / 0.5904 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2437, allocations: 0 / 0.5904 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0023/0.246, allocations: 0.6814 MB / 0.591 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.2461, allocations: 51.41 kB / 0.5911 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.817e-05/0.2462, allocations: 101.8 kB / 0.5912 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/0.2462, allocations: 29.7 kB / 0.5912 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.905e-05/0.2463, allocations: 88.05 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.21e-05/0.2464, allocations: 43.45 kB / 0.5913 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.2464, allocations: 0 / 0.5913 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2465, allocations: 318.8 kB / 0.5916 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.2467, allocations: 35.98 kB / 0.5917 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.2469, allocations: 31.97 kB / 0.5917 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.2471, allocations: 51.98 kB / 0.5918 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2471, allocations: 0 / 0.5918 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004352/0.2476, allocations: 121.5 kB / 0.5919 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.2476, allocations: 4.094 kB / 0.5919 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.2476, allocations: 7.938 kB / 0.5919 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.2477, allocations: 3.953 kB / 0.5919 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.2479, allocations: 31.98 kB / 0.5919 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.2479, allocations: 0 / 0.5919 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.248, allocations: 11.98 kB / 0.5919 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.2481, allocations: 0 / 0.5919 GB, free: 13.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.2482, allocations: 117.8 kB / 0.592 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.68e-05/0.2482, allocations: 8 kB / 0.5921 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005415/0.2488, allocations: 149 kB / 0.5922 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.2488, allocations: 3.953 kB / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2488, allocations: 0 / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2489, allocations: 4 kB / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000842/0.2497, allocations: 390.4 kB / 0.5926 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2497, allocations: 0 / 0.5926 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.25, allocations: 31.97 kB / 0.5926 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.25, allocations: 3.953 kB / 0.5926 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.25, allocations: 0 / 0.5926 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.25, allocations: 4 kB / 0.5926 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.25, allocations: 4 kB / 0.5926 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007006/0.2507, allocations: 259.3 kB / 0.5929 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.554e-05/0.2508, allocations: 85.2 kB / 0.5929 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.775e-05/0.2509, allocations: 11.89 kB / 0.593 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.251, allocations: 7.984 kB / 0.593 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.2511, allocations: 4 kB / 0.593 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.2511, allocations: 7.984 kB / 0.593 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.445e-05/0.2512, allocations: 83.28 kB / 0.5931 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2512, allocations: 0 / 0.5931 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004482/0.2516, allocations: 40 kB / 0.5931 GB, free: 12.66 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 (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.001229/0.2529, allocations: 0.8256 MB / 0.5939 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004571/0.2533, allocations: 87.89 kB / 0.594 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2534, allocations: 0 / 0.594 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.2536, allocations: 51.91 kB / 0.594 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.2539, allocations: 22.52 kB / 0.5941 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.2559, allocations: 0.7479 MB / 0.5948 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.2563, allocations: 0.7012 MB / 0.5955 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.231e-05/0.2564, allocations: 8.672 kB / 0.5955 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.986e-05/0.2565, allocations: 23.42 kB / 0.5955 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.2565, allocations: 0 / 0.5955 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.2746, allocations: 2.049 MB / 0.5975 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002993/0.2749, allocations: 218.6 kB / 0.5977 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.474/2.749, allocations: 0 / 0.5977 GB, free: 8.031 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/linux/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) Environment - environmentSimulation: