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/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.Kofranek2014.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") translateModel(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1194/0.1194, allocations: 15.26 MB / 30.24 MB, free: 6.223 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.0008543/0.0008545, allocations: 107.7 kB / 35.25 MB, free: 1.355 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.001217/0.001217, allocations: 180.5 kB / 40.35 MB, free: 4.98 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.493/1.493, allocations: 223.3 MB / 268.6 MB, free: 2.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.144/0.144, allocations: 23.39 MB / 347.3 MB, free: 6.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004418, allocations: 23.98 kB / 419.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3384, allocations: 60.47 MB / 480 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation): time 0.06618/0.4047, allocations: 70.11 MB / 0.5373 GB, free: 14.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03431/0.439, allocations: 24.93 MB / 0.5616 GB, free: 5.246 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003639/0.4427, allocations: 55.56 kB / 0.5617 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.4442, allocations: 313.7 kB / 0.562 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01068/0.4549, allocations: 2.52 MB / 0.5644 GB, free: 2.348 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01119/0.4662, allocations: 2.257 MB / 0.5666 GB, free: 80 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005113/0.4713, allocations: 3.227 MB / 0.5698 GB, free: 12.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.4727, allocations: 0.5994 MB / 0.5704 GB, free: 12.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00398/0.4767, allocations: 1.357 MB / 0.5717 GB, free: 10.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002059/0.4787, allocations: 0.9106 MB / 0.5726 GB, free: 9.941 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.4789, allocations: 48 kB / 0.5726 GB, free: 9.895 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007133/0.486, allocations: 1.63 MB / 0.5742 GB, free: 8.262 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005308/0.4866, allocations: 251 kB / 0.5745 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008261/0.4874, allocations: 229.2 kB / 0.5747 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.4921, allocations: 2.165 MB / 0.5768 GB, free: 5.613 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4921, allocations: 0 / 0.5768 GB, free: 5.613 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4921, allocations: 0 / 0.5768 GB, free: 5.613 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.4921, allocations: 0 / 0.5768 GB, free: 5.613 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003075/0.4952, allocations: 1.48 MB / 0.5782 GB, free: 4.082 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.4953, allocations: 8.031 kB / 0.5782 GB, free: 4.074 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.4955, allocations: 114.7 kB / 0.5783 GB, free: 3.961 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.4965, allocations: 0.6161 MB / 0.5789 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.719e-05/0.4966, allocations: 61.95 kB / 0.579 GB, free: 3.242 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.4967, allocations: 75.91 kB / 0.5791 GB, free: 3.168 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.4982, allocations: 0.8649 MB / 0.5799 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.12e-05/0.4983, allocations: 7.938 kB / 0.5799 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-05/0.4984, allocations: 36 kB / 0.58 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.4984, allocations: 19.94 kB / 0.58 GB, free: 2.188 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.4999, allocations: 0.7623 MB / 0.5807 GB, free: 1.426 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.3518/0.8517, allocations: 3.684 MB / 0.5843 GB, free: 106.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.8532, allocations: 0.6692 MB / 0.585 GB, free: 106.7 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009574/0.8541, allocations: 486.4 kB / 0.5854 GB, free: 106.6 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003369/0.8575, allocations: 2.146 MB / 0.5875 GB, free: 104.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.8576, allocations: 41.39 kB / 0.5876 GB, free: 104.8 MB / 430.1 MB Notification: Performance of pre-optimization done (n=53): time 2.514e-06/0.8576, allocations: 0 / 0.5876 GB, free: 104.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=53): time 0.002765/0.8603, allocations: 1.338 MB / 0.5889 GB, free: 104.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.8604, allocations: 55.78 kB / 0.5889 GB, free: 104 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.8615, allocations: 0.8004 MB / 0.5897 GB, free: 103.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.337e-05/0.8616, allocations: 36.45 kB / 0.5898 GB, free: 103.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002892/0.8619, allocations: 461.3 kB / 0.5902 GB, free: 103.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.862, allocations: 197.4 kB / 0.5904 GB, free: 103.1 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.8621, allocations: 14.5 kB / 0.5904 GB, free: 103.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.8622, allocations: 341.9 kB / 0.5907 GB, free: 102.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007366/0.8629, allocations: 308.2 kB / 0.591 GB, free: 102.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008861/0.8638, allocations: 0.5178 MB / 0.5915 GB, free: 102.4 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: PulmonaryArteries.mass = PulmonaryArteries.tm_start (PulmonaryArteries.m_start[1] + PulmonaryArteries.massOffset = PulmonaryArteries.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: PulmonaryVeins.mass = PulmonaryVeins.tm_start (PulmonaryVeins.m_start[1] + PulmonaryVeins.massOffset = PulmonaryVeins.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: SystemicArteries.mass = SystemicArteries.tm_start (SystemicArteries.m_start[1] + SystemicArteries.massOffset = SystemicArteries.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: SystemicVeins.substanceMasses[1] = SystemicVeins.m_start[1] (SystemicVeins.tm_start - SystemicVeins.massOffset = SystemicVeins.m_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006252/0.8701, allocations: 2.441 MB / 0.5939 GB, free: 101.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.8701, allocations: 0 / 0.5939 GB, free: 101.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002146/0.8723, allocations: 1.091 MB / 0.595 GB, free: 100.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.8723, allocations: 11.92 kB / 0.595 GB, free: 100.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.8724, allocations: 7.906 kB / 0.595 GB, free: 100.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004349/0.8728, allocations: 173.9 kB / 0.5952 GB, free: 100.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006847/0.8735, allocations: 196.6 kB / 0.5953 GB, free: 100.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.8746, allocations: 2.231 MB / 0.5975 GB, free: 98.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/0.8759, allocations: 118.1 kB / 0.5976 GB, free: 98.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.834e-05/0.876, allocations: 43.56 kB / 0.5977 GB, free: 98.44 MB / 430.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: PulmonaryArteries.mass = PulmonaryArteries.tm_start PulmonaryVeins.mass = PulmonaryVeins.tm_start SystemicArteries.mass = SystemicArteries.tm_start SystemicVeins.substanceMasses[1] = SystemicVeins.m_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 94 * 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.0004944/0.8765, allocations: 240.6 kB / 0.5979 GB, free: 98.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.8767, allocations: 94.27 kB / 0.598 GB, free: 98.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.8783, allocations: 0.8212 MB / 0.5988 GB, free: 97.72 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.8783, allocations: 11.8 kB / 0.5988 GB, free: 97.72 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.8784, allocations: 4 kB / 0.5988 GB, free: 97.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.8784, allocations: 3.984 kB / 0.5988 GB, free: 97.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.8795, allocations: 0.7886 MB / 0.5996 GB, free: 97.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.8795, allocations: 0 / 0.5996 GB, free: 97.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.88, allocations: 100.4 kB / 0.5997 GB, free: 97.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/0.8804, allocations: 182.3 kB / 0.5999 GB, free: 96.99 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.8805, allocations: 19.88 kB / 0.5999 GB, free: 96.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009653/0.8815, allocations: 2.226 MB / 0.6021 GB, free: 94.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.8815, allocations: 0 / 0.6021 GB, free: 94.78 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.8834, allocations: 1.247 MB / 0.6033 GB, free: 94.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.8838, allocations: 239.8 kB / 0.6035 GB, free: 93.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.8839, allocations: 19.52 kB / 0.6035 GB, free: 93.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000528/0.8844, allocations: 56.3 kB / 0.6036 GB, free: 93.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.8846, allocations: 44.5 kB / 0.6036 GB, free: 93.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.8846, allocations: 19.98 kB / 0.6036 GB, free: 93.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000587/0.8852, allocations: 0.542 MB / 0.6042 GB, free: 93.17 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8852, allocations: 0 / 0.6042 GB, free: 93.17 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002073/0.8873, allocations: 0.7742 MB / 0.6049 GB, free: 92.48 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (PulmonaryArteries.enthalpy,PulmonaryArteries.substanceMasses[1],PulmonaryVeins.enthalpy,PulmonaryVeins.substanceMasses[1],SystemicVeins.enthalpy,SystemicVeins.substanceMasses[1],SystemicArteries.enthalpy,SystemicArteries.substanceMasses[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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.001845/0.8891, allocations: 1.045 MB / 0.6059 GB, free: 91.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.8907, allocations: 0.7693 MB / 0.6067 GB, free: 90.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.8907, allocations: 0 / 0.6067 GB, free: 90.91 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005752/0.8913, allocations: 363 kB / 0.607 GB, free: 90.56 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.8932, allocations: 423.9 kB / 0.6074 GB, free: 90.17 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.8961, allocations: 2.32 MB / 0.6097 GB, free: 87.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.8965, allocations: 1.005 MB / 0.6107 GB, free: 86.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007302/0.8973, allocations: 175.4 kB / 0.6109 GB, free: 86.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.8975, allocations: 75.25 kB / 0.6109 GB, free: 86.57 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8975, allocations: 0 / 0.6109 GB, free: 86.57 MB / 430.1 MB Notification: Performance of Templates: time 0.03873/0.9362, allocations: 28.08 MB / 0.6384 GB, free: 58.73 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe 2>&1)