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.1001/0.1001, allocations: 15.28 MB / 31.53 MB, free: 3.988 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.0009791/0.0009791, allocations: 113.2 kB / 36.54 MB, free: 3.266 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.001166/0.001166, allocations: 189.1 kB / 41.64 MB, free: 7.137 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.481/1.481, allocations: 222.9 MB / 269.5 MB, free: 6.879 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.14/0.14, allocations: 23.35 MB / 347.2 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 115.8 kB / 419.7 MB, free: 29.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1127, allocations: 59.37 MB / 479 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.3455/0.4582, allocations: 107 MB / 0.5723 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04854/0.5068, allocations: 45.43 MB / 0.6166 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003334/0.5102, allocations: 47.75 kB / 0.6167 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002435/0.5127, allocations: 0.6441 MB / 0.6173 GB, free: 1.785 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01093/0.5237, allocations: 3.734 MB / 0.621 GB, free: 14.03 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01381/0.5375, allocations: 4.475 MB / 0.6253 GB, free: 9.531 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005567/0.5431, allocations: 3.81 MB / 0.629 GB, free: 5.707 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001813/0.545, allocations: 1.118 MB / 0.6301 GB, free: 4.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007895/0.5529, allocations: 3.068 MB / 0.6331 GB, free: 1.488 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002794/0.5557, allocations: 1.405 MB / 0.6345 GB, free: 80 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004107/0.5561, allocations: 140 kB / 0.6346 GB, free: 15.94 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009398/0.5656, allocations: 3.392 MB / 0.638 GB, free: 12.54 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007262/0.5663, allocations: 0.5142 MB / 0.6385 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.5676, allocations: 0.836 MB / 0.6393 GB, free: 11.18 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.5786, allocations: 4.665 MB / 0.6438 GB, free: 6.504 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.5786, allocations: 3.984 kB / 0.6438 GB, free: 6.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.5786, allocations: 0 / 0.6438 GB, free: 6.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.693e-05/0.5787, allocations: 0 / 0.6438 GB, free: 6.5 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.004368/0.583, allocations: 2.231 MB / 0.646 GB, free: 4.211 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.5831, allocations: 8.031 kB / 0.646 GB, free: 4.203 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000304/0.5834, allocations: 158.1 kB / 0.6462 GB, free: 4.047 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001699/0.5851, allocations: 0.9852 MB / 0.6471 GB, free: 3.016 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.479e-05/0.5852, allocations: 82.03 kB / 0.6472 GB, free: 2.934 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.5854, allocations: 108 kB / 0.6473 GB, free: 2.828 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.5876, allocations: 1.406 MB / 0.6487 GB, free: 1.332 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/0.5877, allocations: 7.938 kB / 0.6487 GB, free: 1.324 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.359e-05/0.5878, allocations: 40 kB / 0.6487 GB, free: 1.285 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.5878, allocations: 32 kB / 0.6488 GB, free: 1.254 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002343/0.5901, allocations: 1.417 MB / 0.6501 GB, free: 15.84 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.007364/0.5975, allocations: 5.624 MB / 0.6556 GB, free: 9.871 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/0.5994, allocations: 1.396 MB / 0.657 GB, free: 8.406 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.6007, allocations: 0.7766 MB / 0.6578 GB, free: 7.629 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003714/0.6044, allocations: 2.954 MB / 0.6606 GB, free: 4.367 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.6044, allocations: 47.2 kB / 0.6607 GB, free: 4.312 MB / 478.1 MB Notification: Performance of pre-optimization done (n=76): time 2.875e-06/0.6045, allocations: 0 / 0.6607 GB, free: 4.312 MB / 478.1 MB Notification: Performance of matching and sorting (n=76): time 0.003762/0.6082, allocations: 2.161 MB / 0.6628 GB, free: 2.035 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.6083, allocations: 64 kB / 0.6629 GB, free: 1.961 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/0.6098, allocations: 1.197 MB / 0.664 GB, free: 0.75 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.018e-05/0.6099, allocations: 41.7 kB / 0.6641 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004325/0.6103, allocations: 0.6198 MB / 0.6647 GB, free: 76 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002592/0.6106, allocations: 276.2 kB / 0.6649 GB, free: 15.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003805/0.611, allocations: 222.7 kB / 0.6652 GB, free: 15.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.6111, allocations: 349.9 kB / 0.6655 GB, free: 15.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000979/0.6121, allocations: 0.5608 MB / 0.666 GB, free: 14.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.6133, allocations: 0.8487 MB / 0.6669 GB, free: 13.69 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.01071/0.624, allocations: 5.898 MB / 0.6726 GB, free: 7.594 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/0.6241, allocations: 4 kB / 0.6726 GB, free: 7.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003366/0.6274, allocations: 1.734 MB / 0.6743 GB, free: 5.828 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.6275, allocations: 8 kB / 0.6743 GB, free: 5.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.6275, allocations: 8 kB / 0.6743 GB, free: 5.812 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004381/0.628, allocations: 192.2 kB / 0.6745 GB, free: 5.609 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.629, allocations: 255.6 kB / 0.6748 GB, free: 5.359 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001832/0.6309, allocations: 2.789 MB / 0.6775 GB, free: 2.441 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.6321, allocations: 126.7 kB / 0.6776 GB, free: 2.316 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.6323, allocations: 55.97 kB / 0.6777 GB, free: 2.262 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.0006504/0.6329, allocations: 361.1 kB / 0.678 GB, free: 1.902 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.6332, allocations: 118.5 kB / 0.6781 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002523/0.6357, allocations: 1.395 MB / 0.6795 GB, free: 380 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.6358, allocations: 8 kB / 0.6795 GB, free: 372 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.6358, allocations: 0 / 0.6795 GB, free: 372 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.6358, allocations: 3.984 kB / 0.6795 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.6374, allocations: 1.169 MB / 0.6806 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.6374, allocations: 7.938 kB / 0.6806 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007292/0.6382, allocations: 147.8 kB / 0.6808 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003539/0.6385, allocations: 176.2 kB / 0.6809 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.274e-05/0.6386, allocations: 23.98 kB / 0.681 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/0.6403, allocations: 2.762 MB / 0.6837 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.6403, allocations: 0 / 0.6837 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003517/0.6438, allocations: 2.159 MB / 0.6858 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000623/0.6444, allocations: 315.2 kB / 0.6861 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.6446, allocations: 16 kB / 0.6861 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006701/0.6453, allocations: 35.97 kB / 0.6861 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.6455, allocations: 72.56 kB / 0.6862 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.624e-05/0.6455, allocations: 27.97 kB / 0.6862 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001092/0.6466, allocations: 0.8297 MB / 0.687 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.62e-07/0.6467, allocations: 0 / 0.687 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003818/0.6505, allocations: 1.108 MB / 0.6881 GB, free: 7.277 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.002795/0.6533, allocations: 1.395 MB / 0.6895 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00259/0.6559, allocations: 1.336 MB / 0.6908 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.6559, allocations: 0.5625 kB / 0.6908 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.657, allocations: 0.6478 MB / 0.6914 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.6592, allocations: 0.4929 MB / 0.6919 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004551/0.6638, allocations: 3.028 MB / 0.6949 GB, free: 368 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007861/0.6646, allocations: 1.236 MB / 0.6961 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0009212/0.6655, allocations: 260.5 kB / 0.6963 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.6658, allocations: 115.4 kB / 0.6964 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of SimCode: time 1.142e-06/0.6658, allocations: 0 / 0.6964 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of Templates: time 0.2622/0.928, allocations: 38.88 MB / 0.7344 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 -s cvode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe 2>&1)