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.1371/0.1371, allocations: 15.26 MB / 30.24 MB, free: 6.223 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.000832/0.000832, allocations: 107.2 kB / 35.25 MB, free: 1.355 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.001371/0.001371, allocations: 180.5 kB / 40.35 MB, free: 4.98 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.506/1.506, allocations: 223.3 MB / 268.6 MB, free: 2.145 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1484/0.1484, allocations: 23.4 MB / 347.3 MB, free: 6.883 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005592/0.0005593, allocations: 16 kB / 419.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3297, allocations: 60.48 MB / 480 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.09922/0.429, allocations: 100.3 MB / 0.5667 GB, free: 12 kB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3734/0.8025, allocations: 42.25 MB / 0.608 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003837/0.8064, allocations: 79.41 kB / 0.608 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002556/0.809, allocations: 0.5283 MB / 0.6086 GB, free: 5.949 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01356/0.8225, allocations: 3.368 MB / 0.6118 GB, free: 5.906 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01432/0.8369, allocations: 3.509 MB / 0.6153 GB, free: 5.82 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006467/0.8434, allocations: 4.714 MB / 0.6199 GB, free: 5.816 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001854/0.8453, allocations: 0.911 MB / 0.6208 GB, free: 5.691 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007771/0.8531, allocations: 2.646 MB / 0.6233 GB, free: 5.219 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003407/0.8566, allocations: 1.364 MB / 0.6247 GB, free: 4.988 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004232/0.857, allocations: 80.09 kB / 0.6248 GB, free: 4.988 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01005/0.8671, allocations: 2.316 MB / 0.627 GB, free: 4.672 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.8681, allocations: 453 kB / 0.6275 GB, free: 4.488 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001201/0.8694, allocations: 315 kB / 0.6278 GB, free: 4.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006813/0.8762, allocations: 3.001 MB / 0.6307 GB, free: 3.168 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.8762, allocations: 3.25 kB / 0.6307 GB, free: 3.168 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.8762, allocations: 0 / 0.6307 GB, free: 3.168 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.84e-05/0.8763, allocations: 4 kB / 0.6307 GB, free: 3.164 MB / 430.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.004924/0.8812, allocations: 2.005 MB / 0.6326 GB, free: 1.879 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.8812, allocations: 9.281 kB / 0.6327 GB, free: 1.879 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.8816, allocations: 160.4 kB / 0.6328 GB, free: 1.801 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.8829, allocations: 0.8928 MB / 0.6337 GB, free: 1.316 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.883, allocations: 82.66 kB / 0.6338 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.8832, allocations: 105.7 kB / 0.6339 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002116/0.8853, allocations: 1.421 MB / 0.6352 GB, free: 0.793 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.533e-05/0.8853, allocations: 6.906 kB / 0.6353 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.575e-05/0.8854, allocations: 43.16 kB / 0.6353 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.8855, allocations: 24.69 kB / 0.6353 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.8878, allocations: 1.43 MB / 0.6367 GB, free: 0.5508 MB / 430.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.007711/0.8955, allocations: 5.644 MB / 0.6422 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.8979, allocations: 1.414 MB / 0.6436 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.8994, allocations: 0.7778 MB / 0.6444 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004818/0.9043, allocations: 2.962 MB / 0.6473 GB, free: 9.379 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/0.9043, allocations: 45.72 kB / 0.6473 GB, free: 9.332 MB / 446.1 MB Notification: Performance of pre-optimization done (n=76): time 2.745e-06/0.9043, allocations: 0 / 0.6473 GB, free: 9.332 MB / 446.1 MB Notification: Performance of matching and sorting (n=76): time 0.003858/0.9082, allocations: 2.19 MB / 0.6494 GB, free: 7.465 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.9083, allocations: 66.03 kB / 0.6495 GB, free: 7.391 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.9099, allocations: 1.19 MB / 0.6507 GB, free: 6.484 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.542e-05/0.91, allocations: 43.7 kB / 0.6507 GB, free: 6.449 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000473/0.9105, allocations: 0.6147 MB / 0.6513 GB, free: 6.051 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002685/0.9108, allocations: 281.1 kB / 0.6516 GB, free: 5.816 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/0.9108, allocations: 22.88 kB / 0.6516 GB, free: 5.812 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.911, allocations: 343.4 kB / 0.6519 GB, free: 5.488 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009476/0.9119, allocations: 0.5679 MB / 0.6525 GB, free: 5.074 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.9133, allocations: 0.8624 MB / 0.6533 GB, free: 4.27 MB / 446.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: rightAtrium.mass = rightAtrium.tm_start (rightAtrium.m_start[1] + rightAtrium.massOffset = rightAtrium.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: arteries.substanceMasses[1] = arteries.m_start[1] (arteries.tm_start - arteries.massOffset = arteries.m_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.008836/0.9221, allocations: 4.674 MB / 0.6579 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.018e-05/0.9222, allocations: 0 / 0.6579 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003541/0.9257, allocations: 1.747 MB / 0.6596 GB, free: 15.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.9258, allocations: 8 kB / 0.6596 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.9258, allocations: 8 kB / 0.6596 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004219/0.9262, allocations: 195.2 kB / 0.6598 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.9272, allocations: 258.2 kB / 0.66 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/0.9292, allocations: 2.772 MB / 0.6627 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.931, allocations: 173.4 kB / 0.6629 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.9311, allocations: 59.19 kB / 0.663 GB, free: 11.68 MB / 462.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 rightAtrium.mass = rightAtrium.tm_start veins.mass = veins.tm_start arteries.substanceMasses[1] = arteries.m_start[1]. 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006888/0.9318, allocations: 353.2 kB / 0.6633 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002525/0.9321, allocations: 121.8 kB / 0.6634 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002577/0.9346, allocations: 1.413 MB / 0.6648 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.9347, allocations: 8 kB / 0.6648 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.9347, allocations: 0 / 0.6648 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.9347, allocations: 7.984 kB / 0.6648 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.9364, allocations: 1.172 MB / 0.666 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.9364, allocations: 3.984 kB / 0.666 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007629/0.9372, allocations: 153 kB / 0.6661 GB, free: 9.164 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003664/0.9376, allocations: 179.8 kB / 0.6663 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.78e-05/0.9377, allocations: 25.34 kB / 0.6663 GB, free: 8.992 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/0.9394, allocations: 2.761 MB / 0.669 GB, free: 6.188 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.9395, allocations: 4.062 kB / 0.669 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00363/0.9431, allocations: 2.182 MB / 0.6711 GB, free: 4.527 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007995/0.9439, allocations: 318.2 kB / 0.6714 GB, free: 4.246 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/0.9443, allocations: 17.06 kB / 0.6715 GB, free: 4.242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.9453, allocations: 93.2 kB / 0.6715 GB, free: 4.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.9455, allocations: 75.89 kB / 0.6716 GB, free: 4.102 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.111e-05/0.9456, allocations: 26.05 kB / 0.6716 GB, free: 4.082 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001197/0.9468, allocations: 0.8191 MB / 0.6724 GB, free: 3.469 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9468, allocations: 0 / 0.6724 GB, free: 3.469 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003096/0.9499, allocations: 1.085 MB / 0.6735 GB, free: 2.477 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003455/0.9534, allocations: 1.337 MB / 0.6748 GB, free: 1.316 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002942/0.9563, allocations: 1.354 MB / 0.6761 GB, free: 292 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.9564, allocations: 0 / 0.6761 GB, free: 292 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.9576, allocations: 0.6403 MB / 0.6768 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/0.9606, allocations: 492.4 kB / 0.6772 GB, free: 15.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/0.9662, allocations: 3.613 MB / 0.6808 GB, free: 12.04 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009349/0.9672, allocations: 1.239 MB / 0.682 GB, free: 10.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001281/0.9684, allocations: 259.8 kB / 0.6822 GB, free: 10.54 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/0.9689, allocations: 103 kB / 0.6823 GB, free: 10.45 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.9689, allocations: 0 / 0.6823 GB, free: 10.45 MB / 478.1 MB Notification: Performance of Templates: time 0.06327/1.032, allocations: 36.21 MB / 0.7177 GB, free: 6.523 MB / 0.4981 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)