Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG") translateModel(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG") [: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/Complex 4.0.0+maint.om/package.mo): time 0.003337/0.003337, allocations: 183 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.17/1.17, allocations: 221.4 MB / 229.3 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009688/0.0009688, allocations: 95.31 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3396/0.3396, allocations: 37.07 MB / 368 MB, free: 47.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.492e-06/6.523e-06, allocations: 4 kB / 434.1 MB, free: 4.949 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1224, allocations: 60.08 MB / 494.2 MB, free: 8.758 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4106/0.533, allocations: 170.7 MB / 0.6493 GB, free: 8.781 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.5334, allocations: 79.94 kB / 0.6494 GB, free: 8.703 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.606/2.14, allocations: 436.8 MB / 1.076 GB, free: 35.44 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001049/2.14, allocations: 44.67 kB / 1.076 GB, free: 35.44 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.007001/2.147, allocations: 3.401 MB / 1.079 GB, free: 34.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/2.147, allocations: 11.72 kB / 1.079 GB, free: 34.16 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003847/2.147, allocations: 170 kB / 1.079 GB, free: 34.07 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004085/2.151, allocations: 2.629 MB / 1.082 GB, free: 33.72 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/2.151, allocations: 38.97 kB / 1.082 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/2.151, allocations: 59.62 kB / 1.082 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001764/2.153, allocations: 1.327 MB / 1.083 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/2.155, allocations: 1.24 MB / 1.085 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/2.155, allocations: 0 / 1.085 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.792e-05/2.155, allocations: 1.656 kB / 1.085 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/2.155, allocations: 24.31 kB / 1.085 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007647/2.163, allocations: 6.382 MB / 1.091 GB, free: 30.98 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/2.164, allocations: 1.359 MB / 1.092 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/2.165, allocations: 0.6196 MB / 1.093 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004176/2.169, allocations: 3.762 MB / 1.097 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/2.169, allocations: 42.84 kB / 1.097 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=67): time 3.897e-06/2.169, allocations: 5.156 kB / 1.097 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67): time 0.002901/2.172, allocations: 1.319 MB / 1.098 GB, free: 28.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/2.172, allocations: 59.81 kB / 1.098 GB, free: 28.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004088/2.176, allocations: 2.455 MB / 1.1 GB, free: 28.69 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002044/2.176, allocations: 34.62 kB / 1.1 GB, free: 28.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003168/2.177, allocations: 0.495 MB / 1.101 GB, free: 28.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003332/2.177, allocations: 236.8 kB / 1.101 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.329e-05/2.177, allocations: 0 / 1.101 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001215/2.177, allocations: 351.9 kB / 1.101 GB, free: 27.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007144/2.178, allocations: 0.5257 MB / 1.102 GB, free: 27.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009132/2.179, allocations: 0.8955 MB / 1.103 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/2.181, allocations: 0.6842 MB / 1.103 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/2.181, allocations: 4.062 kB / 1.103 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003585/2.184, allocations: 1.755 MB / 1.105 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/2.184, allocations: 3.938 kB / 1.105 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/2.184, allocations: 11.16 kB / 1.105 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004026/2.185, allocations: 190.2 kB / 1.105 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/2.186, allocations: 278.7 kB / 1.106 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/2.187, allocations: 2.849 MB / 1.108 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/2.189, allocations: 191.4 kB / 1.109 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/2.19, allocations: 78.88 kB / 1.109 GB, free: 24.61 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: largeVeins.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: muscle.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: kidney.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: nonMuscle.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pulmonary.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002681/2.19, allocations: 166.6 kB / 1.109 GB, free: 24.49 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002891/2.19, allocations: 123.9 kB / 1.109 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/2.193, allocations: 1.481 MB / 1.11 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/2.193, allocations: 9.938 kB / 1.11 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/2.193, allocations: 3.938 kB / 1.11 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/2.193, allocations: 3.609 kB / 1.11 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/2.195, allocations: 1.496 MB / 1.112 GB, free: 24.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/2.195, allocations: 2.844 kB / 1.112 GB, free: 24.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007929/2.195, allocations: 176.5 kB / 1.112 GB, free: 24.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000282/2.196, allocations: 175.4 kB / 1.112 GB, free: 24.06 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-05/2.196, allocations: 21.16 kB / 1.112 GB, free: 24.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001377/2.197, allocations: 2.82 MB / 1.115 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/2.197, allocations: 0 / 1.115 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003169/2.2, allocations: 2.233 MB / 1.117 GB, free: 21.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/2.202, allocations: 0.6711 MB / 1.118 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004134/2.202, allocations: 0 / 1.118 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/2.203, allocations: 119.7 kB / 1.118 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/2.204, allocations: 50.53 kB / 1.118 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.685e-05/2.204, allocations: 48.08 kB / 1.118 GB, free: 21.01 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002232/2.206, allocations: 1.93 MB / 1.12 GB, free: 20.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004314/2.21, allocations: 1.819 MB / 1.122 GB, free: 20.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pulmonaryVeinsAndLeftAtrium.enthalpy,pulmonaryVeinsAndLeftAtrium.mass,pulmonaryArteries.enthalpy,pulmonaryArteries.mass,arteries.enthalpy,arteries.mass,veins.enthalpy,veins.mass,rightAtrium.enthalpy,rightAtrium.mass) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 62 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004679/2.215, allocations: 2.886 MB / 1.125 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001705/2.217, allocations: 1.134 MB / 1.126 GB, free: 19.94 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/2.217, allocations: 0 / 1.126 GB, free: 19.94 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007058/2.217, allocations: 0.552 MB / 1.126 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/2.219, allocations: 385 kB / 1.127 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004409/2.224, allocations: 2.404 MB / 1.129 GB, free: 19.43 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/2.225, allocations: 1.472 MB / 1.13 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of SimCode: time 8.22e-07/2.225, allocations: 0 / 1.13 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of Templates: time 0.07186/2.297, allocations: 57.33 MB / 1.186 GB, free: 30.72 MB / 0.5417 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe 2>&1)