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.08915/0.08915, allocations: 15.27 MB / 30.51 MB, free: 4.344 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.001028/0.001028, allocations: 110.2 kB / 35.48 MB, free: 3.395 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.001234/0.001234, allocations: 200.5 kB / 40.58 MB, free: 7.453 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.463/1.463, allocations: 222.9 MB / 268.4 MB, free: 7.535 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1508/0.1508, allocations: 23.35 MB / 346.1 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 107.8 kB / 417.7 MB, free: 30.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1132, allocations: 59.38 MB / 477 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.2995/0.4128, allocations: 108.3 MB / 0.5717 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04894/0.4617, allocations: 45.28 MB / 0.6159 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002983/0.4648, allocations: 87.38 kB / 0.616 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002103/0.4669, allocations: 0.5478 MB / 0.6165 GB, free: 2.375 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009951/0.4769, allocations: 3.481 MB / 0.6199 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01375/0.4907, allocations: 4.081 MB / 0.6239 GB, free: 10.77 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004888/0.4956, allocations: 3.84 MB / 0.6276 GB, free: 6.922 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002195/0.4978, allocations: 1.109 MB / 0.6287 GB, free: 5.805 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007657/0.5055, allocations: 2.972 MB / 0.6316 GB, free: 2.82 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002598/0.5081, allocations: 1.471 MB / 0.633 GB, free: 1.344 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006423/0.5088, allocations: 140 kB / 0.6332 GB, free: 1.207 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009487/0.5183, allocations: 3.47 MB / 0.6366 GB, free: 13.73 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.5194, allocations: 0.522 MB / 0.6371 GB, free: 13.21 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001762/0.5212, allocations: 0.8283 MB / 0.6379 GB, free: 12.37 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01106/0.5323, allocations: 4.556 MB / 0.6423 GB, free: 7.801 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.5323, allocations: 0 / 0.6423 GB, free: 7.801 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5323, allocations: 4 kB / 0.6423 GB, free: 7.797 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.789e-05/0.5324, allocations: 0 / 0.6423 GB, free: 7.797 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.004969/0.5374, allocations: 2.212 MB / 0.6445 GB, free: 5.527 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.978e-05/0.5375, allocations: 8.031 kB / 0.6445 GB, free: 5.52 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004544/0.5379, allocations: 158.1 kB / 0.6447 GB, free: 5.363 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.5396, allocations: 0.9421 MB / 0.6456 GB, free: 4.375 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.637e-05/0.5397, allocations: 86.02 kB / 0.6457 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001948/0.5399, allocations: 111.9 kB / 0.6458 GB, free: 4.18 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002588/0.5425, allocations: 1.406 MB / 0.6471 GB, free: 2.684 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.822e-05/0.5425, allocations: 8 kB / 0.6471 GB, free: 2.676 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.5426, allocations: 44 kB / 0.6472 GB, free: 2.633 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.5427, allocations: 24 kB / 0.6472 GB, free: 2.609 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/0.5453, allocations: 1.421 MB / 0.6486 GB, free: 1.188 MB / 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.008355/0.5536, allocations: 5.607 MB / 0.6541 GB, free: 11.24 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/0.5556, allocations: 1.392 MB / 0.6554 GB, free: 9.785 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.557, allocations: 0.7688 MB / 0.6562 GB, free: 9.012 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004187/0.5612, allocations: 2.97 MB / 0.6591 GB, free: 5.734 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.5613, allocations: 43.2 kB / 0.6591 GB, free: 5.684 MB / 478.1 MB Notification: Performance of pre-optimization done (n=76): time 2.695e-06/0.5613, allocations: 0 / 0.6591 GB, free: 5.684 MB / 478.1 MB Notification: Performance of matching and sorting (n=76): time 0.003903/0.5652, allocations: 2.161 MB / 0.6612 GB, free: 3.406 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.5653, allocations: 64 kB / 0.6613 GB, free: 3.332 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/0.5669, allocations: 1.201 MB / 0.6625 GB, free: 2.117 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.118e-05/0.567, allocations: 41.7 kB / 0.6625 GB, free: 2.07 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004282/0.5674, allocations: 0.612 MB / 0.6631 GB, free: 1.449 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.5677, allocations: 284 kB / 0.6634 GB, free: 1.168 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003284/0.568, allocations: 218.6 kB / 0.6636 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.5681, allocations: 349.9 kB / 0.6639 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009884/0.5691, allocations: 0.5569 MB / 0.6645 GB, free: 44 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.5704, allocations: 0.8487 MB / 0.6653 GB, free: 15.07 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.01079/0.5812, allocations: 5.917 MB / 0.6711 GB, free: 8.961 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.5812, allocations: 4 kB / 0.6711 GB, free: 8.957 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003448/0.5847, allocations: 1.734 MB / 0.6728 GB, free: 7.203 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.5847, allocations: 8 kB / 0.6728 GB, free: 7.195 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.5847, allocations: 8 kB / 0.6728 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004703/0.5852, allocations: 192.2 kB / 0.673 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.5863, allocations: 251.6 kB / 0.6732 GB, free: 6.738 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.5881, allocations: 2.782 MB / 0.6759 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.5894, allocations: 166.7 kB / 0.6761 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.5895, allocations: 59.97 kB / 0.6761 GB, free: 3.605 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.0005972/0.5901, allocations: 362.8 kB / 0.6765 GB, free: 3.242 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/0.5904, allocations: 118.5 kB / 0.6766 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/0.5929, allocations: 1.391 MB / 0.678 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.5929, allocations: 12 kB / 0.678 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.5929, allocations: 3.984 kB / 0.678 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.5929, allocations: 7.984 kB / 0.678 GB, free: 1.688 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.5944, allocations: 1.161 MB / 0.6791 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.5944, allocations: 3.984 kB / 0.6791 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007471/0.5952, allocations: 147.8 kB / 0.6793 GB, free: 340 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003646/0.5956, allocations: 180.2 kB / 0.6794 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.314e-05/0.5956, allocations: 19.98 kB / 0.6795 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001663/0.5973, allocations: 2.762 MB / 0.6821 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5973, allocations: 4 kB / 0.6822 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003436/0.6008, allocations: 2.167 MB / 0.6843 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005378/0.6013, allocations: 307.3 kB / 0.6846 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001897/0.6015, allocations: 19.98 kB / 0.6846 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008568/0.6024, allocations: 83.77 kB / 0.6847 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.6025, allocations: 68.56 kB / 0.6847 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-05/0.6026, allocations: 27.98 kB / 0.6848 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001008/0.6036, allocations: 0.8334 MB / 0.6856 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.643e-06/0.6036, allocations: 0 / 0.6856 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002438/0.6061, allocations: 1.092 MB / 0.6866 GB, free: 8.574 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.002418/0.6085, allocations: 1.395 MB / 0.688 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002924/0.6114, allocations: 1.47 MB / 0.6894 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6115, allocations: 0 / 0.6894 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.6126, allocations: 0.6439 MB / 0.6901 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.6148, allocations: 0.4913 MB / 0.6905 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004591/0.6194, allocations: 3.55 MB / 0.694 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000704/0.6201, allocations: 1.236 MB / 0.6952 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00103/0.6211, allocations: 265 kB / 0.6955 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00033/0.6215, allocations: 119.3 kB / 0.6956 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of SimCode: time 6.31e-07/0.6215, allocations: 0 / 0.6956 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of Templates: time 0.2476/0.8691, allocations: 38.44 MB / 0.7331 GB, free: 183.2 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)