Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: translateModel(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 110.5 kB / 16.41 MB, free: 6.453 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.001552/0.001552, allocations: 188.1 kB / 17.34 MB, free: 5.738 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.458/1.458, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7983/0.7983, allocations: 132.2 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001228, allocations: 66.23 kB / 0.582 GB, free: 23.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1415, allocations: 80.21 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002538/0.144, allocations: 1.468 MB / 0.6618 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1451, allocations: 0.6305 MB / 0.6624 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.932e-05/0.1452, allocations: 0 / 0.6624 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.695e-05/0.1452, allocations: 3.938 kB / 0.6624 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.746e-05/0.1453, allocations: 15.8 kB / 0.6624 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006125/0.1459, allocations: 161.8 kB / 0.6626 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.674e-05/0.146, allocations: 43.92 kB / 0.6626 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.364e-05/0.1461, allocations: 11.98 kB / 0.6626 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.426e-05/0.1461, allocations: 19.94 kB / 0.6626 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.983e-05/0.1462, allocations: 27.89 kB / 0.6627 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.1462, allocations: 7.938 kB / 0.6627 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005078/0.1467, allocations: 351.3 kB / 0.663 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.91e-05/0.1467, allocations: 8 kB / 0.663 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.1468, allocations: 23.86 kB / 0.663 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003227/0.1471, allocations: 183.5 kB / 0.6632 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1471, allocations: 0 / 0.6632 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.744e-06/0.1471, allocations: 0 / 0.6632 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.1471, allocations: 4 kB / 0.6632 GB, free: 7.301 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000575/0.1477, allocations: 393.4 kB / 0.6636 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1478, allocations: 12.03 kB / 0.6636 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.339e-05/0.1478, allocations: 8.844 kB / 0.6636 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.1479, allocations: 172.3 kB / 0.6638 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.148, allocations: 4.375 kB / 0.6638 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.148, allocations: 8.375 kB / 0.6638 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.1482, allocations: 81.59 kB / 0.6639 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1482, allocations: 0 / 0.6639 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.1483, allocations: 4 kB / 0.6639 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1483, allocations: 3.938 kB / 0.6639 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.1485, allocations: 47.95 kB / 0.6639 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005464/0.1491, allocations: 328.6 kB / 0.6642 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.1493, allocations: 78.53 kB / 0.6643 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.1495, allocations: 28.84 kB / 0.6643 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.1495, allocations: 11.86 kB / 0.6643 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.1495, allocations: 38.56 kB / 0.6644 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1495, allocations: 0 / 0.6644 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.00162/0.1512, allocations: 0.6423 MB / 0.665 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.1512, allocations: 59.41 kB / 0.6651 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.988e-05/0.1513, allocations: 97.86 kB / 0.6651 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.1513, allocations: 25.7 kB / 0.6652 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.1514, allocations: 99.97 kB / 0.6653 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.1514, allocations: 39.39 kB / 0.6653 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.593e-05/0.1515, allocations: 25.84 kB / 0.6653 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1516, allocations: 318.8 kB / 0.6656 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1517, allocations: 35.98 kB / 0.6657 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.1519, allocations: 39.34 kB / 0.6657 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.1521, allocations: 72.77 kB / 0.6658 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1521, allocations: 0 / 0.6658 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003046/0.1524, allocations: 113.6 kB / 0.6659 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1524, allocations: 5.719 kB / 0.6659 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1525, allocations: 0 / 0.6659 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1525, allocations: 7.938 kB / 0.6659 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.1526, allocations: 31.98 kB / 0.6659 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.1526, allocations: 0 / 0.6659 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.52e-05/0.1527, allocations: 7.984 kB / 0.6659 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-06/0.1527, allocations: 4 kB / 0.6659 GB, free: 4.195 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.1528, allocations: 122.7 kB / 0.6661 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.1529, allocations: 4 kB / 0.6661 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003769/0.1533, allocations: 137.6 kB / 0.6662 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.1533, allocations: 7.938 kB / 0.6662 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1533, allocations: 0 / 0.6662 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1533, allocations: 0 / 0.6662 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005506/0.1538, allocations: 389.2 kB / 0.6666 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.1539, allocations: 3.938 kB / 0.6666 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.154, allocations: 23.98 kB / 0.6666 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.154, allocations: 0 / 0.6666 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.154, allocations: 4 kB / 0.6666 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.154, allocations: 0 / 0.6666 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.154, allocations: 4 kB / 0.6666 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.1545, allocations: 251.4 kB / 0.6668 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-05/0.1546, allocations: 84.95 kB / 0.6669 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.1546, allocations: 4 kB / 0.6669 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.1547, allocations: 16.08 kB / 0.6669 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.1548, allocations: 3.984 kB / 0.6669 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.1548, allocations: 8 kB / 0.667 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.542e-05/0.1548, allocations: 79.28 kB / 0.667 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1548, allocations: 0 / 0.667 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002835/0.1551, allocations: 36 kB / 0.6671 GB, free: 2.93 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 (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.0002081/0.1553, allocations: 127.2 kB / 0.6672 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000315/0.1557, allocations: 95.83 kB / 0.6673 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1557, allocations: 0 / 0.6673 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.1558, allocations: 47.91 kB / 0.6673 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.1561, allocations: 11.94 kB / 0.6673 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006486/0.1568, allocations: 351.5 kB / 0.6677 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.1571, allocations: 0.689 MB / 0.6683 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.908e-05/0.1571, allocations: 19.42 kB / 0.6684 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of SimCode: time 2.9e-07/0.1571, allocations: 0 / 0.6684 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of Templates: time 0.003024/0.1602, allocations: 1.314 MB / 0.6696 GB, free: 232 kB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)