Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005839/0.005839, allocations: 101.5 kB / 15.73 MB, free: 6.492 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.00114/0.00114, allocations: 195.7 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3917/0.3917, allocations: 54.94 MB / 324.8 MB, free: 20 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 71.69 kB / 456.3 MB, free: 38.16 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1134, allocations: 59.59 MB / 0.5038 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002373/0.1158, allocations: 1.253 MB / 0.505 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.1169, allocations: 0.5352 MB / 0.5055 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.4e-05/0.1169, allocations: 0 / 0.5055 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.424e-05/0.117, allocations: 0 / 0.5055 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.912e-05/0.117, allocations: 5.438 kB / 0.5055 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004839/0.1175, allocations: 124.2 kB / 0.5056 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.024e-05/0.1176, allocations: 21.2 kB / 0.5057 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.435e-05/0.1177, allocations: 1.531 kB / 0.5057 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.387e-05/0.1177, allocations: 13.5 kB / 0.5057 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.007e-05/0.1178, allocations: 6.734 kB / 0.5057 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.1178, allocations: 1.438 kB / 0.5057 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005042/0.1183, allocations: 354.4 kB / 0.506 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.341e-05/0.1183, allocations: 5.312 kB / 0.506 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.487e-05/0.1184, allocations: 12.05 kB / 0.506 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.1186, allocations: 132.1 kB / 0.5062 GB, free: 7.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1186, allocations: 0 / 0.5062 GB, free: 7.801 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1186, allocations: 0 / 0.5062 GB, free: 7.801 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1186, allocations: 0 / 0.5062 GB, free: 7.801 MB / 382.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.0003789/0.119, allocations: 358.4 kB / 0.5065 GB, free: 7.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.1191, allocations: 9.625 kB / 0.5065 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.1191, allocations: 6.312 kB / 0.5065 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.966e-05/0.1192, allocations: 165.7 kB / 0.5067 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.1192, allocations: 5.688 kB / 0.5067 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.1193, allocations: 5.75 kB / 0.5067 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.1196, allocations: 73.52 kB / 0.5068 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1197, allocations: 1.562 kB / 0.5068 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.1197, allocations: 3.938 kB / 0.5068 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1197, allocations: 5.375 kB / 0.5068 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002392/0.1199, allocations: 45.94 kB / 0.5068 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.1201, allocations: 155.2 kB / 0.507 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.1204, allocations: 76.83 kB / 0.507 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.383e-05/0.1205, allocations: 19.73 kB / 0.5071 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002509/0.1207, allocations: 107 kB / 0.5072 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.567e-05/0.1208, allocations: 30.56 kB / 0.5072 GB, free: 6.711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.1208, allocations: 1.375 kB / 0.5072 GB, free: 6.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.002519/0.1233, allocations: 0.6048 MB / 0.5078 GB, free: 6.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/0.1233, allocations: 52.41 kB / 0.5078 GB, free: 6.211 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.649e-05/0.1234, allocations: 102 kB / 0.5079 GB, free: 6.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.1234, allocations: 29.7 kB / 0.508 GB, free: 6.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.157e-05/0.1234, allocations: 81.48 kB / 0.508 GB, free: 5.988 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.1235, allocations: 18.33 kB / 0.508 GB, free: 5.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.719e-05/0.1235, allocations: 17.75 kB / 0.5081 GB, free: 5.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.683e-05/0.1236, allocations: 316.1 kB / 0.5084 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.1237, allocations: 34.61 kB / 0.5084 GB, free: 5.621 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.1238, allocations: 39.11 kB / 0.5084 GB, free: 5.602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.1241, allocations: 74.33 kB / 0.5085 GB, free: 5.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.1241, allocations: 0 / 0.5085 GB, free: 5.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002734/0.1244, allocations: 111.7 kB / 0.5086 GB, free: 5.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1244, allocations: 13.28 kB / 0.5086 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1244, allocations: 1.188 kB / 0.5086 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1244, allocations: 0 / 0.5086 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.1246, allocations: 19.27 kB / 0.5086 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1246, allocations: 3.938 kB / 0.5087 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.522e-05/0.1246, allocations: 10.89 kB / 0.5087 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.1247, allocations: 1.188 kB / 0.5087 GB, free: 5.473 MB / 382.1 MB 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.562e-05/0.1247, allocations: 116.2 kB / 0.5088 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.1248, allocations: 9.094 kB / 0.5088 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.1248, allocations: 13.17 kB / 0.5088 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1248, allocations: 1.031 kB / 0.5088 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1248, allocations: 0 / 0.5088 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1248, allocations: 1.25 kB / 0.5088 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005385/0.1254, allocations: 370.2 kB / 0.5091 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1254, allocations: 0 / 0.5091 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.1255, allocations: 23.47 kB / 0.5092 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1255, allocations: 5.219 kB / 0.5092 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.1255, allocations: 1.406 kB / 0.5092 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1256, allocations: 4.125 kB / 0.5092 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1256, allocations: 1.406 kB / 0.5092 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004498/0.126, allocations: 249.2 kB / 0.5094 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.1261, allocations: 89.12 kB / 0.5095 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.1261, allocations: 3.938 kB / 0.5095 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.1262, allocations: 11.98 kB / 0.5095 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.821e-05/0.1262, allocations: 4 kB / 0.5095 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.1262, allocations: 4.062 kB / 0.5095 GB, free: 4.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.113e-05/0.1263, allocations: 87.27 kB / 0.5096 GB, free: 4.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1263, allocations: 0 / 0.5096 GB, free: 4.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.1265, allocations: 8 kB / 0.5096 GB, free: 4.523 MB / 382.1 MB 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 9.477e-05/0.1266, allocations: 99.25 kB / 0.5097 GB, free: 4.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002834/0.1269, allocations: 79.88 kB / 0.5098 GB, free: 4.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1269, allocations: 0 / 0.5098 GB, free: 4.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.127, allocations: 39.95 kB / 0.5098 GB, free: 4.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.1273, allocations: 11.94 kB / 0.5098 GB, free: 4.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006866/0.128, allocations: 264.1 kB / 0.5101 GB, free: 4.004 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.1281, allocations: 0.6768 MB / 0.5108 GB, free: 3.301 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.096e-05/0.1282, allocations: 8 kB / 0.5108 GB, free: 3.293 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.425e-05/0.1282, allocations: 15.44 kB / 0.5108 GB, free: 3.277 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1282, allocations: 3.938 kB / 0.5108 GB, free: 3.273 MB / 382.1 MB Notification: Performance of Templates: time 0.002827/0.1311, allocations: 0.7147 MB / 0.5115 GB, free: 2.602 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)