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.001098/0.001098, allocations: 108 kB / 15.6 MB, free: 132 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.001068/0.001068, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8715/0.8715, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 60.41 kB / 0.5054 GB, free: 5.215 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1255, allocations: 80.93 MB / 0.5845 GB, free: 4.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002365/0.1279, allocations: 1.263 MB / 0.5857 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008921/0.1288, allocations: 0.6165 MB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.1289, allocations: 4 kB / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.1289, allocations: 0 / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.227e-05/0.1289, allocations: 7.922 kB / 0.5863 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005165/0.1295, allocations: 147.4 kB / 0.5865 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.556e-05/0.1295, allocations: 15.92 kB / 0.5865 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.1296, allocations: 4 kB / 0.5865 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.379e-05/0.1296, allocations: 12 kB / 0.5865 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.401e-05/0.1296, allocations: 11.91 kB / 0.5865 GB, free: 2.355 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.195e-05/0.1297, allocations: 8 kB / 0.5865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004831/0.1302, allocations: 339.3 kB / 0.5868 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.1302, allocations: 11.98 kB / 0.5868 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.431e-05/0.1302, allocations: 7.938 kB / 0.5869 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.1305, allocations: 147.9 kB / 0.587 GB, free: 1.852 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1305, allocations: 0 / 0.587 GB, free: 1.852 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1305, allocations: 0 / 0.587 GB, free: 1.852 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1305, allocations: 0 / 0.587 GB, free: 1.852 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.000367/0.1309, allocations: 359.4 kB / 0.5873 GB, free: 1.453 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.1309, allocations: 8.031 kB / 0.5873 GB, free: 1.445 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.873e-05/0.1309, allocations: 38.75 kB / 0.5874 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.478e-05/0.131, allocations: 4.922 kB / 0.5874 GB, free: 1.395 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.475e-05/0.1311, allocations: 164.4 kB / 0.5875 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.1311, allocations: 4.375 kB / 0.5876 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.1311, allocations: 384 / 0.5876 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.766e-05/0.1312, allocations: 49.56 kB / 0.5876 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.1312, allocations: 0 / 0.5876 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.353e-06/0.1312, allocations: 0 / 0.5876 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1312, allocations: 0 / 0.5876 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.455e-05/0.1313, allocations: 8 kB / 0.5876 GB, free: 1.129 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001404/0.1314, allocations: 165.6 kB / 0.5878 GB, free: 0.918 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.1316, allocations: 42.55 kB / 0.5878 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.297e-05/0.1316, allocations: 28.88 kB / 0.5878 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.1317, allocations: 7.875 kB / 0.5878 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1317, allocations: 38.56 kB / 0.5879 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 2.194e-06/0.1317, allocations: 4 kB / 0.5879 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005274/0.1322, allocations: 302.5 kB / 0.5882 GB, free: 440 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.1323, allocations: 55.39 kB / 0.5882 GB, free: 372 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.898e-05/0.1323, allocations: 101.8 kB / 0.5883 GB, free: 260 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.1323, allocations: 25.7 kB / 0.5883 GB, free: 228 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.527e-05/0.1324, allocations: 80.14 kB / 0.5884 GB, free: 144 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.1324, allocations: 23.7 kB / 0.5884 GB, free: 120 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.1324, allocations: 21.72 kB / 0.5885 GB, free: 92 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.1325, allocations: 314.8 kB / 0.5888 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.522e-05/0.1326, allocations: 11.98 kB / 0.5888 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.019e-05/0.1326, allocations: 12 kB / 0.5888 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.511e-05/0.1327, allocations: 32.95 kB / 0.5888 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.1327, allocations: 0 / 0.5888 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.438e-05/0.1328, allocations: 73.61 kB / 0.5889 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.1328, allocations: 6.188 kB / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.1328, allocations: 0 / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1328, allocations: 4 kB / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.104e-05/0.1329, allocations: 15.98 kB / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/0.1329, allocations: 0 / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.661e-05/0.1329, allocations: 0 / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-06/0.1329, allocations: 0 / 0.5889 GB, free: 15.61 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 6.64e-05/0.133, allocations: 121.7 kB / 0.589 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.133, allocations: 0 / 0.589 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.1331, allocations: 77.62 kB / 0.5891 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1331, allocations: 0 / 0.5891 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1331, allocations: 4 kB / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.1331, allocations: 0 / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002686/0.1334, allocations: 315.5 kB / 0.5894 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1334, allocations: 4 kB / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.211e-05/0.1335, allocations: 15.98 kB / 0.5894 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1335, allocations: 0 / 0.5894 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.1335, allocations: 4 kB / 0.5894 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1335, allocations: 4 kB / 0.5894 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1335, allocations: 3.938 kB / 0.5894 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.1337, allocations: 180.3 kB / 0.5896 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.1338, allocations: 85.12 kB / 0.5897 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.1338, allocations: 0 / 0.5897 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.175e-05/0.1338, allocations: 4 kB / 0.5897 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.288e-05/0.1339, allocations: 7.922 kB / 0.5897 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.1339, allocations: 8 kB / 0.5897 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.511e-05/0.1339, allocations: 83.28 kB / 0.5898 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1339, allocations: 0 / 0.5898 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000239/0.1342, allocations: 23.94 kB / 0.5898 GB, free: 14.57 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.0004374/0.1346, allocations: 0.734 MB / 0.5905 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 9.11e-05/0.1347, allocations: 39.98 kB / 0.5906 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1347, allocations: 0 / 0.5906 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.783e-05/0.1348, allocations: 16 kB / 0.5906 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.135, allocations: 0 / 0.5906 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.136, allocations: 1.331 MB / 0.5919 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.1362, allocations: 0.6807 MB / 0.5925 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.787e-05/0.1363, allocations: 4.312 kB / 0.5926 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.742e-05/0.1363, allocations: 15.44 kB / 0.5926 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1363, allocations: 4 kB / 0.5926 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.539/1.675, allocations: 1.583 MB / 0.5941 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/12.42, allocations: 10.72 kB / 0.5941 GB, free: 10.19 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)