Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-alpha11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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 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.Kofranek2014.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") translateModel(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.0966/0.0966, allocations: 15.24 MB / 30.49 MB, free: 3.199 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009273/0.0009274, allocations: 183.6 kB / 35.55 MB, free: 2.289 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 263.4 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008273/0.0008274, allocations: 83.78 kB / 318.3 MB, free: 3.84 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1414/0.1414, allocations: 20.52 MB / 393.7 MB, free: 43.53 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008069/0.0008072, allocations: 15.98 kB / 465.1 MB, free: 5.371 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3782, allocations: 59.29 MB / 0.5121 GB, free: 42.78 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation): time 0.07106/0.4493, allocations: 77.41 MB / 0.5877 GB, free: 5.961 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03502/0.4844, allocations: 26.87 MB / 0.6139 GB, free: 1.637 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003217/0.4877, allocations: 51.56 kB / 0.614 GB, free: 1.586 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002964/0.4907, allocations: 0.5433 MB / 0.6145 GB, free: 1.176 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0128/0.5036, allocations: 3.335 MB / 0.6178 GB, free: 13.94 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01073/0.5143, allocations: 2.668 MB / 0.6204 GB, free: 11.26 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.00493/0.5193, allocations: 3.929 MB / 0.6242 GB, free: 7.32 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001241/0.5205, allocations: 0.6878 MB / 0.6249 GB, free: 6.633 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.5227, allocations: 0.8523 MB / 0.6257 GB, free: 5.777 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00133/0.524, allocations: 0.93 MB / 0.6266 GB, free: 4.844 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.5241, allocations: 52 kB / 0.6267 GB, free: 4.793 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0151/0.5392, allocations: 4.07 MB / 0.6307 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005188/0.5398, allocations: 227.1 kB / 0.6309 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008848/0.5407, allocations: 0.4897 MB / 0.6313 GB, free: 0 / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0166/0.5573, allocations: 4.715 MB / 0.6359 GB, free: 11.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.5574, allocations: 0 / 0.6359 GB, free: 11.27 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.5574, allocations: 3.938 kB / 0.636 GB, free: 11.27 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.5574, allocations: 0 / 0.636 GB, free: 11.27 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.004062/0.5615, allocations: 1.83 MB / 0.6377 GB, free: 9.383 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.429e-05/0.5615, allocations: 8.031 kB / 0.6377 GB, free: 9.375 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.5618, allocations: 102.8 kB / 0.6378 GB, free: 9.273 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.5629, allocations: 0.6071 MB / 0.6384 GB, free: 8.625 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.976e-05/0.5629, allocations: 53.31 kB / 0.6385 GB, free: 8.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.5631, allocations: 75.84 kB / 0.6386 GB, free: 8.496 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.5644, allocations: 0.7973 MB / 0.6393 GB, free: 7.664 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.5644, allocations: 7.922 kB / 0.6393 GB, free: 7.656 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.265e-05/0.5645, allocations: 28 kB / 0.6394 GB, free: 7.629 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.5645, allocations: 16 kB / 0.6394 GB, free: 7.613 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.5658, allocations: 0.6999 MB / 0.6401 GB, free: 6.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004439/0.5703, allocations: 3.088 MB / 0.6431 GB, free: 3.633 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.5713, allocations: 0.5553 MB / 0.6436 GB, free: 3.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006302/0.572, allocations: 334 kB / 0.644 GB, free: 2.742 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002567/0.5746, allocations: 1.998 MB / 0.6459 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.5746, allocations: 34.56 kB / 0.6459 GB, free: 464 kB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 2.574e-06/0.5746, allocations: 0 / 0.6459 GB, free: 464 kB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.002411/0.5771, allocations: 1.136 MB / 0.647 GB, free: 15.22 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.5771, allocations: 63.33 kB / 0.6471 GB, free: 15.15 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009556/0.5781, allocations: 0.7703 MB / 0.6479 GB, free: 14.37 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.5781, allocations: 29.7 kB / 0.6479 GB, free: 14.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.5785, allocations: 435.5 kB / 0.6483 GB, free: 13.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.5786, allocations: 173.5 kB / 0.6485 GB, free: 13.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.5789, allocations: 158.5 kB / 0.6486 GB, free: 13.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.579, allocations: 337.9 kB / 0.6489 GB, free: 13.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004971/0.5795, allocations: 253.8 kB / 0.6492 GB, free: 12.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006912/0.5802, allocations: 0.5012 MB / 0.6497 GB, free: 12.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.5814, allocations: 0.7069 MB / 0.6504 GB, free: 11.56 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.5814, allocations: 4 kB / 0.6504 GB, free: 11.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001886/0.5833, allocations: 0.9504 MB / 0.6513 GB, free: 10.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.5833, allocations: 8 kB / 0.6513 GB, free: 10.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.5833, allocations: 4 kB / 0.6513 GB, free: 10.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005179/0.5839, allocations: 143.5 kB / 0.6514 GB, free: 10.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006657/0.5845, allocations: 171.7 kB / 0.6516 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.5861, allocations: 2.182 MB / 0.6537 GB, free: 7.973 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009256/0.587, allocations: 115.3 kB / 0.6538 GB, free: 7.859 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/0.5871, allocations: 39.97 kB / 0.6539 GB, free: 7.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003622/0.5875, allocations: 234 kB / 0.6541 GB, free: 7.582 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.5876, allocations: 79.06 kB / 0.6542 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.5891, allocations: 0.6552 MB / 0.6548 GB, free: 6.828 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.5891, allocations: 4 kB / 0.6548 GB, free: 6.824 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.5891, allocations: 0 / 0.6548 GB, free: 6.824 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.5891, allocations: 3.984 kB / 0.6548 GB, free: 6.82 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009469/0.5901, allocations: 0.6842 MB / 0.6555 GB, free: 6.086 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.5901, allocations: 4 kB / 0.6555 GB, free: 6.082 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.5905, allocations: 83.89 kB / 0.6556 GB, free: 6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003351/0.5908, allocations: 131.3 kB / 0.6557 GB, free: 5.859 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.5909, allocations: 11.98 kB / 0.6557 GB, free: 5.848 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.5922, allocations: 2.182 MB / 0.6578 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.5922, allocations: 0 / 0.6578 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.5939, allocations: 0.9841 MB / 0.6588 GB, free: 2.547 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.5943, allocations: 219.8 kB / 0.659 GB, free: 2.312 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.582e-05/0.5944, allocations: 19.92 kB / 0.659 GB, free: 2.293 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004509/0.5949, allocations: 35.97 kB / 0.6591 GB, free: 2.258 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.595, allocations: 35.94 kB / 0.6591 GB, free: 2.223 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.595, allocations: 12 kB / 0.6591 GB, free: 2.211 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006557/0.5957, allocations: 0.5224 MB / 0.6596 GB, free: 1.691 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5957, allocations: 0 / 0.6596 GB, free: 1.691 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003084/0.5988, allocations: 1.038 MB / 0.6606 GB, free: 0.6523 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (PulmonaryArteries.enthalpy,PulmonaryArteries.mass,PulmonaryVeins.enthalpy,PulmonaryVeins.mass,SystemicVeins.enthalpy,SystemicVeins.mass,SystemicArteries.enthalpy,SystemicArteries.mass) * 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 (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003222/0.602, allocations: 1.601 MB / 0.6622 GB, free: 15.06 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.6036, allocations: 0.6303 MB / 0.6628 GB, free: 14.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.6036, allocations: 3.938 kB / 0.6628 GB, free: 14.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.6042, allocations: 289 kB / 0.6631 GB, free: 14.15 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.6056, allocations: 271.1 kB / 0.6634 GB, free: 13.89 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.6089, allocations: 2.065 MB / 0.6654 GB, free: 11.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005208/0.6094, allocations: 0.9652 MB / 0.6663 GB, free: 10.81 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006573/0.6101, allocations: 142 kB / 0.6665 GB, free: 10.67 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.6103, allocations: 67.41 kB / 0.6665 GB, free: 10.6 MB / 474.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6103, allocations: 0 / 0.6665 GB, free: 10.6 MB / 474.7 MB Notification: Performance of Templates: time 0.257/0.8673, allocations: 33.26 MB / 0.699 GB, free: 143.1 MB / 490.7 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe 2>&1)