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.146/0.146, 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.001049/0.001049, 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.001611/0.001611, allocations: 184.5 kB / 40.68 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.449/1.449, allocations: 223.3 MB / 268.9 MB, free: 2.023 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1248/0.1248, allocations: 23.4 MB / 347.7 MB, free: 6.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000698/0.0006981, allocations: 15.94 kB / 420.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2538, allocations: 60.47 MB / 480.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.08823/0.342, allocations: 107.6 MB / 0.5745 GB, free: 8.516 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2818/0.6239, allocations: 45.22 MB / 0.6186 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003696/0.6276, allocations: 83.5 kB / 0.6187 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.6298, allocations: 0.5147 MB / 0.6192 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.64, allocations: 3.451 MB / 0.6226 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01357/0.6536, allocations: 4.011 MB / 0.6265 GB, free: 2.441 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005999/0.6596, allocations: 5.675 MB / 0.632 GB, free: 1.93 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001736/0.6614, allocations: 0.9601 MB / 0.633 GB, free: 1.531 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0071/0.6685, allocations: 2.766 MB / 0.6357 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003108/0.6717, allocations: 1.437 MB / 0.6371 GB, free: 204 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003581/0.6721, allocations: 82.31 kB / 0.6372 GB, free: 204 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009641/0.6817, allocations: 3.377 MB / 0.6405 GB, free: 15.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009742/0.6828, allocations: 460.5 kB / 0.6409 GB, free: 15.28 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.6846, allocations: 0.7953 MB / 0.6417 GB, free: 15.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01183/0.6964, allocations: 4.446 MB / 0.646 GB, free: 13.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.6964, allocations: 0 / 0.646 GB, free: 13.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.6965, allocations: 0 / 0.646 GB, free: 13.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.65e-05/0.6965, allocations: 0 / 0.646 GB, free: 13.26 MB / 446.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.005294/0.7018, allocations: 2.001 MB / 0.648 GB, free: 11.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.7019, allocations: 8.031 kB / 0.648 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004834/0.7024, allocations: 158.9 kB / 0.6481 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.704, allocations: 0.9367 MB / 0.649 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.181e-05/0.7041, allocations: 82.09 kB / 0.6491 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.7043, allocations: 107.2 kB / 0.6492 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.7065, allocations: 1.414 MB / 0.6506 GB, free: 9.629 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/0.7066, allocations: 7.906 kB / 0.6506 GB, free: 9.621 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-05/0.7067, allocations: 43.56 kB / 0.6507 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.387e-05/0.7067, allocations: 24 kB / 0.6507 GB, free: 9.586 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.7092, allocations: 1.437 MB / 0.6521 GB, free: 8.535 MB / 446.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.008916/0.7181, allocations: 5.644 MB / 0.6576 GB, free: 2.699 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.7203, allocations: 1.415 MB / 0.659 GB, free: 1.215 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.7217, allocations: 0.7806 MB / 0.6597 GB, free: 444 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00455/0.7262, allocations: 2.971 MB / 0.6626 GB, free: 13.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/0.7263, allocations: 43.22 kB / 0.6627 GB, free: 13.14 MB / 462.1 MB Notification: Performance of pre-optimization done (n=76): time 2.956e-06/0.7263, allocations: 0 / 0.6627 GB, free: 13.14 MB / 462.1 MB Notification: Performance of matching and sorting (n=76): time 0.004287/0.7306, allocations: 2.199 MB / 0.6648 GB, free: 10.83 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.7307, allocations: 60.05 kB / 0.6649 GB, free: 10.76 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00208/0.7328, allocations: 1.201 MB / 0.6661 GB, free: 9.547 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.733, allocations: 41.7 kB / 0.6661 GB, free: 9.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005431/0.7335, allocations: 0.6198 MB / 0.6667 GB, free: 8.875 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000336/0.7339, allocations: 279.8 kB / 0.667 GB, free: 8.602 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.734, allocations: 93.67 kB / 0.6671 GB, free: 8.504 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.7342, allocations: 349.9 kB / 0.6674 GB, free: 8.156 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.7353, allocations: 0.5725 MB / 0.668 GB, free: 7.582 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.7365, allocations: 0.8642 MB / 0.6688 GB, free: 6.594 MB / 462.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.01141/0.7479, allocations: 5.998 MB / 0.6747 GB, free: 404 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.849e-05/0.748, allocations: 7.938 kB / 0.6747 GB, free: 396 kB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003726/0.7517, allocations: 1.748 MB / 0.6764 GB, free: 14.62 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.7518, allocations: 8 kB / 0.6764 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/0.7518, allocations: 12 kB / 0.6764 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004702/0.7523, allocations: 196.2 kB / 0.6766 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.7534, allocations: 259.6 kB / 0.6768 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.7551, allocations: 2.774 MB / 0.6795 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.7568, allocations: 179 kB / 0.6797 GB, free: 11.06 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.7569, allocations: 63.84 kB / 0.6798 GB, free: 11 MB / 478.1 MB Warning: The initial conditions are over specified. The following 5 initial equations are redundant, so they are removed from the initialization sytem: 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.0006426/0.7576, allocations: 342.7 kB / 0.6801 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003545/0.758, allocations: 122.5 kB / 0.6802 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002766/0.7607, allocations: 1.416 MB / 0.6816 GB, free: 9.094 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.7608, allocations: 8 kB / 0.6816 GB, free: 9.086 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.7608, allocations: 0 / 0.6816 GB, free: 9.086 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.7608, allocations: 3.984 kB / 0.6816 GB, free: 9.082 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.7626, allocations: 1.166 MB / 0.6827 GB, free: 7.887 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.7626, allocations: 0 / 0.6827 GB, free: 7.887 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008122/0.7634, allocations: 147.8 kB / 0.6829 GB, free: 7.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004533/0.7639, allocations: 188 kB / 0.6831 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-05/0.764, allocations: 27.97 kB / 0.6831 GB, free: 7.516 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/0.7655, allocations: 2.758 MB / 0.6858 GB, free: 4.629 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.7656, allocations: 4.062 kB / 0.6858 GB, free: 4.625 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003761/0.7693, allocations: 2.196 MB / 0.6879 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007097/0.7701, allocations: 323.1 kB / 0.6882 GB, free: 2.062 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002727/0.7704, allocations: 16 kB / 0.6883 GB, free: 2.047 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000994/0.7714, allocations: 87.92 kB / 0.6883 GB, free: 1.961 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.7716, allocations: 72.55 kB / 0.6884 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-05/0.7716, allocations: 23.98 kB / 0.6884 GB, free: 1.867 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001154/0.7728, allocations: 0.8295 MB / 0.6892 GB, free: 1.031 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7728, allocations: 0 / 0.6892 GB, free: 1.031 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003033/0.7759, allocations: 1.104 MB / 0.6903 GB, free: 15.92 MB / 494.1 MB 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.003225/0.7791, allocations: 1.387 MB / 0.6917 GB, free: 14.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.7819, allocations: 1.355 MB / 0.693 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.7819, allocations: 0 / 0.693 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.7831, allocations: 0.6529 MB / 0.6936 GB, free: 12.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002991/0.7861, allocations: 479.2 kB / 0.6941 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005175/0.7913, allocations: 3.742 MB / 0.6977 GB, free: 8.418 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008305/0.7921, allocations: 1.233 MB / 0.6989 GB, free: 7.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.7933, allocations: 264.9 kB / 0.6992 GB, free: 6.902 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.7937, allocations: 107.3 kB / 0.6993 GB, free: 6.797 MB / 494.1 MB Notification: Performance of SimCode: time 6.92e-07/0.7937, allocations: 4 kB / 0.6993 GB, free: 6.793 MB / 494.1 MB Notification: Performance of Templates: time 0.05418/0.8479, allocations: 37.17 MB / 0.7356 GB, free: 1.863 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)