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.09455/0.09455, allocations: 15.28 MB / 30.91 MB, free: 4.273 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.001072/0.001072, allocations: 108 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.001262/0.001262, allocations: 195.6 kB / 41.02 MB, free: 7.18 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.346/1.346, allocations: 222.9 MB / 268.9 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.1336/0.1336, allocations: 23.35 MB / 346.6 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 107.8 kB / 478.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.3003, allocations: 59.35 MB / 0.5256 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.1024/0.4027, allocations: 107 MB / 0.6301 GB, free: 9.098 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.04811/0.4509, allocations: 45.42 MB / 0.6744 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/0.4536, allocations: 43.75 kB / 0.6745 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002819/0.4565, allocations: 0.6519 MB / 0.6751 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.4674, allocations: 3.734 MB / 0.6788 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0115/0.4789, allocations: 4.479 MB / 0.6831 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004489/0.4834, allocations: 3.812 MB / 0.6869 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/0.4852, allocations: 1.111 MB / 0.688 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006322/0.4915, allocations: 3.06 MB / 0.6909 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0023/0.4939, allocations: 1.409 MB / 0.6923 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000406/0.4943, allocations: 136 kB / 0.6924 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008321/0.5026, allocations: 3.4 MB / 0.6958 GB, free: 5.559 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006521/0.5033, allocations: 0.5064 MB / 0.6963 GB, free: 5.051 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.5046, allocations: 0.836 MB / 0.6971 GB, free: 4.211 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.009754/0.5144, allocations: 4.693 MB / 0.7017 GB, free: 15.5 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.5144, allocations: 4 kB / 0.7017 GB, free: 15.5 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.976e-06/0.5144, allocations: 0 / 0.7017 GB, free: 15.5 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.007e-05/0.5145, allocations: 4 kB / 0.7017 GB, free: 15.5 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.004951/0.5195, allocations: 2.212 MB / 0.7038 GB, free: 13.23 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.5195, allocations: 16.03 kB / 0.7038 GB, free: 13.21 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004419/0.52, allocations: 158.1 kB / 0.704 GB, free: 13.05 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002121/0.5221, allocations: 0.9891 MB / 0.705 GB, free: 12.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.951e-05/0.5222, allocations: 82.03 kB / 0.705 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002205/0.5224, allocations: 107.9 kB / 0.7051 GB, free: 11.84 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002786/0.5252, allocations: 1.413 MB / 0.7065 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.789e-05/0.5253, allocations: 0 / 0.7065 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.5254, allocations: 47.98 kB / 0.7066 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.468e-05/0.5254, allocations: 24 kB / 0.7066 GB, free: 10.26 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002501/0.5279, allocations: 1.425 MB / 0.708 GB, free: 8.832 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.007496/0.5354, allocations: 5.615 MB / 0.7135 GB, free: 2.887 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001865/0.5373, allocations: 1.388 MB / 0.7148 GB, free: 1.434 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.5387, allocations: 0.7883 MB / 0.7156 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003711/0.5424, allocations: 2.966 MB / 0.7185 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.5424, allocations: 39.22 kB / 0.7185 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=76): time 2.364e-06/0.5424, allocations: 4 kB / 0.7185 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=76): time 0.003733/0.5462, allocations: 2.165 MB / 0.7206 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.5462, allocations: 64 kB / 0.7207 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.5478, allocations: 1.201 MB / 0.7219 GB, free: 9.754 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.24e-05/0.5479, allocations: 41.7 kB / 0.7219 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004059/0.5483, allocations: 0.612 MB / 0.7225 GB, free: 9.086 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000244/0.5486, allocations: 276 kB / 0.7228 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003456/0.5489, allocations: 222.7 kB / 0.723 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5491, allocations: 345.9 kB / 0.7233 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009697/0.55, allocations: 0.5608 MB / 0.7239 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.5512, allocations: 0.8526 MB / 0.7247 GB, free: 6.703 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.01059/0.5618, allocations: 5.898 MB / 0.7305 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/0.5618, allocations: 4 kB / 0.7305 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.2152/0.777, allocations: 1.731 MB / 0.7322 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.7771, allocations: 9.188 kB / 0.7322 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.7771, allocations: 9.375 kB / 0.7322 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003716/0.7775, allocations: 187 kB / 0.7324 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009989/0.7785, allocations: 254.2 kB / 0.7326 GB, free: 188.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.7795, allocations: 2.775 MB / 0.7353 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.7806, allocations: 134.2 kB / 0.7354 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/0.7807, allocations: 56.77 kB / 0.7355 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.0004511/0.7811, allocations: 348.5 kB / 0.7358 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.7813, allocations: 122.5 kB / 0.7359 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002248/0.7836, allocations: 1.397 MB / 0.7373 GB, free: 185 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.7836, allocations: 7.75 kB / 0.7373 GB, free: 185 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.7836, allocations: 3.312 kB / 0.7373 GB, free: 185 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.7836, allocations: 5.969 kB / 0.7373 GB, free: 185 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.7851, allocations: 1.17 MB / 0.7385 GB, free: 184.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.7851, allocations: 0.6562 kB / 0.7385 GB, free: 184.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007102/0.7858, allocations: 145.1 kB / 0.7386 GB, free: 184.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002948/0.7861, allocations: 175.9 kB / 0.7388 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.535e-05/0.7862, allocations: 29.55 kB / 0.7388 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.7872, allocations: 2.766 MB / 0.7415 GB, free: 181.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7872, allocations: 0 / 0.7415 GB, free: 181.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/0.7903, allocations: 2.166 MB / 0.7436 GB, free: 180.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.7908, allocations: 311.5 kB / 0.7439 GB, free: 180.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.791, allocations: 12.69 kB / 0.7439 GB, free: 180.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006657/0.7917, allocations: 40.28 kB / 0.744 GB, free: 180.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.7919, allocations: 75.02 kB / 0.744 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.919e-05/0.7919, allocations: 30.69 kB / 0.7441 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001005/0.7929, allocations: 0.8268 MB / 0.7449 GB, free: 180.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/0.7929, allocations: 3.25 kB / 0.7449 GB, free: 180.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002535/0.7955, allocations: 1.102 MB / 0.7459 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.002432/0.7979, allocations: 1.391 MB / 0.7473 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002458/0.8004, allocations: 1.343 MB / 0.7486 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.8004, allocations: 1.219 kB / 0.7486 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.8015, allocations: 0.6471 MB / 0.7492 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002084/0.8035, allocations: 0.4939 MB / 0.7497 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003992/0.8075, allocations: 3.038 MB / 0.7527 GB, free: 177.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005711/0.8081, allocations: 1.24 MB / 0.7539 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008619/0.809, allocations: 266.5 kB / 0.7542 GB, free: 177 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.8093, allocations: 111.8 kB / 0.7543 GB, free: 177 MB / 0.5606 GB Notification: Performance of SimCode: time 3.2e-07/0.8093, allocations: 0 / 0.7543 GB, free: 177 MB / 0.5606 GB Notification: Performance of Templates: time 0.04548/0.8548, allocations: 39.68 MB / 0.793 GB, free: 143.9 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)