Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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.2881/0.2881, allocations: 54.39 MB / 61.68 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.001281/0.001281, allocations: 182.9 kB / 75.37 MB, free: 1.562 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.763/1.763, allocations: 194.2 MB / 283.2 MB, free: 3.527 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.001842/0.001842, allocations: 121.7 kB / 341.3 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.758e-06/9.778e-06, allocations: 4 kB / 404.9 MB, free: 27.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1575, allocations: 57.64 MB / 462.6 MB, free: 2 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.244/5.401, allocations: 2.146 GB / 2.598 GB, free: 57.28 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/5.402, allocations: 87.95 kB / 2.598 GB, free: 57.19 MB / 0.4948 GB Notification: Performance of FrontEnd: time 7.513/12.91, allocations: 1.757 GB / 4.355 GB, free: 40.81 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0009273/12.92, allocations: 99.81 kB / 4.355 GB, free: 40.79 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 788 * Number of variables: 788 Notification: Performance of Generate backend data structure: time 0.02041/12.94, allocations: 3.78 MB / 4.358 GB, free: 39.16 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/12.94, allocations: 14.12 kB / 4.358 GB, free: 39.16 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/12.95, allocations: 1.004 MB / 4.359 GB, free: 38.94 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01322/12.96, allocations: 2.604 MB / 4.362 GB, free: 38.35 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004433/12.96, allocations: 188.2 kB / 4.362 GB, free: 38.28 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001965/12.96, allocations: 206.6 kB / 4.362 GB, free: 38.27 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009464/12.97, allocations: 2.86 MB / 4.365 GB, free: 38.26 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01182/12.98, allocations: 3.197 MB / 4.368 GB, free: 38 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001652/12.98, allocations: 3.344 kB / 4.368 GB, free: 38 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/12.98, allocations: 3.875 kB / 4.368 GB, free: 38 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001494/12.98, allocations: 119 kB / 4.368 GB, free: 38 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02605/13.01, allocations: 15.13 MB / 4.383 GB, free: 29.99 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002572/13.01, allocations: 1.775 MB / 4.385 GB, free: 29.95 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/13.01, allocations: 1.015 MB / 4.386 GB, free: 29.93 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/13.01, allocations: 52.77 kB / 4.386 GB, free: 29.93 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.71e-05/13.02, allocations: 69 kB / 4.386 GB, free: 29.89 MB / 0.573 GB Notification: Performance of pre-optimization done (n=186): time 5.29e-06/13.02, allocations: 0 / 4.386 GB, free: 29.89 MB / 0.573 GB Notification: Performance of matching and sorting (n=186): time 0.006393/13.02, allocations: 2.175 MB / 4.388 GB, free: 29.68 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/13.02, allocations: 71.91 kB / 4.388 GB, free: 29.62 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003308/13.02, allocations: 1.575 MB / 4.39 GB, free: 29.39 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004892/13.03, allocations: 32.23 kB / 4.39 GB, free: 29.36 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007823/13.03, allocations: 1.15 MB / 4.391 GB, free: 28.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008464/13.03, allocations: 0.6324 MB / 4.391 GB, free: 28.27 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/13.03, allocations: 0 / 4.391 GB, free: 28.27 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001915/13.03, allocations: 403.5 kB / 4.392 GB, free: 27.97 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/13.03, allocations: 0.8422 MB / 4.393 GB, free: 27.96 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/13.03, allocations: 1.54 MB / 4.394 GB, free: 27.14 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/13.03, allocations: 1.123 MB / 4.395 GB, free: 27.12 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/13.03, allocations: 5.562 kB / 4.395 GB, free: 27.12 MB / 0.573 GB Notification: Performance of matching and sorting (n=292) (initialization): time 0.004299/13.04, allocations: 2.557 MB / 4.398 GB, free: 26.92 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001461/13.04, allocations: 6.918 MB / 4.405 GB, free: 19.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/13.04, allocations: 18.09 kB / 4.405 GB, free: 19.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.542e-05/13.04, allocations: 32.62 kB / 4.405 GB, free: 19.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01235/13.05, allocations: 2.211 MB / 4.407 GB, free: 19.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005253/13.06, allocations: 4.907 MB / 4.412 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005473/13.06, allocations: 425.5 kB / 4.412 GB, free: 15.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003909/13.06, allocations: 102.8 kB / 4.412 GB, free: 15.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/13.06, allocations: 4.594 kB / 4.412 GB, free: 15.3 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00388/13.07, allocations: 2.194 MB / 4.414 GB, free: 15.25 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/13.07, allocations: 16 kB / 4.414 GB, free: 15.25 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.331e-05/13.07, allocations: 32.19 kB / 4.414 GB, free: 15.25 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/13.07, allocations: 0.5293 MB / 4.415 GB, free: 15.25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.078e-05/13.07, allocations: 37.66 kB / 4.415 GB, free: 15.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004039/13.07, allocations: 329.1 kB / 4.415 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/13.07, allocations: 97.67 kB / 4.415 GB, free: 15.16 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (292): * Single equations (assignments): 282 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008556/13.07, allocations: 168.9 kB / 4.415 GB, free: 15.05 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001014/13.07, allocations: 269.7 kB / 4.416 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008498/13.07, allocations: 285.1 kB / 4.416 GB, free: 14.88 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/13.07, allocations: 18.31 kB / 4.416 GB, free: 14.88 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.372e-05/13.07, allocations: 0 / 4.416 GB, free: 14.88 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002837/13.08, allocations: 1.811 MB / 4.418 GB, free: 14.59 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/13.09, allocations: 4.808 MB / 4.422 GB, free: 14.13 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/13.09, allocations: 0 / 4.422 GB, free: 14.13 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01131/13.1, allocations: 2.107 MB / 4.424 GB, free: 14.13 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-05/13.1, allocations: 7.406 kB / 4.424 GB, free: 14.13 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002501/13.1, allocations: 32.72 kB / 4.424 GB, free: 14.13 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01471/13.12, allocations: 10.06 MB / 4.434 GB, free: 21.34 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/13.12, allocations: 3.828 kB / 4.434 GB, free: 21.34 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006179/13.12, allocations: 3.38 MB / 4.438 GB, free: 20.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002524/13.12, allocations: 0.6156 MB / 4.438 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004581/13.12, allocations: 12.69 kB / 4.438 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/13.13, allocations: 296.9 kB / 4.438 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/13.13, allocations: 94.78 kB / 4.439 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002105/13.13, allocations: 94.28 kB / 4.439 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002004/13.13, allocations: 1.157 MB / 4.44 GB, free: 20.39 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006807/13.14, allocations: 2.133 MB / 4.442 GB, free: 20.08 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008933/13.15, allocations: 5.229 MB / 4.447 GB, free: 17.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0238/13.17, allocations: 6.216 MB / 4.453 GB, free: 17.57 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.805e-05/13.17, allocations: 2.719 kB / 4.453 GB, free: 17.57 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.02618/13.2, allocations: 4.651 MB / 4.458 GB, free: 17.3 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009889/13.21, allocations: 1.418 MB / 4.459 GB, free: 17.18 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01707/13.22, allocations: 5.737 MB / 4.465 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004435/13.23, allocations: 2.6 MB / 4.467 GB, free: 14.52 MB / 0.5886 GB Notification: Performance of SimCode: time 1.643e-06/13.23, allocations: 0 / 4.467 GB, free: 14.52 MB / 0.5886 GB Notification: Performance of Templates: time 0.6004/13.83, allocations: 86.82 MB / 4.552 GB, free: 85.37 MB / 0.5886 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)