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/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.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/package.mo): time 0.1016/0.1016, allocations: 15.29 MB / 30.79 MB, free: 4.09 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.001185/0.001185, allocations: 104.6 kB / 35.78 MB, free: 3.254 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.001348/0.001348, allocations: 193.1 kB / 40.88 MB, free: 7.188 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.43/1.43, allocations: 222.9 MB / 268.7 MB, free: 6.844 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1449/0.1449, allocations: 23.36 MB / 346.4 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 111.8 kB / 418.2 MB, free: 30.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1119, allocations: 59.36 MB / 477.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.3555/0.4674, allocations: 107 MB / 0.5709 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05398/0.5214, allocations: 45.41 MB / 0.6152 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003372/0.5248, allocations: 47.75 kB / 0.6153 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002359/0.5272, allocations: 0.6558 MB / 0.6159 GB, free: 2.328 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01178/0.5391, allocations: 3.729 MB / 0.6195 GB, free: 14.58 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01336/0.5525, allocations: 4.479 MB / 0.6239 GB, free: 10.07 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004975/0.5575, allocations: 3.798 MB / 0.6276 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001763/0.5593, allocations: 1.135 MB / 0.6287 GB, free: 5.109 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006865/0.5662, allocations: 3.045 MB / 0.6317 GB, free: 2.051 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002798/0.569, allocations: 1.409 MB / 0.6331 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004412/0.5695, allocations: 136 kB / 0.6332 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01069/0.5802, allocations: 3.393 MB / 0.6365 GB, free: 13.1 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007973/0.581, allocations: 0.5142 MB / 0.637 GB, free: 12.59 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001432/0.5825, allocations: 0.8321 MB / 0.6378 GB, free: 11.75 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.5939, allocations: 4.654 MB / 0.6424 GB, free: 7.082 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.5939, allocations: 0 / 0.6424 GB, free: 7.082 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.5939, allocations: 0 / 0.6424 GB, free: 7.082 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.118e-05/0.594, allocations: 0 / 0.6424 GB, free: 7.082 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.004169/0.5981, allocations: 2.223 MB / 0.6445 GB, free: 4.801 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.5982, allocations: 12.03 kB / 0.6446 GB, free: 4.789 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000288/0.5985, allocations: 158.1 kB / 0.6447 GB, free: 4.633 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.5998, allocations: 0.9305 MB / 0.6456 GB, free: 3.656 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.603e-05/0.5999, allocations: 82.03 kB / 0.6457 GB, free: 3.574 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.6, allocations: 104 kB / 0.6458 GB, free: 3.473 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.6021, allocations: 1.413 MB / 0.6472 GB, free: 1.969 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.6021, allocations: 0 / 0.6472 GB, free: 1.969 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.656e-05/0.6022, allocations: 44 kB / 0.6472 GB, free: 1.926 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.6023, allocations: 28 kB / 0.6472 GB, free: 1.898 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002266/0.6045, allocations: 1.417 MB / 0.6486 GB, free: 492 kB / 462.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.006762/0.6113, allocations: 5.651 MB / 0.6541 GB, free: 10.49 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.6132, allocations: 1.384 MB / 0.6555 GB, free: 9.035 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.6145, allocations: 0.7805 MB / 0.6563 GB, free: 8.254 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003606/0.6181, allocations: 2.962 MB / 0.6592 GB, free: 4.984 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.6181, allocations: 47.22 kB / 0.6592 GB, free: 4.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=76): time 2.354e-06/0.6181, allocations: 4 kB / 0.6592 GB, free: 4.926 MB / 478.1 MB Notification: Performance of matching and sorting (n=76): time 0.003648/0.6218, allocations: 2.161 MB / 0.6613 GB, free: 2.648 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.6219, allocations: 64 kB / 0.6614 GB, free: 2.574 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.6233, allocations: 1.201 MB / 0.6625 GB, free: 1.359 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.396e-05/0.6234, allocations: 41.7 kB / 0.6626 GB, free: 1.312 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004347/0.6238, allocations: 0.6159 MB / 0.6632 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.6241, allocations: 280 kB / 0.6635 GB, free: 420 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003118/0.6244, allocations: 218.7 kB / 0.6637 GB, free: 196 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6245, allocations: 345.9 kB / 0.664 GB, free: 15.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009647/0.6255, allocations: 0.5608 MB / 0.6645 GB, free: 15.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.6267, allocations: 0.8564 MB / 0.6654 GB, free: 14.31 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.01077/0.6375, allocations: 5.895 MB / 0.6711 GB, free: 8.211 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/0.6375, allocations: 7.938 kB / 0.6711 GB, free: 8.203 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003333/0.6409, allocations: 1.73 MB / 0.6728 GB, free: 6.449 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.6409, allocations: 8 kB / 0.6728 GB, free: 6.441 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.6409, allocations: 13.48 kB / 0.6729 GB, free: 6.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004316/0.6414, allocations: 196.2 kB / 0.673 GB, free: 6.223 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.6424, allocations: 251.6 kB / 0.6733 GB, free: 5.977 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/0.6444, allocations: 2.777 MB / 0.676 GB, free: 3.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.6457, allocations: 130.7 kB / 0.6761 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.855e-05/0.6458, allocations: 51.97 kB / 0.6762 GB, free: 2.891 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.0005801/0.6464, allocations: 357.8 kB / 0.6765 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.6467, allocations: 118.5 kB / 0.6766 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002506/0.6492, allocations: 1.4 MB / 0.678 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.6492, allocations: 8 kB / 0.678 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.6492, allocations: 0 / 0.678 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.6492, allocations: 3.984 kB / 0.678 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.6508, allocations: 1.165 MB / 0.6791 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.6508, allocations: 0 / 0.6791 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007651/0.6516, allocations: 143.8 kB / 0.6793 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003667/0.652, allocations: 180.2 kB / 0.6794 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-05/0.6521, allocations: 35.91 kB / 0.6795 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001888/0.6539, allocations: 2.758 MB / 0.6822 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.654, allocations: 4.031 kB / 0.6822 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003415/0.6574, allocations: 2.163 MB / 0.6843 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000522/0.6579, allocations: 303.2 kB / 0.6846 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.6581, allocations: 16 kB / 0.6846 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006843/0.6588, allocations: 39.95 kB / 0.6846 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.659, allocations: 68.56 kB / 0.6847 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-05/0.659, allocations: 27.98 kB / 0.6847 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001124/0.6602, allocations: 0.8295 MB / 0.6855 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.51e-07/0.6602, allocations: 4 kB / 0.6855 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002913/0.6631, allocations: 1.104 MB / 0.6866 GB, free: 7.902 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.0028/0.6659, allocations: 1.392 MB / 0.688 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003091/0.669, allocations: 1.462 MB / 0.6894 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.669, allocations: 4.312 kB / 0.6894 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.6702, allocations: 0.6439 MB / 0.69 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/0.6727, allocations: 0.4945 MB / 0.6905 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004577/0.6773, allocations: 3.087 MB / 0.6935 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007496/0.6781, allocations: 1.232 MB / 0.6947 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001157/0.6792, allocations: 260.8 kB / 0.695 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003162/0.6795, allocations: 115.3 kB / 0.6951 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of SimCode: time 7.52e-07/0.6796, allocations: 4 kB / 0.6951 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of Templates: time 0.2382/0.9178, allocations: 38.9 MB / 0.7331 GB, free: 182.9 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)