Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Running command: translateModel(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.2717/0.2717, allocations: 54.39 MB / 61.67 MB, free: 11.17 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001234/0.001234, allocations: 181.3 kB / 75.37 MB, free: 1.512 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.324/1.324, allocations: 194.2 MB / 283.2 MB, free: 3.656 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001652/0.001652, allocations: 105.3 kB / 341.3 MB, free: 9.535 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.857e-06/8.877e-06, allocations: 0 / 405 MB, free: 27.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1401, allocations: 57.65 MB / 462.6 MB, free: 2.008 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3558/0.496, allocations: 85.46 MB / 0.5352 GB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.4963, allocations: 82.58 kB / 0.5353 GB, free: 11.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.008039/0.5043, allocations: 2.298 MB / 0.5375 GB, free: 9.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.5044, allocations: 0 / 0.5375 GB, free: 9.887 MB / 378.7 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.0003179/0.5047, allocations: 340.8 kB / 0.5379 GB, free: 9.512 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.5047, allocations: 15.91 kB / 0.5379 GB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.5048, allocations: 4 kB / 0.5379 GB, free: 9.492 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001556/0.5049, allocations: 163.5 kB / 0.538 GB, free: 9.293 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.505, allocations: 3.984 kB / 0.538 GB, free: 9.289 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.505, allocations: 7.906 kB / 0.538 GB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.931e-05/0.5051, allocations: 10.12 kB / 0.5381 GB, free: 9.273 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.542e-05/0.5052, allocations: 43.62 kB / 0.5381 GB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.5052, allocations: 0 / 0.5381 GB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.5052, allocations: 3.984 kB / 0.5381 GB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.5052, allocations: 0 / 0.5381 GB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001678/0.5054, allocations: 129.7 kB / 0.5382 GB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.5055, allocations: 32.84 kB / 0.5383 GB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.557e-05/0.5056, allocations: 16.23 kB / 0.5383 GB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003327/0.5059, allocations: 117.7 kB / 0.5384 GB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.506, allocations: 43.17 kB / 0.5384 GB, free: 8.828 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.506, allocations: 0 / 0.5384 GB, free: 8.828 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.00295/0.5089, allocations: 0.6519 MB / 0.5391 GB, free: 8.148 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.509, allocations: 52.22 kB / 0.5391 GB, free: 8.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.476e-05/0.509, allocations: 94.5 kB / 0.5392 GB, free: 7.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.5091, allocations: 25.7 kB / 0.5392 GB, free: 7.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.132e-05/0.5091, allocations: 80.64 kB / 0.5393 GB, free: 7.875 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/0.5091, allocations: 30.33 kB / 0.5393 GB, free: 7.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-06/0.5092, allocations: 0 / 0.5393 GB, free: 7.848 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.5093, allocations: 313.8 kB / 0.5396 GB, free: 7.535 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.045e-05/0.5093, allocations: 15.3 kB / 0.5396 GB, free: 7.523 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/0.5094, allocations: 16.05 kB / 0.5397 GB, free: 7.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.482e-05/0.5094, allocations: 16.33 kB / 0.5397 GB, free: 7.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5094, allocations: 4 kB / 0.5397 GB, free: 7.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001436/0.5096, allocations: 70.14 kB / 0.5398 GB, free: 7.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.5096, allocations: 4 kB / 0.5398 GB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.5096, allocations: 4 kB / 0.5398 GB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.5096, allocations: 4 kB / 0.5398 GB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.5099, allocations: 40.7 kB / 0.5398 GB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.5099, allocations: 3.938 kB / 0.5398 GB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.5101, allocations: 31.97 kB / 0.5398 GB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.5101, allocations: 4 kB / 0.5398 GB, free: 7.34 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.151e-05/0.5102, allocations: 109.6 kB / 0.5399 GB, free: 7.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.5102, allocations: 4 kB / 0.5399 GB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.785e-05/0.5103, allocations: 10.38 kB / 0.54 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.5103, allocations: 0 / 0.54 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.5103, allocations: 0 / 0.54 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.5103, allocations: 0 / 0.54 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.5109, allocations: 339 kB / 0.5403 GB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5109, allocations: 3.984 kB / 0.5403 GB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/0.5112, allocations: 37.72 kB / 0.5403 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.5112, allocations: 8.031 kB / 0.5403 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.5112, allocations: 3.984 kB / 0.5403 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.5112, allocations: 0 / 0.5403 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5112, allocations: 3.938 kB / 0.5403 GB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002642/0.5115, allocations: 206.1 kB / 0.5405 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.436e-05/0.5116, allocations: 81.91 kB / 0.5406 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.5116, allocations: 8.062 kB / 0.5406 GB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.5118, allocations: 31.97 kB / 0.5406 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.992e-05/0.5119, allocations: 16.66 kB / 0.5407 GB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.5119, allocations: 0.625 kB / 0.5407 GB, free: 6.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.294e-05/0.5119, allocations: 84.53 kB / 0.5407 GB, free: 6.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000237/0.5122, allocations: 16 kB / 0.5408 GB, free: 6.344 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_comp) * Number of discrete variables: 0 () * Number of discrete 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 (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.0001686/0.5124, allocations: 103.1 kB / 0.5409 GB, free: 6.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001439/0.5125, allocations: 38 kB / 0.5409 GB, free: 6.203 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5125, allocations: 0 / 0.5409 GB, free: 6.203 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.406e-05/0.5126, allocations: 29.3 kB / 0.5409 GB, free: 6.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.5128, allocations: 0 / 0.5409 GB, free: 6.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.5138, allocations: 283.4 kB / 0.5412 GB, free: 5.887 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004164/0.5142, allocations: 0.7075 MB / 0.5419 GB, free: 5.152 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5142, allocations: 3.938 kB / 0.5419 GB, free: 5.148 MB / 378.7 MB Notification: Performance of Templates: time 0.002861/0.5171, allocations: 0.8947 MB / 0.5428 GB, free: 4.273 MB / 378.7 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)