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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_CardiovascularSystem_GCG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_CardiovascularSystem_GCG",fmuType="me",version="2.0",platforms={"static"}) [: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.00244/0.00244, allocations: 176.7 kB / 7.452 MB, free: 2.32 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.074/1.074, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.0008692/0.0008692, allocations: 94.3 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2578/0.2578, allocations: 37.07 MB / 368 MB, free: 47.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0985/0.3563, allocations: 66.2 MB / 434.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09621/0.4526, allocations: 60.09 MB / 494.3 MB, free: 8.648 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2987/0.7513, allocations: 170.7 MB / 0.6494 GB, free: 8.73 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.7516, allocations: 76.8 kB / 0.6494 GB, free: 8.656 MB / 474.7 MB 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 1.34/2.092, allocations: 440.3 MB / 1.079 GB, free: 33.05 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/2.092, allocations: 11.78 kB / 1.079 GB, free: 33.05 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003754/2.092, allocations: 171.8 kB / 1.08 GB, free: 32.97 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004115/2.096, allocations: 2.635 MB / 1.082 GB, free: 32.61 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/2.096, allocations: 34.84 kB / 1.082 GB, free: 32.61 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/2.096, allocations: 68.34 kB / 1.082 GB, free: 32.61 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001758/2.098, allocations: 1.324 MB / 1.084 GB, free: 32.61 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/2.1, allocations: 1.237 MB / 1.085 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/2.1, allocations: 0 / 1.085 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.562e-05/2.1, allocations: 4.938 kB / 1.085 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/2.1, allocations: 24.44 kB / 1.085 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007387/2.107, allocations: 6.376 MB / 1.091 GB, free: 29.89 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/2.109, allocations: 1.362 MB / 1.092 GB, free: 29.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006554/2.109, allocations: 0.6237 MB / 1.093 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004133/2.114, allocations: 3.763 MB / 1.097 GB, free: 28.01 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/2.114, allocations: 38.94 kB / 1.097 GB, free: 27.97 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=67): time 1.823e-06/2.114, allocations: 0 / 1.097 GB, free: 27.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=67): time 0.002469/2.116, allocations: 1.333 MB / 1.098 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.874e-05/2.116, allocations: 58.47 kB / 1.098 GB, free: 27.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002888/2.119, allocations: 2.451 MB / 1.1 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.285e-05/2.119, allocations: 29.27 kB / 1.1 GB, free: 27.56 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/2.119, allocations: 0.5 MB / 1.101 GB, free: 27.27 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/2.119, allocations: 240.2 kB / 1.101 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-05/2.12, allocations: 2.156 kB / 1.101 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.813e-05/2.12, allocations: 351.7 kB / 1.102 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006214/2.12, allocations: 0.5194 MB / 1.102 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007473/2.121, allocations: 0.8932 MB / 1.103 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/2.123, allocations: 0.692 MB / 1.104 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/2.123, allocations: 2.406 kB / 1.104 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003209/2.126, allocations: 1.747 MB / 1.105 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/2.126, allocations: 11.06 kB / 1.105 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/2.126, allocations: 11.31 kB / 1.105 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/2.126, allocations: 191.2 kB / 1.105 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/2.127, allocations: 282.3 kB / 1.106 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/2.128, allocations: 2.845 MB / 1.109 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/2.13, allocations: 193.7 kB / 1.109 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/2.13, allocations: 77.5 kB / 1.109 GB, free: 23.5 MB / 0.5105 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.0002241/2.131, allocations: 165.3 kB / 1.109 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002715/2.131, allocations: 127.6 kB / 1.109 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/2.133, allocations: 1.483 MB / 1.111 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/2.133, allocations: 9.969 kB / 1.111 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/2.133, allocations: 0 / 1.111 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/2.133, allocations: 5.703 kB / 1.111 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/2.135, allocations: 1.499 MB / 1.112 GB, free: 23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/2.135, allocations: 0 / 1.112 GB, free: 23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007572/2.136, allocations: 177.2 kB / 1.112 GB, free: 23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002464/2.136, allocations: 181 kB / 1.112 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.526e-05/2.136, allocations: 17.78 kB / 1.112 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/2.137, allocations: 2.817 MB / 1.115 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/2.137, allocations: 0 / 1.115 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002988/2.14, allocations: 2.231 MB / 1.117 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004379/2.145, allocations: 3.655 MB / 1.121 GB, free: 19.44 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/2.146, allocations: 0.6577 MB / 1.121 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004062/2.146, allocations: 9.094 kB / 1.121 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/2.148, allocations: 116.8 kB / 1.122 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/2.148, allocations: 51.62 kB / 1.122 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-05/2.148, allocations: 44.73 kB / 1.122 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002099/2.15, allocations: 1.929 MB / 1.124 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005102/2.155, allocations: 2.228 MB / 1.126 GB, free: 18.75 MB / 0.5105 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.004149/2.159, allocations: 2.886 MB / 1.129 GB, free: 18.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001456/2.161, allocations: 1.133 MB / 1.13 GB, free: 18.19 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/2.161, allocations: 0 / 1.13 GB, free: 18.19 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006832/2.161, allocations: 0.5517 MB / 1.13 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/2.163, allocations: 378.9 kB / 1.131 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/2.167, allocations: 2.409 MB / 1.133 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/2.168, allocations: 1.501 MB / 1.134 GB, free: 16.95 MB / 0.5105 GB Notification: Performance of SimCode: time 4.91e-07/2.168, allocations: 0 / 1.134 GB, free: 16.95 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_CardiovascularSystem_GCG_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_CardiovascularSystem_GCG.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe 2>&1)