Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.conf.json 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-beta1 (/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) Running command: translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.001379/0.001379, allocations: 97.75 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4349/0.4349, allocations: 36.67 MB / 376.7 MB, free: 41.49 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 67.91 kB / 446.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1436, allocations: 58.92 MB / 0.4935 GB, free: 0.8711 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:515:7-515:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:515:7-515:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MinimalCirculation): time 0.3676/0.5113, allocations: 71.8 MB / 0.5636 GB, free: 15.28 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02228/0.5336, allocations: 16.03 MB / 0.5793 GB, free: 1.23 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.5353, allocations: 31.75 kB / 0.5793 GB, free: 1.199 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.5373, allocations: 342.5 kB / 0.5796 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00774/0.545, allocations: 1.807 MB / 0.5814 GB, free: 15.5 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008557/0.5536, allocations: 1.943 MB / 0.5833 GB, free: 13.92 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003879/0.5576, allocations: 2.415 MB / 0.5856 GB, free: 11.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.5588, allocations: 422.7 kB / 0.586 GB, free: 11.68 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00188/0.5607, allocations: 0.5694 MB / 0.5866 GB, free: 11.18 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.5621, allocations: 0.5673 MB / 0.5871 GB, free: 10.71 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002526/0.5624, allocations: 32 kB / 0.5872 GB, free: 10.68 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01009/0.5725, allocations: 2.524 MB / 0.5896 GB, free: 8.227 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004595/0.573, allocations: 135.5 kB / 0.5898 GB, free: 8.094 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008812/0.5739, allocations: 326.4 kB / 0.5901 GB, free: 7.773 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01118/0.5851, allocations: 2.947 MB / 0.593 GB, free: 4.816 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.5852, allocations: 0 / 0.593 GB, free: 4.816 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.5852, allocations: 0 / 0.593 GB, free: 4.816 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.505e-05/0.5852, allocations: 4 kB / 0.593 GB, free: 4.812 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.003506/0.5887, allocations: 1.292 MB / 0.5942 GB, free: 3.469 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.5888, allocations: 8.031 kB / 0.5942 GB, free: 3.461 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002578/0.5891, allocations: 63.25 kB / 0.5943 GB, free: 3.398 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009041/0.59, allocations: 460.3 kB / 0.5947 GB, free: 2.906 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.568e-05/0.59, allocations: 33 kB / 0.5948 GB, free: 2.875 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-05/0.5901, allocations: 40 kB / 0.5948 GB, free: 2.836 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.5913, allocations: 0.524 MB / 0.5953 GB, free: 2.289 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.5913, allocations: 0 / 0.5953 GB, free: 2.289 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/0.5913, allocations: 16 kB / 0.5953 GB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.5914, allocations: 16 kB / 0.5953 GB, free: 2.258 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.5925, allocations: 475.6 kB / 0.5958 GB, free: 1.797 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003236/0.5957, allocations: 1.982 MB / 0.5977 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.5968, allocations: 439.2 kB / 0.5982 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005019/0.5973, allocations: 241 kB / 0.5984 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001933/0.5993, allocations: 1.38 MB / 0.5997 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005751/0.5999, allocations: 248.6 kB / 0.6 GB, free: 13.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.575e-06/0.5999, allocations: 3.938 kB / 0.6 GB, free: 13.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=35): time 0.001687/0.6016, allocations: 0.7003 MB / 0.6007 GB, free: 12.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.6016, allocations: 59.67 kB / 0.6007 GB, free: 12.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005963/0.6023, allocations: 473.7 kB / 0.6012 GB, free: 11.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.6023, allocations: 37.7 kB / 0.6012 GB, free: 11.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.6026, allocations: 279.8 kB / 0.6015 GB, free: 11.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.6027, allocations: 126.3 kB / 0.6016 GB, free: 11.49 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.6029, allocations: 110.1 kB / 0.6017 GB, free: 11.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.6031, allocations: 358.8 kB / 0.602 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004601/0.6035, allocations: 197 kB / 0.6022 GB, free: 10.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006022/0.6041, allocations: 352.8 kB / 0.6026 GB, free: 10.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.6053, allocations: 0.5518 MB / 0.6031 GB, free: 9.801 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.6053, allocations: 0 / 0.6031 GB, free: 9.801 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001704/0.607, allocations: 0.6755 MB / 0.6038 GB, free: 9.109 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/0.6071, allocations: 37.64 kB / 0.6038 GB, free: 9.066 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.6071, allocations: 4 kB / 0.6038 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002273/0.6073, allocations: 53.33 kB / 0.6038 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005983/0.608, allocations: 99.88 kB / 0.6039 GB, free: 8.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005371/0.6085, allocations: 0.5641 MB / 0.6045 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/0.6092, allocations: 79.5 kB / 0.6046 GB, free: 8.242 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.475e-05/0.6093, allocations: 27.98 kB / 0.6046 GB, free: 8.215 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003034/0.6096, allocations: 185.6 kB / 0.6048 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.6097, allocations: 47.44 kB / 0.6048 GB, free: 7.977 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.611, allocations: 0.5231 MB / 0.6053 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.6111, allocations: 4 kB / 0.6053 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.6111, allocations: 4 kB / 0.6053 GB, free: 7.438 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.6111, allocations: 11.92 kB / 0.6053 GB, free: 7.426 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007793/0.6119, allocations: 0.5088 MB / 0.6058 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6119, allocations: 0 / 0.6058 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003475/0.6123, allocations: 71.89 kB / 0.6059 GB, free: 6.797 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.6124, allocations: 32.83 kB / 0.6059 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.07e-05/0.6124, allocations: 12 kB / 0.606 GB, free: 6.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003908/0.6128, allocations: 0.56 MB / 0.6065 GB, free: 6.164 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.6128, allocations: 4.031 kB / 0.6065 GB, free: 6.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009563/0.6224, allocations: 3.913 MB / 0.6103 GB, free: 2.094 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/0.6227, allocations: 172.4 kB / 0.6105 GB, free: 1.906 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.793e-05/0.6228, allocations: 11.98 kB / 0.6105 GB, free: 1.895 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003702/0.6232, allocations: 35.88 kB / 0.6105 GB, free: 1.859 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.6233, allocations: 35.95 kB / 0.6106 GB, free: 1.824 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.6234, allocations: 15.98 kB / 0.6106 GB, free: 1.809 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004055/0.6238, allocations: 315.1 kB / 0.6109 GB, free: 1.508 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6238, allocations: 4 kB / 0.6109 GB, free: 1.504 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002392/0.6262, allocations: 0.7805 MB / 0.6117 GB, free: 0.7227 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.mass,veins.enthalpy,veins.mass) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002812/0.629, allocations: 1.06 MB / 0.6127 GB, free: 15.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.6304, allocations: 0.5338 MB / 0.6132 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6304, allocations: 0 / 0.6132 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005242/0.6309, allocations: 235.8 kB / 0.6134 GB, free: 14.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.6322, allocations: 220.1 kB / 0.6136 GB, free: 14.67 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.6351, allocations: 1.589 MB / 0.6152 GB, free: 13.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/0.6356, allocations: 0.8665 MB / 0.616 GB, free: 12.15 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005938/0.6362, allocations: 124.3 kB / 0.6162 GB, free: 12.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.6364, allocations: 55.41 kB / 0.6162 GB, free: 11.97 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/0.6364, allocations: 0 / 0.6162 GB, free: 11.97 MB / 442.7 MB Notification: Performance of Templates: time 0.03592/0.6724, allocations: 23.15 MB / 0.6388 GB, free: 4.887 MB / 458.7 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)