Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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/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/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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) 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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1437/0.1437, allocations: 15.28 MB / 30.51 MB, free: 4.34 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001679/0.00168, allocations: 110.8 kB / 35.48 MB, free: 3.383 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.00149, allocations: 200.5 kB / 40.59 MB, free: 7.445 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.745/1.745, allocations: 222.9 MB / 268.4 MB, free: 7.254 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.2465/0.2465, allocations: 23.35 MB / 346.1 MB, free: 428 kB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002136, allocations: 111.8 kB / 417.8 MB, free: 30.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1568, allocations: 59.36 MB / 477.1 MB, free: 3.195 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MinimalCirculation): time 0.4598/0.6167, allocations: 74.75 MB / 0.5389 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02029/0.637, allocations: 15.31 MB / 0.5539 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002345/0.6394, allocations: 35.75 kB / 0.5539 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.6407, allocations: 209.2 kB / 0.5541 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006477/0.6472, allocations: 1.445 MB / 0.5555 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00864/0.6559, allocations: 1.951 MB / 0.5574 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002809/0.6587, allocations: 1.527 MB / 0.5589 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008439/0.6596, allocations: 431.4 kB / 0.5593 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003457/0.6631, allocations: 1.133 MB / 0.5604 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001433/0.6645, allocations: 0.5657 MB / 0.561 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.6647, allocations: 56 kB / 0.5611 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005546/0.6702, allocations: 1.516 MB / 0.5625 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002738/0.6705, allocations: 175.2 kB / 0.5627 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005597/0.6711, allocations: 347 kB / 0.563 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006912/0.678, allocations: 1.995 MB / 0.565 GB, free: 1.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.6781, allocations: 0 / 0.565 GB, free: 1.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.6781, allocations: 0 / 0.565 GB, free: 1.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.6781, allocations: 0 / 0.565 GB, free: 1.512 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002948/0.6811, allocations: 1.141 MB / 0.5661 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.274e-05/0.6812, allocations: 8.031 kB / 0.5661 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.6813, allocations: 84.8 kB / 0.5662 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.6814, allocations: 63.25 kB / 0.5662 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008727/0.6823, allocations: 463.8 kB / 0.5667 GB, free: 0 / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.6825, allocations: 54.52 kB / 0.5667 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.807e-05/0.6826, allocations: 51.84 kB / 0.5668 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.6838, allocations: 0.5468 MB / 0.5673 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.6838, allocations: 8 kB / 0.5673 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.802e-05/0.6839, allocations: 16 kB / 0.5673 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.6839, allocations: 12 kB / 0.5674 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.6849, allocations: 492.7 kB / 0.5678 GB, free: 15.02 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.003221/0.6882, allocations: 2.253 MB / 0.57 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009486/0.6891, allocations: 0.5196 MB / 0.5705 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005431/0.6897, allocations: 256.7 kB / 0.5708 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002026/0.6917, allocations: 1.398 MB / 0.5721 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007119/0.6925, allocations: 261 kB / 0.5724 GB, free: 10.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.033e-05/0.6925, allocations: 0 / 0.5724 GB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001906/0.6944, allocations: 0.7179 MB / 0.5731 GB, free: 9.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.6945, allocations: 59.41 kB / 0.5732 GB, free: 9.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006362/0.6951, allocations: 469.8 kB / 0.5736 GB, free: 8.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.693e-05/0.6952, allocations: 29.7 kB / 0.5736 GB, free: 8.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.6955, allocations: 295.2 kB / 0.5739 GB, free: 8.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.6956, allocations: 137 kB / 0.574 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.6958, allocations: 106.1 kB / 0.5741 GB, free: 8.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.696, allocations: 366.7 kB / 0.5745 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004797/0.6965, allocations: 212.9 kB / 0.5747 GB, free: 7.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005756/0.6971, allocations: 340.5 kB / 0.575 GB, free: 7.316 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.004033/0.7011, allocations: 1.7 MB / 0.5767 GB, free: 5.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.7011, allocations: 4 kB / 0.5767 GB, free: 5.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001632/0.7028, allocations: 0.6962 MB / 0.5774 GB, free: 4.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.815e-05/0.7029, allocations: 29.7 kB / 0.5774 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.7029, allocations: 4 kB / 0.5774 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/0.7031, allocations: 44.83 kB / 0.5774 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005591/0.7037, allocations: 116.1 kB / 0.5775 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005064/0.7042, allocations: 0.5678 MB / 0.5781 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000733/0.7049, allocations: 75.59 kB / 0.5782 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.705, allocations: 23.98 kB / 0.5782 GB, free: 3.902 MB / 398.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003836/0.7054, allocations: 197.5 kB / 0.5784 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.7055, allocations: 51.28 kB / 0.5784 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.7068, allocations: 0.5373 MB / 0.579 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.7068, allocations: 8 kB / 0.579 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.7068, allocations: 0 / 0.579 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.7068, allocations: 3.984 kB / 0.579 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008022/0.7077, allocations: 0.5334 MB / 0.5795 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.7077, allocations: 3.984 kB / 0.5795 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.7081, allocations: 67.89 kB / 0.5796 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001366/0.7082, allocations: 36.83 kB / 0.5796 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.233e-05/0.7083, allocations: 12 kB / 0.5796 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000506/0.7088, allocations: 0.5485 MB / 0.5801 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.7088, allocations: 3.938 kB / 0.5801 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.7104, allocations: 0.7669 MB / 0.5809 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003253/0.7107, allocations: 180.4 kB / 0.5811 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.041e-05/0.7108, allocations: 15.94 kB / 0.5811 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.7113, allocations: 43.89 kB / 0.5811 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.7114, allocations: 31.95 kB / 0.5812 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.7115, allocations: 19.98 kB / 0.5812 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004306/0.7119, allocations: 319.1 kB / 0.5815 GB, free: 428 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7119, allocations: 0 / 0.5815 GB, free: 428 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0019/0.7138, allocations: 0.4954 MB / 0.582 GB, free: 15.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00399/0.7178, allocations: 1.933 MB / 0.5838 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.7194, allocations: 0.5938 MB / 0.5844 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.7195, allocations: 0 / 0.5844 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006227/0.7201, allocations: 239.5 kB / 0.5847 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.7215, allocations: 241.6 kB / 0.5849 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009466/0.731, allocations: 5.274 MB / 0.59 GB, free: 7.488 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005598/0.7316, allocations: 0.863 MB / 0.5909 GB, free: 6.594 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006203/0.7322, allocations: 124.3 kB / 0.591 GB, free: 6.473 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.7326, allocations: 203.3 kB / 0.5912 GB, free: 6.273 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.7326, allocations: 3.938 kB / 0.5912 GB, free: 6.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05262/0.7852, allocations: 22.57 MB / 0.6132 GB, free: 15.86 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/0.7855, allocations: 227.8 kB / 0.6135 GB, free: 15.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.905/3.691, allocations: 4 kB / 0.6135 GB, free: 15.59 MB / 446.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)