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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 173.9 kB / 7.648 MB, free: 1.422 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.545/1.545, allocations: 221.5 MB / 229.6 MB, free: 7.57 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.0009364/0.0009366, allocations: 93.8 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2632/0.2632, allocations: 37.08 MB / 368.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.655e-05/1.658e-05, allocations: 3.938 kB / 434.7 MB, free: 23.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1362, allocations: 60.09 MB / 494.8 MB, free: 10.96 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5478/0.684, allocations: 170.8 MB / 0.65 GB, free: 12.77 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.6844, allocations: 80.2 kB / 0.6501 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.597/2.282, allocations: 433.8 MB / 1.074 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.683e-06/2.282, allocations: 0 / 1.074 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001052/2.282, allocations: 39.98 kB / 1.074 GB, free: 8.055 MB / 0.4948 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.009047/2.291, allocations: 3.432 MB / 1.077 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/2.291, allocations: 15.98 kB / 1.077 GB, free: 4.555 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006346/2.292, allocations: 170.6 kB / 1.077 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004316/2.296, allocations: 2.631 MB / 1.08 GB, free: 1.699 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.667e-05/2.296, allocations: 35.95 kB / 1.08 GB, free: 1.664 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/2.296, allocations: 64 kB / 1.08 GB, free: 1.602 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001791/2.298, allocations: 1.312 MB / 1.081 GB, free: 296 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/2.3, allocations: 1.233 MB / 1.082 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/2.3, allocations: 3.938 kB / 1.082 GB, free: 15 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.912e-05/2.3, allocations: 4 kB / 1.082 GB, free: 15 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/2.3, allocations: 24 kB / 1.082 GB, free: 14.98 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009549/2.31, allocations: 6.348 MB / 1.089 GB, free: 8.328 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/2.312, allocations: 1.645 MB / 1.09 GB, free: 6.598 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009666/2.313, allocations: 0.6572 MB / 1.091 GB, free: 5.938 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005354/2.318, allocations: 3.768 MB / 1.095 GB, free: 1.863 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/2.318, allocations: 39.12 kB / 1.095 GB, free: 1.816 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=65): time 2.504e-06/2.318, allocations: 0 / 1.095 GB, free: 1.816 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65): time 0.002799/2.321, allocations: 1.289 MB / 1.096 GB, free: 0.5039 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/2.321, allocations: 59.91 kB / 1.096 GB, free: 444 kB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003648/2.325, allocations: 2.384 MB / 1.098 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001222/2.325, allocations: 25.7 kB / 1.098 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005289/2.325, allocations: 0.7018 MB / 1.099 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000268/2.326, allocations: 232.6 kB / 1.099 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.253e-05/2.326, allocations: 4 kB / 1.099 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001465/2.326, allocations: 349.9 kB / 1.1 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007689/2.327, allocations: 0.5101 MB / 1.1 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/2.328, allocations: 0.8721 MB / 1.101 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/2.33, allocations: 0.6952 MB / 1.102 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-06/2.33, allocations: 4 kB / 1.102 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.004014/2.334, allocations: 1.739 MB / 1.103 GB, free: 8.711 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/2.334, allocations: 12 kB / 1.103 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/2.334, allocations: 12 kB / 1.103 GB, free: 8.688 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004013/2.334, allocations: 192.4 kB / 1.103 GB, free: 8.484 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/2.335, allocations: 303.5 kB / 1.104 GB, free: 8.188 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/2.337, allocations: 2.82 MB / 1.107 GB, free: 5.238 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/2.339, allocations: 202.9 kB / 1.107 GB, free: 5.039 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001519/2.339, allocations: 83.97 kB / 1.107 GB, free: 4.957 MB / 0.5261 GB 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: 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: 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 (124): * Single equations (assignments): 119 * 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.0002911/2.34, allocations: 151.7 kB / 1.107 GB, free: 4.805 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002556/2.342, allocations: 1.281 MB / 1.108 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003028/2.343, allocations: 130.4 kB / 1.108 GB, free: 3.367 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/2.345, allocations: 1.4 MB / 1.11 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/2.345, allocations: 12 kB / 1.11 GB, free: 1.926 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/2.345, allocations: 0 / 1.11 GB, free: 1.926 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/2.345, allocations: 7.938 kB / 1.11 GB, free: 1.918 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/2.347, allocations: 1.496 MB / 1.111 GB, free: 400 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/2.347, allocations: 0 / 1.111 GB, free: 400 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/2.348, allocations: 191.7 kB / 1.111 GB, free: 208 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003165/2.349, allocations: 172.2 kB / 1.112 GB, free: 20 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.477e-05/2.349, allocations: 19.97 kB / 1.112 GB, free: 0 / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3458/2.694, allocations: 2.789 MB / 1.114 GB, free: 51.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/2.695, allocations: 1.406 kB / 1.114 GB, free: 51.61 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004162/2.699, allocations: 2.172 MB / 1.116 GB, free: 51.44 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/2.7, allocations: 0.6565 MB / 1.117 GB, free: 51.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003401/2.701, allocations: 3.672 kB / 1.117 GB, free: 51.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/2.702, allocations: 138.2 kB / 1.117 GB, free: 51.31 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/2.702, allocations: 56.62 kB / 1.117 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/2.702, allocations: 49.3 kB / 1.117 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002907/2.705, allocations: 1.89 MB / 1.119 GB, free: 51.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.71e-07/2.705, allocations: 0 / 1.119 GB, free: 51.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005508/2.711, allocations: 1.794 MB / 1.121 GB, free: 51.18 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 (65): * Single equations (assignments): 60 * 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.01014/2.721, allocations: 5.163 MB / 1.126 GB, free: 50.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002473/2.723, allocations: 1.095 MB / 1.127 GB, free: 50.29 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/2.723, allocations: 2.719 kB / 1.127 GB, free: 50.29 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009575/2.724, allocations: 0.5293 MB / 1.127 GB, free: 50.29 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/2.727, allocations: 406.6 kB / 1.128 GB, free: 50.28 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008463/2.736, allocations: 3.32 MB / 1.131 GB, free: 49.69 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008688/2.736, allocations: 1.244 MB / 1.132 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00157/2.738, allocations: 442.2 kB / 1.133 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/2.739, allocations: 0.6004 MB / 1.133 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of SimCode: time 7.62e-07/2.739, allocations: 0 / 1.133 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/2.842, allocations: 68.27 MB / 1.2 GB, free: 44.66 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/2.842, allocations: 139.1 kB / 1.2 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.132/6.974, allocations: 0 / 1.2 GB, free: 44.48 MB / 0.5261 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)