Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.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.CardiovascularSystem_GCG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG") translateModel(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1154/0.1154, allocations: 15.28 MB / 30.4 MB, free: 4.395 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.001018/0.001018, allocations: 106.7 kB / 35.38 MB, free: 3.461 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.001155/0.001155, allocations: 189.1 kB / 40.46 MB, free: 7.547 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.354/1.354, allocations: 222.9 MB / 268.3 MB, free: 7.566 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1327/0.1327, allocations: 23.36 MB / 346 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 107.8 kB / 417.5 MB, free: 30.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1086, allocations: 59.38 MB / 476.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.2908/0.3995, allocations: 109.1 MB / 0.5722 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04484/0.4443, allocations: 45.76 MB / 0.6169 GB, free: 2.004 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003476/0.4479, allocations: 91.31 kB / 0.617 GB, free: 1.914 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.45, allocations: 0.5204 MB / 0.6175 GB, free: 1.391 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.4605, allocations: 3.459 MB / 0.6209 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01157/0.4721, allocations: 3.995 MB / 0.6248 GB, free: 9.898 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005189/0.4773, allocations: 5.677 MB / 0.6303 GB, free: 4.203 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0018/0.4791, allocations: 0.978 MB / 0.6313 GB, free: 3.203 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007723/0.4869, allocations: 2.784 MB / 0.634 GB, free: 416 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002652/0.4896, allocations: 1.452 MB / 0.6354 GB, free: 14.95 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005298/0.4901, allocations: 92 kB / 0.6355 GB, free: 14.86 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008504/0.4986, allocations: 3.376 MB / 0.6388 GB, free: 11.47 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008041/0.4995, allocations: 474.5 kB / 0.6392 GB, free: 11.01 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001771/0.5013, allocations: 0.7931 MB / 0.64 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.5115, allocations: 4.471 MB / 0.6444 GB, free: 5.727 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.5116, allocations: 0 / 0.6444 GB, free: 5.727 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.5116, allocations: 0 / 0.6444 GB, free: 5.727 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.5116, allocations: 0 / 0.6444 GB, free: 5.727 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.003942/0.5156, allocations: 2.223 MB / 0.6465 GB, free: 3.445 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.5156, allocations: 8.594 kB / 0.6466 GB, free: 3.438 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.5159, allocations: 158.1 kB / 0.6467 GB, free: 3.281 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.5172, allocations: 0.9344 MB / 0.6476 GB, free: 2.305 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.111e-05/0.5172, allocations: 82.03 kB / 0.6477 GB, free: 2.223 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.5174, allocations: 115.9 kB / 0.6478 GB, free: 2.109 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002263/0.5197, allocations: 1.412 MB / 0.6492 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.5197, allocations: 0 / 0.6492 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.626e-05/0.5198, allocations: 48 kB / 0.6492 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.5198, allocations: 27.98 kB / 0.6493 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.5222, allocations: 1.417 MB / 0.6506 GB, free: 15.11 MB / 478.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.00708/0.5293, allocations: 5.608 MB / 0.6561 GB, free: 9.172 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/0.5312, allocations: 1.396 MB / 0.6575 GB, free: 7.707 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.5326, allocations: 0.7727 MB / 0.6582 GB, free: 6.934 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004037/0.5366, allocations: 2.958 MB / 0.6611 GB, free: 3.668 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.5367, allocations: 47.14 kB / 0.6612 GB, free: 3.613 MB / 478.1 MB Notification: Performance of pre-optimization done (n=76): time 2.234e-06/0.5367, allocations: 3.938 kB / 0.6612 GB, free: 3.609 MB / 478.1 MB Notification: Performance of matching and sorting (n=76): time 0.003817/0.5405, allocations: 2.161 MB / 0.6633 GB, free: 1.332 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.5406, allocations: 64 kB / 0.6633 GB, free: 1.258 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.5421, allocations: 1.197 MB / 0.6645 GB, free: 48 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.993e-05/0.5422, allocations: 41.7 kB / 0.6646 GB, free: 0 / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004316/0.5426, allocations: 0.612 MB / 0.6652 GB, free: 15.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.5428, allocations: 276 kB / 0.6654 GB, free: 15.11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003274/0.5432, allocations: 222.6 kB / 0.6656 GB, free: 14.88 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.5433, allocations: 349.9 kB / 0.666 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009963/0.5443, allocations: 0.5569 MB / 0.6665 GB, free: 13.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.5455, allocations: 0.8564 MB / 0.6673 GB, free: 13 MB / 494.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: pulmonaryVeinsAndLeftAtrium.mass = pulmonaryVeinsAndLeftAtrium.tm_start (pulmonaryVeinsAndLeftAtrium.m_start[1] + pulmonaryVeinsAndLeftAtrium.massOffset = pulmonaryVeinsAndLeftAtrium.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: 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: 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) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: rightAtrium.mass = rightAtrium.tm_start (rightAtrium.m_start[1] + rightAtrium.massOffset = rightAtrium.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/0.5562, allocations: 5.898 MB / 0.6731 GB, free: 6.895 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/0.5562, allocations: 0 / 0.6731 GB, free: 6.895 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003261/0.5595, allocations: 1.738 MB / 0.6748 GB, free: 5.133 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.5596, allocations: 8 kB / 0.6748 GB, free: 5.125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.5596, allocations: 8 kB / 0.6748 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004255/0.56, allocations: 196.2 kB / 0.675 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.5611, allocations: 251.6 kB / 0.6752 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.5628, allocations: 2.774 MB / 0.678 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/0.5641, allocations: 178.7 kB / 0.6781 GB, free: 1.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.5642, allocations: 55.97 kB / 0.6782 GB, free: 1.531 MB / 494.1 MB Warning: The initial conditions are over specified. The following 5 initial equations are redundant, so they are removed from the initialization system: pulmonaryVeinsAndLeftAtrium.mass = pulmonaryVeinsAndLeftAtrium.tm_start pulmonaryArteries.mass = pulmonaryArteries.tm_start arteries.mass = arteries.tm_start veins.mass = veins.tm_start rightAtrium.mass = rightAtrium.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (135): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005056/0.5647, allocations: 349.7 kB / 0.6785 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002533/0.565, allocations: 122.5 kB / 0.6786 GB, free: 1.059 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.5675, allocations: 1.392 MB / 0.68 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.5676, allocations: 11.98 kB / 0.68 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5676, allocations: 3.938 kB / 0.68 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.5676, allocations: 3.984 kB / 0.68 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.5691, allocations: 1.169 MB / 0.6811 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.5691, allocations: 0 / 0.6811 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007636/0.5699, allocations: 147.8 kB / 0.6813 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003591/0.5703, allocations: 188.1 kB / 0.6815 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.925e-05/0.5703, allocations: 19.98 kB / 0.6815 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/0.5719, allocations: 2.76 MB / 0.6842 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.572, allocations: 3.938 kB / 0.6842 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003478/0.5754, allocations: 2.171 MB / 0.6863 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005137/0.576, allocations: 299.3 kB / 0.6866 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002194/0.5762, allocations: 19.98 kB / 0.6866 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008791/0.5771, allocations: 91.77 kB / 0.6867 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.5773, allocations: 68.55 kB / 0.6868 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.881e-05/0.5773, allocations: 27.98 kB / 0.6868 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00109/0.5784, allocations: 0.8256 MB / 0.6876 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5784, allocations: 0 / 0.6876 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002595/0.581, allocations: 1.092 MB / 0.6887 GB, free: 6.512 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pulmonaryVeinsAndLeftAtrium.enthalpy,pulmonaryVeinsAndLeftAtrium.substanceMasses[1],pulmonaryArteries.enthalpy,pulmonaryArteries.substanceMasses[1],arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1],rightAtrium.enthalpy,rightAtrium.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 (76): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003166/0.5842, allocations: 1.398 MB / 0.69 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002863/0.5871, allocations: 1.336 MB / 0.6913 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5871, allocations: 0 / 0.6913 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.5883, allocations: 0.6373 MB / 0.692 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.591, allocations: 485.2 kB / 0.6924 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004906/0.5959, allocations: 3.551 MB / 0.6959 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008534/0.5968, allocations: 1.236 MB / 0.6971 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001043/0.5978, allocations: 265 kB / 0.6973 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/0.5982, allocations: 103.4 kB / 0.6974 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of SimCode: time 1.543e-06/0.5982, allocations: 0 / 0.6974 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of Templates: time 0.2341/0.8323, allocations: 37.4 MB / 0.734 GB, free: 182.6 MB / 0.5137 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe 2>&1)