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.001739/0.001739, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.002512/0.002512, allocations: 191.8 kB / 16.25 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.048/2.048, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.483/1.483, allocations: 135.1 MB / 425.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002462/0.002462, allocations: 63.89 kB / 0.505 GB, free: 5.562 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2295, allocations: 80.93 MB / 0.584 GB, free: 4.801 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.003407/0.233, allocations: 1.325 MB / 0.5853 GB, free: 3.457 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.2348, allocations: 0.6166 MB / 0.5859 GB, free: 2.84 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.746e-05/0.2348, allocations: 0 / 0.5859 GB, free: 2.84 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.429e-05/0.2348, allocations: 4 kB / 0.5859 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.989e-05/0.2349, allocations: 7.938 kB / 0.5859 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007959/0.2357, allocations: 127.6 kB / 0.586 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.107e-05/0.2358, allocations: 15.92 kB / 0.586 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.035e-05/0.2359, allocations: 7.984 kB / 0.586 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.665e-05/0.2359, allocations: 8 kB / 0.5861 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.242e-05/0.236, allocations: 7.938 kB / 0.5861 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.236, allocations: 0 / 0.5861 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008678/0.2369, allocations: 347.3 kB / 0.5864 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.284e-05/0.237, allocations: 11.98 kB / 0.5864 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.757e-05/0.237, allocations: 7.938 kB / 0.5864 GB, free: 2.305 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.2374, allocations: 147.9 kB / 0.5866 GB, free: 2.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2374, allocations: 0 / 0.5866 GB, free: 2.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2374, allocations: 0 / 0.5866 GB, free: 2.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.2375, allocations: 4 kB / 0.5866 GB, free: 2.156 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.0005597/0.238, allocations: 359.3 kB / 0.5869 GB, free: 1.758 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.2381, allocations: 12.03 kB / 0.5869 GB, free: 1.746 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.128e-05/0.2381, allocations: 30.75 kB / 0.5869 GB, free: 1.707 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.766e-05/0.2382, allocations: 4.938 kB / 0.5869 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.2384, allocations: 168.4 kB / 0.5871 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.2384, allocations: 384 / 0.5871 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.2384, allocations: 12.34 kB / 0.5871 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.2386, allocations: 41.58 kB / 0.5872 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.2386, allocations: 0 / 0.5872 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2386, allocations: 0 / 0.5872 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.2386, allocations: 4 kB / 0.5872 GB, free: 1.438 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.159e-05/0.2387, allocations: 7.984 kB / 0.5872 GB, free: 1.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002356/0.2389, allocations: 161.6 kB / 0.5873 GB, free: 1.223 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.2392, allocations: 46.61 kB / 0.5874 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.513e-05/0.2393, allocations: 24.73 kB / 0.5874 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.2393, allocations: 11.95 kB / 0.5874 GB, free: 1.129 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.2393, allocations: 34.56 kB / 0.5874 GB, free: 1.086 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.553e-06/0.2393, allocations: 0 / 0.5874 GB, free: 1.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008956/0.2403, allocations: 310.2 kB / 0.5877 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.2403, allocations: 55.41 kB / 0.5878 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.45e-05/0.2404, allocations: 101.8 kB / 0.5879 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.2405, allocations: 25.7 kB / 0.5879 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.2405, allocations: 80.14 kB / 0.588 GB, free: 452 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.2406, allocations: 19.72 kB / 0.588 GB, free: 432 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-05/0.2406, allocations: 21.7 kB / 0.588 GB, free: 404 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2408, allocations: 314.8 kB / 0.5883 GB, free: 80 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.169e-05/0.2409, allocations: 12 kB / 0.5883 GB, free: 68 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.414e-05/0.2409, allocations: 11.98 kB / 0.5883 GB, free: 56 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.324e-05/0.241, allocations: 36.78 kB / 0.5884 GB, free: 16 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.241, allocations: 0 / 0.5884 GB, free: 16 kB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002064/0.2412, allocations: 69.7 kB / 0.5884 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2413, allocations: 6.5 kB / 0.5885 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.2413, allocations: 0 / 0.5885 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.2413, allocations: 4 kB / 0.5885 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.993e-05/0.2414, allocations: 8 kB / 0.5885 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.2414, allocations: 4 kB / 0.5885 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.027e-05/0.2415, allocations: 0 / 0.5885 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.2415, allocations: 4 kB / 0.5885 GB, free: 15.91 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.2416, allocations: 121.7 kB / 0.5886 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.984e-05/0.2417, allocations: 4.516 kB / 0.5886 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000205/0.2419, allocations: 65.66 kB / 0.5887 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2419, allocations: 0 / 0.5887 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2419, allocations: 0 / 0.5887 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.2419, allocations: 3.984 kB / 0.5887 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004799/0.2424, allocations: 327.4 kB / 0.589 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.2424, allocations: 4 kB / 0.589 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.692e-05/0.2425, allocations: 8 kB / 0.589 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.2426, allocations: 4 kB / 0.589 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2426, allocations: 4 kB / 0.589 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.2426, allocations: 0 / 0.589 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2426, allocations: 4.172 kB / 0.589 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.2429, allocations: 188.3 kB / 0.5892 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.387e-05/0.243, allocations: 77.11 kB / 0.5892 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.243, allocations: 7.984 kB / 0.5893 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.2432, allocations: 3.938 kB / 0.5893 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.32e-05/0.2432, allocations: 0 / 0.5893 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.2432, allocations: 8 kB / 0.5893 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.243e-05/0.2433, allocations: 83.22 kB / 0.5893 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.01e-07/0.2433, allocations: 64 / 0.5893 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004894/0.2438, allocations: 27.92 kB / 0.5894 GB, free: 14.88 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 (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.0007461/0.2446, allocations: 0.7404 MB / 0.5901 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001603/0.2447, allocations: 31.94 kB / 0.5901 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2448, allocations: 4.062 kB / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.053e-05/0.2448, allocations: 19.98 kB / 0.5901 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.2452, allocations: 4 kB / 0.5902 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.2471, allocations: 1.331 MB / 0.5915 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.2474, allocations: 0.6807 MB / 0.5921 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.278e-05/0.2475, allocations: 7.984 kB / 0.5921 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.581e-05/0.2476, allocations: 15.44 kB / 0.5921 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.2476, allocations: 0 / 0.5921 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3058/0.5534, allocations: 1.513 MB / 0.5936 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003158/0.5538, allocations: 234.9 kB / 0.5938 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.546/3.1, allocations: 0 / 0.5938 GB, free: 10.36 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/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)