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-master/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-master/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09637/0.09637, allocations: 15.27 MB / 30.54 MB, free: 5.719 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.0008443/0.0008444, allocations: 110.8 kB / 35.57 MB, free: 1.133 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.0009724/0.0009724, allocations: 184.5 kB / 40.69 MB, free: 4.742 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.31/1.31, allocations: 223.3 MB / 268.9 MB, free: 2.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.118/0.118, allocations: 23.39 MB / 347.7 MB, free: 6.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005309/0.0005311, allocations: 19.94 kB / 420.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2442, allocations: 60.47 MB / 480.7 MB, free: 36.43 MB / 350.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.06618/0.3104, allocations: 74.15 MB / 0.5419 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0169/0.3274, allocations: 15.31 MB / 0.5568 GB, free: 10.85 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.3286, allocations: 35.69 kB / 0.5568 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007536/0.3294, allocations: 198.8 kB / 0.557 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003877/0.3333, allocations: 1.433 MB / 0.5584 GB, free: 9.176 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005668/0.339, allocations: 1.908 MB / 0.5603 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00221/0.3412, allocations: 2.211 MB / 0.5625 GB, free: 5.039 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006541/0.3419, allocations: 371 kB / 0.5628 GB, free: 4.672 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002474/0.3444, allocations: 1.05 MB / 0.5638 GB, free: 3.617 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009783/0.3454, allocations: 0.5486 MB / 0.5644 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.3456, allocations: 32 kB / 0.5644 GB, free: 3.035 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004452/0.35, allocations: 1.477 MB / 0.5658 GB, free: 1.555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003249/0.3504, allocations: 155.4 kB / 0.566 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006089/0.351, allocations: 352.2 kB / 0.5663 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004682/0.3557, allocations: 1.951 MB / 0.5682 GB, free: 15.09 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.3558, allocations: 7.938 kB / 0.5682 GB, free: 15.09 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3558, allocations: 0 / 0.5682 GB, free: 15.09 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.07e-05/0.3558, allocations: 0 / 0.5682 GB, free: 15.09 MB / 430.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.002413/0.3582, allocations: 1.047 MB / 0.5693 GB, free: 13.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.3583, allocations: 8.031 kB / 0.5693 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.3585, allocations: 67.25 kB / 0.5693 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.3592, allocations: 448.4 kB / 0.5698 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.3592, allocations: 36.94 kB / 0.5698 GB, free: 13.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-05/0.3593, allocations: 44 kB / 0.5698 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.3604, allocations: 0.5616 MB / 0.5704 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.3604, allocations: 3.984 kB / 0.5704 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.262e-05/0.3605, allocations: 19.94 kB / 0.5704 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3605, allocations: 12 kB / 0.5704 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.3616, allocations: 0.5035 MB / 0.5709 GB, free: 12.22 MB / 430.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.00308/0.3647, allocations: 2.263 MB / 0.5731 GB, free: 9.801 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009618/0.3657, allocations: 0.5346 MB / 0.5736 GB, free: 9.238 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005536/0.3662, allocations: 275.2 kB / 0.5739 GB, free: 8.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001753/0.368, allocations: 1.399 MB / 0.5753 GB, free: 7.414 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005562/0.3686, allocations: 271.1 kB / 0.5755 GB, free: 7.137 MB / 430.1 MB Notification: Performance of pre-optimization done (n=38): time 2.264e-06/0.3686, allocations: 3.938 kB / 0.5755 GB, free: 7.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=38): time 0.001683/0.3703, allocations: 0.7492 MB / 0.5763 GB, free: 6.355 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.3704, allocations: 59.41 kB / 0.5763 GB, free: 6.285 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005289/0.3709, allocations: 465.8 kB / 0.5768 GB, free: 5.824 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.3709, allocations: 33.7 kB / 0.5768 GB, free: 5.785 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.3711, allocations: 287.7 kB / 0.5771 GB, free: 5.496 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.3713, allocations: 142 kB / 0.5772 GB, free: 5.355 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.79e-05/0.3714, allocations: 53.69 kB / 0.5773 GB, free: 5.297 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3715, allocations: 362.8 kB / 0.5776 GB, free: 4.934 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004863/0.372, allocations: 217 kB / 0.5778 GB, free: 4.723 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005354/0.3726, allocations: 348.5 kB / 0.5781 GB, free: 4.328 MB / 430.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.004014/0.3766, allocations: 1.765 MB / 0.5799 GB, free: 2.457 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3766, allocations: 0 / 0.5799 GB, free: 2.457 MB / 430.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00147/0.3781, allocations: 0.7218 MB / 0.5806 GB, free: 1.723 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.3781, allocations: 35.58 kB / 0.5806 GB, free: 1.684 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3782, allocations: 4 kB / 0.5806 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.3783, allocations: 44.83 kB / 0.5807 GB, free: 1.633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005269/0.3789, allocations: 123.9 kB / 0.5808 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003709/0.3792, allocations: 0.5601 MB / 0.5813 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006319/0.3799, allocations: 79.5 kB / 0.5814 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-05/0.38, allocations: 31.92 kB / 0.5814 GB, free: 0.8164 MB / 430.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: 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.0002574/0.3802, allocations: 193.6 kB / 0.5816 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.036e-05/0.3803, allocations: 47.44 kB / 0.5817 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1949/0.5752, allocations: 0.5667 MB / 0.5822 GB, free: 105.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.5753, allocations: 4 kB / 0.5822 GB, free: 105.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.5753, allocations: 1.281 kB / 0.5822 GB, free: 105.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.5753, allocations: 1.641 kB / 0.5822 GB, free: 105.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009366/0.5763, allocations: 0.5144 MB / 0.5827 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.5763, allocations: 0 / 0.5827 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.5767, allocations: 79.33 kB / 0.5828 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001439/0.5769, allocations: 36.03 kB / 0.5828 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.577, allocations: 15.08 kB / 0.5828 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003151/0.5773, allocations: 0.5512 MB / 0.5834 GB, free: 105.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.5773, allocations: 3.609 kB / 0.5834 GB, free: 105.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.5792, allocations: 0.7972 MB / 0.5842 GB, free: 105.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.5795, allocations: 177.9 kB / 0.5843 GB, free: 105 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.5796, allocations: 6.812 kB / 0.5843 GB, free: 105 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004605/0.5801, allocations: 52.77 kB / 0.5844 GB, free: 105 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.5802, allocations: 33.38 kB / 0.5844 GB, free: 105 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.5802, allocations: 15.61 kB / 0.5844 GB, free: 105 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004316/0.5807, allocations: 325.3 kB / 0.5847 GB, free: 104.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5807, allocations: 0 / 0.5847 GB, free: 104.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001211/0.5819, allocations: 0.4924 MB / 0.5852 GB, free: 104.8 MB / 430.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.001353/0.5833, allocations: 0.7196 MB / 0.5859 GB, free: 104.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.5845, allocations: 0.5792 MB / 0.5865 GB, free: 104.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5845, allocations: 0 / 0.5865 GB, free: 104.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.585, allocations: 243.3 kB / 0.5867 GB, free: 104.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.5863, allocations: 232 kB / 0.5869 GB, free: 104.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.5886, allocations: 1.462 MB / 0.5884 GB, free: 103.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.5891, allocations: 0.861 MB / 0.5892 GB, free: 102.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005858/0.5897, allocations: 134.8 kB / 0.5893 GB, free: 102.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.5899, allocations: 55.72 kB / 0.5894 GB, free: 102.9 MB / 430.1 MB Notification: Performance of SimCode: time 6.02e-07/0.5899, allocations: 0 / 0.5894 GB, free: 102.9 MB / 430.1 MB Notification: Performance of Templates: time 0.02213/0.612, allocations: 16.86 MB / 0.6059 GB, free: 91.06 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)