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.001157/0.001157, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 221.4 MB / 234.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009199/0.0009201, allocations: 94.33 kB / 285.6 MB, free: 12.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.602/0.602, allocations: 37.06 MB / 373.6 MB, free: 45.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.63e-05/3.656e-05, allocations: 0 / 441.6 MB, free: 15.38 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1594, allocations: 60.09 MB / 0.4899 GB, free: 3.188 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6144/0.7739, allocations: 171.7 MB / 0.6576 GB, free: 0.793 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.7742, allocations: 85.31 kB / 0.6577 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.318/2.093, allocations: 279.1 MB / 0.9302 GB, free: 58.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 9.22e-07/2.093, allocations: 0 / 0.9302 GB, free: 58.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.682e-05/2.093, allocations: 26.42 kB / 0.9302 GB, free: 58.6 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.004365/2.097, allocations: 2.211 MB / 0.9324 GB, free: 57.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/2.097, allocations: 10.38 kB / 0.9324 GB, free: 57.53 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001354/2.097, allocations: 109.9 kB / 0.9325 GB, free: 57.49 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/2.097, allocations: 113.2 kB / 0.9326 GB, free: 57.44 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/2.099, allocations: 0.7223 MB / 0.9333 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.97e-05/2.099, allocations: 55.59 kB / 0.9334 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/2.099, allocations: 72.31 kB / 0.9334 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/2.1, allocations: 0.7845 MB / 0.9342 GB, free: 57 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/2.1, allocations: 0 / 0.9342 GB, free: 57 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-05/2.1, allocations: 33.86 kB / 0.9342 GB, free: 57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/2.1, allocations: 20.88 kB / 0.9343 GB, free: 57 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009322/2.101, allocations: 0.6415 MB / 0.9349 GB, free: 56.99 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003999/2.105, allocations: 3.316 MB / 0.9381 GB, free: 55.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007567/2.106, allocations: 0.6373 MB / 0.9388 GB, free: 55.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004584/2.106, allocations: 333.3 kB / 0.9391 GB, free: 55.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002274/2.109, allocations: 2.123 MB / 0.9411 GB, free: 53.71 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/2.109, allocations: 42.41 kB / 0.9412 GB, free: 53.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/2.109, allocations: 0 / 0.9412 GB, free: 53.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=44): time 0.001047/2.11, allocations: 0.6178 MB / 0.9418 GB, free: 53.54 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/2.11, allocations: 58.97 kB / 0.9418 GB, free: 53.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007089/2.11, allocations: 0.6943 MB / 0.9425 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/2.111, allocations: 39.36 kB / 0.9426 GB, free: 53.31 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/2.111, allocations: 474.8 kB / 0.943 GB, free: 53.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/2.111, allocations: 167.9 kB / 0.9432 GB, free: 53 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/2.111, allocations: 14.09 kB / 0.9432 GB, free: 53 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.559e-05/2.111, allocations: 336.6 kB / 0.9435 GB, free: 52.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/2.111, allocations: 234 kB / 0.9437 GB, free: 52.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004199/2.112, allocations: 0.4978 MB / 0.9442 GB, free: 52.37 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000408/2.112, allocations: 299.1 kB / 0.9445 GB, free: 52.36 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/2.112, allocations: 0 / 0.9445 GB, free: 52.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001409/2.114, allocations: 0.9457 MB / 0.9454 GB, free: 52.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/2.114, allocations: 11.56 kB / 0.9454 GB, free: 52.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/2.114, allocations: 7.688 kB / 0.9454 GB, free: 52.24 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004075/2.114, allocations: 169.9 kB / 0.9456 GB, free: 52.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005986/2.115, allocations: 175.6 kB / 0.9458 GB, free: 52.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008005/2.115, allocations: 2.23 MB / 0.948 GB, free: 50.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009158/2.116, allocations: 126.2 kB / 0.9481 GB, free: 50.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.66e-05/2.116, allocations: 44.17 kB / 0.9481 GB, free: 50.09 MB / 0.4948 GB 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.0001164/2.117, allocations: 146.4 kB / 0.9483 GB, free: 49.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/2.117, allocations: 93.89 kB / 0.9483 GB, free: 49.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/2.118, allocations: 0.6687 MB / 0.949 GB, free: 49.83 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/2.118, allocations: 6.344 kB / 0.949 GB, free: 49.83 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/2.118, allocations: 3.953 kB / 0.949 GB, free: 49.82 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/2.118, allocations: 6.969 kB / 0.949 GB, free: 49.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007229/2.119, allocations: 0.7338 MB / 0.9497 GB, free: 49.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/2.119, allocations: 0 / 0.9497 GB, free: 49.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/2.119, allocations: 86.28 kB / 0.9498 GB, free: 49.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003042/2.119, allocations: 165.6 kB / 0.95 GB, free: 49.59 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/2.119, allocations: 15.77 kB / 0.95 GB, free: 49.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007445/2.12, allocations: 2.214 MB / 0.9521 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/2.12, allocations: 0 / 0.9521 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/2.121, allocations: 1.021 MB / 0.9531 GB, free: 47.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/2.122, allocations: 237.7 kB / 0.9534 GB, free: 47.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/2.122, allocations: 13.69 kB / 0.9534 GB, free: 47.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005271/2.122, allocations: 55.56 kB / 0.9534 GB, free: 47.13 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.528e-05/2.122, allocations: 31.62 kB / 0.9535 GB, free: 47.13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/2.122, allocations: 17.72 kB / 0.9535 GB, free: 47.13 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005205/2.123, allocations: 0.5329 MB / 0.954 GB, free: 47.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/2.123, allocations: 0 / 0.954 GB, free: 47.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002637/2.126, allocations: 1.138 MB / 0.9551 GB, free: 46.79 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.004287/2.13, allocations: 3.312 MB / 0.9584 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001033/2.131, allocations: 0.6076 MB / 0.9589 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/2.131, allocations: 0 / 0.9589 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004281/2.131, allocations: 288.3 kB / 0.9592 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001661/2.133, allocations: 386.3 kB / 0.9596 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/2.136, allocations: 2.076 MB / 0.9616 GB, free: 45.07 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/2.137, allocations: 1.02 MB / 0.9626 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0006327/2.137, allocations: 170.8 kB / 0.9628 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/2.138, allocations: 330.8 kB / 0.9631 GB, free: 44.35 MB / 0.4948 GB Notification: Performance of SimCode: time 5.91e-07/2.138, allocations: 0 / 0.9631 GB, free: 44.35 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06174/2.199, allocations: 48.07 MB / 1.01 GB, free: 29.68 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/2.2, allocations: 199.1 kB / 1.01 GB, free: 29.45 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.748/5.948, allocations: 0 / 1.01 GB, free: 29.45 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)