Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.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.Kofranek2014.NonPulsatileCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation",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.001003/0.001003, allocations: 180.9 kB / 7.65 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.443/1.443, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.000902/0.0009019, allocations: 91.34 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.2638/0.2638, allocations: 37.08 MB / 368.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.566e-05/2.568e-05, allocations: 0 / 434.7 MB, free: 22.99 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.14, allocations: 60.09 MB / 494.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.548/0.6881, allocations: 171 MB / 0.6502 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.6884, allocations: 85.02 kB / 0.6503 GB, free: 12.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.258/1.946, allocations: 276.1 MB / 0.92 GB, free: 56.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.653e-06/1.946, allocations: 0 / 0.92 GB, free: 56.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.479e-05/1.946, allocations: 26.92 kB / 0.92 GB, free: 56.8 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.006829/1.953, allocations: 2.217 MB / 0.9222 GB, free: 55.97 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.924e-05/1.953, allocations: 15.73 kB / 0.9222 GB, free: 55.96 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003392/1.954, allocations: 109.6 kB / 0.9223 GB, free: 55.91 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001699/1.955, allocations: 0.715 MB / 0.923 GB, free: 55.66 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-05/1.955, allocations: 22.62 kB / 0.923 GB, free: 55.66 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/1.956, allocations: 47.69 kB / 0.923 GB, free: 55.66 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001153/1.957, allocations: 0.5971 MB / 0.9236 GB, free: 55.65 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/1.958, allocations: 0.6889 MB / 0.9243 GB, free: 55.52 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/1.958, allocations: 3.844 kB / 0.9243 GB, free: 55.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/1.958, allocations: 1.969 kB / 0.9243 GB, free: 55.52 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/1.958, allocations: 19.83 kB / 0.9243 GB, free: 55.52 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004518/1.963, allocations: 3.172 MB / 0.9274 GB, free: 53.89 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009198/1.964, allocations: 0.6276 MB / 0.928 GB, free: 53.76 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005681/1.964, allocations: 324.4 kB / 0.9283 GB, free: 53.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002617/1.967, allocations: 2.081 MB / 0.9304 GB, free: 52.32 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/1.967, allocations: 36 kB / 0.9304 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=44): time 2.214e-06/1.967, allocations: 0 / 0.9304 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=44): time 0.001447/1.968, allocations: 0.586 MB / 0.931 GB, free: 52.17 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/1.968, allocations: 57.42 kB / 0.931 GB, free: 52.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006568/1.969, allocations: 0.5791 MB / 0.9316 GB, free: 51.98 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.704e-05/1.969, allocations: 27.42 kB / 0.9316 GB, free: 51.95 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/1.969, allocations: 488.3 kB / 0.9321 GB, free: 51.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/1.969, allocations: 153.5 kB / 0.9322 GB, free: 51.68 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/1.969, allocations: 0 / 0.9322 GB, free: 51.68 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001044/1.969, allocations: 390.9 kB / 0.9326 GB, free: 51.36 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/1.97, allocations: 219.3 kB / 0.9328 GB, free: 51.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/1.97, allocations: 496.7 kB / 0.9333 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/1.971, allocations: 355 kB / 0.9336 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/1.971, allocations: 3.812 kB / 0.9336 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00194/1.973, allocations: 0.9291 MB / 0.9345 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/1.973, allocations: 10.03 kB / 0.9345 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/1.973, allocations: 6.562 kB / 0.9346 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004476/1.974, allocations: 171.7 kB / 0.9347 GB, free: 50.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000633/1.974, allocations: 177.7 kB / 0.9349 GB, free: 50.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/1.976, allocations: 2.27 MB / 0.9371 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/1.977, allocations: 96.58 kB / 0.9372 GB, free: 48.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/1.977, allocations: 36.53 kB / 0.9372 GB, free: 48.77 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: TotalSystemicResistance.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: leftHeart.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: TotalPulmonaryResistance.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: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 85 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002372/1.977, allocations: 141.4 kB / 0.9374 GB, free: 48.66 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001078/1.978, allocations: 0.5869 MB / 0.9379 GB, free: 48.54 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/1.978, allocations: 79.22 kB / 0.938 GB, free: 48.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/1.98, allocations: 0.6477 MB / 0.9386 GB, free: 48.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/1.98, allocations: 3.875 kB / 0.9387 GB, free: 48.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/1.98, allocations: 0 / 0.9387 GB, free: 48.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/1.98, allocations: 3.75 kB / 0.9387 GB, free: 48.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/1.981, allocations: 0.6537 MB / 0.9393 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/1.981, allocations: 1.938 kB / 0.9393 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004548/1.981, allocations: 87.56 kB / 0.9394 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003643/1.982, allocations: 159.8 kB / 0.9395 GB, free: 48.19 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.721e-05/1.982, allocations: 10.83 kB / 0.9395 GB, free: 48.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/1.983, allocations: 2.239 MB / 0.9417 GB, free: 46.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.983, allocations: 6.953 kB / 0.9417 GB, free: 46.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/1.984, allocations: 0.9906 MB / 0.9427 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003862/1.985, allocations: 227.7 kB / 0.9429 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/1.985, allocations: 0 / 0.9429 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005435/1.985, allocations: 48.98 kB / 0.943 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.397e-05/1.985, allocations: 35.66 kB / 0.943 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/1.985, allocations: 15.78 kB / 0.943 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005207/1.986, allocations: 446.8 kB / 0.9434 GB, free: 45.65 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.81e-07/1.986, allocations: 0 / 0.9434 GB, free: 45.65 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003519/1.989, allocations: 1.097 MB / 0.9445 GB, free: 45.39 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (PulmonaryArteries.enthalpy,PulmonaryArteries.mass,PulmonaryVeins.enthalpy,PulmonaryVeins.mass,SystemicVeins.enthalpy,SystemicVeins.mass,SystemicArteries.enthalpy,SystemicArteries.mass) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005624/1.995, allocations: 3.276 MB / 0.9477 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00137/1.997, allocations: 0.5798 MB / 0.9483 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/1.997, allocations: 0 / 0.9483 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004432/1.997, allocations: 270.4 kB / 0.9485 GB, free: 44.35 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/1.999, allocations: 334.3 kB / 0.9489 GB, free: 44.35 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/2.004, allocations: 2.027 MB / 0.9508 GB, free: 43.69 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/2.004, allocations: 1.017 MB / 0.9518 GB, free: 42.99 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0007483/2.005, allocations: 151.4 kB / 0.952 GB, free: 42.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004549/2.005, allocations: 326.6 kB / 0.9523 GB, free: 42.97 MB / 0.4948 GB Notification: Performance of SimCode: time 2.966e-06/2.005, allocations: 0 / 0.9523 GB, free: 42.97 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07623/2.082, allocations: 40.53 MB / 0.9919 GB, free: 40.28 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/2.082, allocations: 161 kB / 0.992 GB, free: 40.09 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.225/5.307, allocations: 0 / 0.992 GB, free: 40.09 MB / 0.4948 GB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Kofranek2014_NonPulsatileCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe 2>&1)