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.09646/0.09646, allocations: 15.27 MB / 30.91 MB, free: 4.262 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.001012/0.001012, allocations: 113.3 kB / 35.92 MB, free: 3.164 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.001185/0.001185, allocations: 193.1 kB / 41.02 MB, free: 7.16 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.428/1.428, allocations: 222.9 MB / 268.9 MB, free: 6.793 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1388/0.1388, allocations: 23.35 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001873, allocations: 116 kB / 478.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3175, allocations: 59.36 MB / 0.5256 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.1052/0.4228, allocations: 107 MB / 0.6301 GB, free: 9.082 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.04837/0.4712, allocations: 45.42 MB / 0.6744 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002214/0.4735, allocations: 47.75 kB / 0.6745 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002192/0.4757, allocations: 0.6558 MB / 0.6751 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0121/0.4878, allocations: 3.725 MB / 0.6788 GB, free: 7.051 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0133/0.5012, allocations: 4.479 MB / 0.6831 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004722/0.5059, allocations: 3.812 MB / 0.6869 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001915/0.5079, allocations: 1.115 MB / 0.688 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006703/0.5146, allocations: 3.056 MB / 0.6909 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.5171, allocations: 1.409 MB / 0.6923 GB, free: 9.086 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.00035/0.5174, allocations: 136 kB / 0.6924 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008469/0.5259, allocations: 3.396 MB / 0.6958 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006622/0.5266, allocations: 0.5141 MB / 0.6963 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.5279, allocations: 0.8322 MB / 0.6971 GB, free: 4.199 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.5386, allocations: 4.706 MB / 0.7017 GB, free: 15.47 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.5386, allocations: 0 / 0.7017 GB, free: 15.47 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5386, allocations: 4 kB / 0.7017 GB, free: 15.47 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.65e-05/0.5387, allocations: 4 kB / 0.7017 GB, free: 15.46 MB / 0.545 GB 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.004958/0.5437, allocations: 2.281 MB / 0.7039 GB, free: 13.12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.5437, allocations: 15.91 kB / 0.7039 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004139/0.5441, allocations: 163 kB / 0.7041 GB, free: 12.95 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.5458, allocations: 0.9979 MB / 0.7051 GB, free: 11.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-05/0.5459, allocations: 78.03 kB / 0.7051 GB, free: 11.83 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/0.5461, allocations: 111.9 kB / 0.7052 GB, free: 11.72 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/0.5486, allocations: 1.413 MB / 0.7066 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.765e-05/0.5487, allocations: 7.891 kB / 0.7066 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.5488, allocations: 44 kB / 0.7067 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.5488, allocations: 24 kB / 0.7067 GB, free: 10.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002568/0.5514, allocations: 1.425 MB / 0.7081 GB, free: 8.711 MB / 0.545 GB 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.007622/0.559, allocations: 5.628 MB / 0.7136 GB, free: 2.758 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.561, allocations: 1.38 MB / 0.7149 GB, free: 1.312 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.5624, allocations: 0.7922 MB / 0.7157 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003792/0.5662, allocations: 2.97 MB / 0.7186 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.5663, allocations: 43.22 kB / 0.7186 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=76): time 2.254e-06/0.5663, allocations: 0 / 0.7186 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of matching and sorting (n=76): time 0.003849/0.5701, allocations: 2.17 MB / 0.7208 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.5702, allocations: 67.98 kB / 0.7208 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.5717, allocations: 1.193 MB / 0.722 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.5718, allocations: 41.7 kB / 0.722 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.5722, allocations: 0.633 MB / 0.7226 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002371/0.5725, allocations: 289.5 kB / 0.7229 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003421/0.5728, allocations: 218.8 kB / 0.7231 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.5729, allocations: 345.9 kB / 0.7235 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.574, allocations: 0.5608 MB / 0.724 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.5752, allocations: 0.8526 MB / 0.7248 GB, free: 6.547 MB / 0.5606 GB 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.0109/0.5861, allocations: 5.898 MB / 0.7306 GB, free: 456 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.5861, allocations: 4 kB / 0.7306 GB, free: 452 kB / 0.5606 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.288/0.8741, allocations: 1.735 MB / 0.7323 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.8741, allocations: 9.734 kB / 0.7323 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.8741, allocations: 8.625 kB / 0.7323 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004878/0.8746, allocations: 190.2 kB / 0.7325 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.8758, allocations: 252.3 kB / 0.7327 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.877, allocations: 2.775 MB / 0.7354 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.8782, allocations: 137.6 kB / 0.7356 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.8783, allocations: 55.73 kB / 0.7356 GB, free: 185.6 MB / 0.5606 GB 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.0005734/0.8789, allocations: 354.1 kB / 0.736 GB, free: 185.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.8791, allocations: 125.7 kB / 0.7361 GB, free: 185.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/0.882, allocations: 1.4 MB / 0.7375 GB, free: 184.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-06/0.882, allocations: 8.562 kB / 0.7375 GB, free: 184.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.882, allocations: 1.281 kB / 0.7375 GB, free: 184.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.882, allocations: 8.016 kB / 0.7375 GB, free: 184.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.8837, allocations: 1.172 MB / 0.7386 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.8838, allocations: 0 / 0.7386 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007276/0.8845, allocations: 148.6 kB / 0.7388 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003407/0.8848, allocations: 177.8 kB / 0.7389 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.398e-05/0.8849, allocations: 22.02 kB / 0.739 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.8861, allocations: 2.768 MB / 0.7417 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.8861, allocations: 0 / 0.7417 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003532/0.8896, allocations: 2.173 MB / 0.7438 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004942/0.8901, allocations: 312.9 kB / 0.7441 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.8903, allocations: 18.03 kB / 0.7441 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006986/0.891, allocations: 40.77 kB / 0.7441 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.8912, allocations: 68.2 kB / 0.7442 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-05/0.8912, allocations: 29.89 kB / 0.7442 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001123/0.8924, allocations: 0.8289 MB / 0.745 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8924, allocations: 1.156 kB / 0.745 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003509/0.8959, allocations: 1.115 MB / 0.7461 GB, free: 180.1 MB / 0.5606 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.002932/0.8988, allocations: 1.417 MB / 0.7475 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002681/0.9015, allocations: 1.343 MB / 0.7488 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.9015, allocations: 4.906 kB / 0.7488 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.9027, allocations: 0.6385 MB / 0.7494 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.905, allocations: 0.4915 MB / 0.7499 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004656/0.9096, allocations: 3.096 MB / 0.753 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007152/0.9104, allocations: 1.227 MB / 0.7542 GB, free: 177 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001049/0.9114, allocations: 274.8 kB / 0.7544 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003618/0.9118, allocations: 107.7 kB / 0.7545 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of SimCode: time 6.32e-07/0.9118, allocations: 0 / 0.7545 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.04628/0.9581, allocations: 39.1 MB / 0.7927 GB, free: 144.1 MB / 0.5606 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)