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: 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/package.mo): time 0.1096/0.1096, allocations: 15.29 MB / 30.79 MB, free: 4.078 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.001129/0.001129, allocations: 106.7 kB / 35.77 MB, free: 3.281 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.001506/0.001506, allocations: 193.1 kB / 40.88 MB, free: 7.195 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.394/1.394, allocations: 222.9 MB / 268.7 MB, free: 6.953 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1378/0.1378, allocations: 23.35 MB / 346.4 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 115.8 kB / 418.2 MB, free: 30.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1256, allocations: 59.37 MB / 477.6 MB, free: 2.988 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.3395/0.4651, allocations: 75.49 MB / 0.5401 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.481, allocations: 15.34 MB / 0.5551 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.4823, allocations: 23.88 kB / 0.5551 GB, free: 5.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007929/0.4831, allocations: 247.5 kB / 0.5553 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004283/0.4874, allocations: 1.559 MB / 0.5569 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00601/0.4934, allocations: 2.138 MB / 0.5589 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001725/0.4952, allocations: 1.509 MB / 0.5604 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000499/0.4957, allocations: 435.3 kB / 0.5608 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.4982, allocations: 1.152 MB / 0.562 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007366/0.499, allocations: 0.5462 MB / 0.5625 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.43e-05/0.4991, allocations: 60 kB / 0.5626 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00443/0.5035, allocations: 1.482 MB / 0.564 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.5037, allocations: 173.8 kB / 0.5642 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004208/0.5042, allocations: 346 kB / 0.5645 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004484/0.5087, allocations: 2.048 MB / 0.5665 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.5087, allocations: 0 / 0.5665 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5087, allocations: 0 / 0.5665 GB, free: 14.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.5087, allocations: 0 / 0.5665 GB, free: 14.32 MB / 398.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.002129/0.5108, allocations: 1.144 MB / 0.5676 GB, free: 13.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.5109, allocations: 12.03 kB / 0.5676 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.511, allocations: 70.69 kB / 0.5677 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.5116, allocations: 446.5 kB / 0.5681 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.5117, allocations: 43.48 kB / 0.5682 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.971e-05/0.5118, allocations: 43.69 kB / 0.5682 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009469/0.5127, allocations: 0.5476 MB / 0.5687 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.5128, allocations: 4 kB / 0.5687 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.944e-05/0.5128, allocations: 20 kB / 0.5688 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.5128, allocations: 15.98 kB / 0.5688 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.5138, allocations: 491.7 kB / 0.5692 GB, free: 11.89 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.003148/0.517, allocations: 2.261 MB / 0.5714 GB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008966/0.5179, allocations: 0.5233 MB / 0.572 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005051/0.5184, allocations: 256.7 kB / 0.5722 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001673/0.5201, allocations: 1.405 MB / 0.5736 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005362/0.5207, allocations: 264.9 kB / 0.5738 GB, free: 6.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/0.5207, allocations: 0 / 0.5738 GB, free: 6.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001605/0.5223, allocations: 0.718 MB / 0.5745 GB, free: 6.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.5223, allocations: 55.41 kB / 0.5746 GB, free: 6.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000512/0.5229, allocations: 461.8 kB / 0.575 GB, free: 5.641 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.5229, allocations: 33.7 kB / 0.5751 GB, free: 5.602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.5231, allocations: 290.6 kB / 0.5753 GB, free: 5.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.5232, allocations: 141.5 kB / 0.5755 GB, free: 5.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.5234, allocations: 106.1 kB / 0.5756 GB, free: 5.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.5236, allocations: 362.7 kB / 0.5759 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.524, allocations: 209 kB / 0.5761 GB, free: 4.504 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005535/0.5246, allocations: 344.4 kB / 0.5764 GB, free: 4.113 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.003768/0.5284, allocations: 1.696 MB / 0.5781 GB, free: 2.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5284, allocations: 4 kB / 0.5781 GB, free: 2.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001328/0.5297, allocations: 0.6964 MB / 0.5788 GB, free: 1.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/0.5298, allocations: 33.7 kB / 0.5788 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.5298, allocations: 4 kB / 0.5788 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001456/0.5299, allocations: 44.81 kB / 0.5789 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005477/0.5305, allocations: 123.8 kB / 0.579 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003985/0.5309, allocations: 0.5563 MB / 0.5795 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005095/0.5314, allocations: 75.34 kB / 0.5796 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.536e-05/0.5315, allocations: 20 kB / 0.5796 GB, free: 0.707 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.0002604/0.5317, allocations: 185.7 kB / 0.5798 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.435e-05/0.5318, allocations: 51.38 kB / 0.5798 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.533, allocations: 0.5538 MB / 0.5804 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.533, allocations: 4 kB / 0.5804 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5331, allocations: 4 kB / 0.5804 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.5331, allocations: 0 / 0.5804 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005727/0.5336, allocations: 0.5304 MB / 0.5809 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.5337, allocations: 0 / 0.5809 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003496/0.534, allocations: 71.89 kB / 0.581 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.213e-05/0.5341, allocations: 32.83 kB / 0.581 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.5341, allocations: 15.98 kB / 0.581 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003691/0.5345, allocations: 0.5485 MB / 0.5816 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5345, allocations: 4.031 kB / 0.5816 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.536, allocations: 0.7669 MB / 0.5823 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.5362, allocations: 172.4 kB / 0.5825 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.123e-05/0.5363, allocations: 12 kB / 0.5825 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.5366, allocations: 23.91 kB / 0.5825 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.5367, allocations: 35.95 kB / 0.5825 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.5367, allocations: 15.98 kB / 0.5826 GB, free: 13.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003455/0.5371, allocations: 319.1 kB / 0.5829 GB, free: 13.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5371, allocations: 4 kB / 0.5829 GB, free: 13.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00145/0.5386, allocations: 0.5032 MB / 0.5834 GB, free: 12.75 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.001234/0.5398, allocations: 0.7244 MB / 0.5841 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.5411, allocations: 0.5914 MB / 0.5846 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5411, allocations: 3.938 kB / 0.5846 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004819/0.5416, allocations: 235.5 kB / 0.5849 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.5427, allocations: 249.8 kB / 0.5851 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.5448, allocations: 1.161 MB / 0.5862 GB, free: 9.816 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.5453, allocations: 0.8745 MB / 0.5871 GB, free: 8.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004154/0.5457, allocations: 120.4 kB / 0.5872 GB, free: 8.789 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.5458, allocations: 55.42 kB / 0.5873 GB, free: 8.734 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5458, allocations: 0 / 0.5873 GB, free: 8.734 MB / 414.1 MB Notification: Performance of Templates: time 0.02756/0.5734, allocations: 17.57 MB / 0.6044 GB, free: 7.262 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)