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/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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1227/0.1227, allocations: 15.27 MB / 30.54 MB, free: 5.707 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.0008379/0.000838, allocations: 118.1 kB / 35.58 MB, free: 1.125 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.001205/0.001205, allocations: 176.5 kB / 40.69 MB, free: 4.742 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.503/1.503, allocations: 223.3 MB / 268.9 MB, free: 1.992 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1425/0.1425, allocations: 23.39 MB / 347.7 MB, free: 10.4 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005113/0.0005114, allocations: 19.98 kB / 420.3 MB, free: 1.664 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3429, allocations: 60.47 MB / 480.8 MB, free: 36.73 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596: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/Fluid.mo:596:7-596: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.07765/0.4206, allocations: 74.21 MB / 0.542 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02063/0.4413, allocations: 15.3 MB / 0.5569 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.443, allocations: 35.75 kB / 0.557 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008003/0.4439, allocations: 190.8 kB / 0.5572 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00498/0.4489, allocations: 1.433 MB / 0.5586 GB, free: 9.441 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007245/0.4561, allocations: 1.92 MB / 0.5604 GB, free: 7.512 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002901/0.459, allocations: 2.203 MB / 0.5626 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006399/0.4597, allocations: 371 kB / 0.5629 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00277/0.4625, allocations: 1.058 MB / 0.564 GB, free: 3.871 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.4635, allocations: 0.5525 MB / 0.5645 GB, free: 3.316 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.4636, allocations: 32 kB / 0.5645 GB, free: 3.285 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004764/0.4684, allocations: 1.477 MB / 0.566 GB, free: 1.805 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002132/0.4686, allocations: 151.5 kB / 0.5661 GB, free: 1.656 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004853/0.4691, allocations: 352.1 kB / 0.5665 GB, free: 1.305 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004299/0.4734, allocations: 1.947 MB / 0.5684 GB, free: 15.35 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4734, allocations: 0 / 0.5684 GB, free: 15.35 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4734, allocations: 0 / 0.5684 GB, free: 15.35 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.4734, allocations: 0 / 0.5684 GB, free: 15.35 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002182/0.4756, allocations: 1.055 MB / 0.5694 GB, free: 14.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4757, allocations: 12.03 kB / 0.5694 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.4758, allocations: 82.52 kB / 0.5695 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.4759, allocations: 63.25 kB / 0.5695 GB, free: 14.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006395/0.4766, allocations: 452.3 kB / 0.57 GB, free: 13.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.4766, allocations: 33 kB / 0.57 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.39e-05/0.4767, allocations: 48 kB / 0.5701 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.4778, allocations: 0.5538 MB / 0.5706 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.4778, allocations: 11.92 kB / 0.5706 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.4779, allocations: 24 kB / 0.5706 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.4779, allocations: 8 kB / 0.5706 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.4789, allocations: 0.5074 MB / 0.5711 GB, free: 12.38 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.003057/0.482, allocations: 2.255 MB / 0.5733 GB, free: 9.969 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009629/0.4829, allocations: 0.5346 MB / 0.5739 GB, free: 9.406 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005458/0.4835, allocations: 276.7 kB / 0.5741 GB, free: 9.133 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001814/0.4853, allocations: 1.399 MB / 0.5755 GB, free: 7.578 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005656/0.4859, allocations: 275.1 kB / 0.5757 GB, free: 7.297 MB / 430.1 MB Notification: Performance of pre-optimization done (n=38): time 4.268e-06/0.4859, allocations: 3.984 kB / 0.5758 GB, free: 7.293 MB / 430.1 MB Notification: Performance of matching and sorting (n=38): time 0.00165/0.4876, allocations: 0.7453 MB / 0.5765 GB, free: 6.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.4877, allocations: 55.41 kB / 0.5765 GB, free: 6.453 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005491/0.4882, allocations: 461.8 kB / 0.577 GB, free: 5.996 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.4883, allocations: 33.7 kB / 0.577 GB, free: 5.957 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.4885, allocations: 291.7 kB / 0.5773 GB, free: 5.664 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.4887, allocations: 142 kB / 0.5774 GB, free: 5.523 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.81e-05/0.4887, allocations: 49.69 kB / 0.5775 GB, free: 5.469 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.4889, allocations: 358.8 kB / 0.5778 GB, free: 5.109 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004657/0.4894, allocations: 225 kB / 0.578 GB, free: 4.891 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005611/0.49, allocations: 352.4 kB / 0.5784 GB, free: 4.492 MB / 430.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: 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) Notification: Performance of analyzeInitialSystem (initialization): time 0.003954/0.4939, allocations: 1.762 MB / 0.5801 GB, free: 2.625 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.494, allocations: 0 / 0.5801 GB, free: 2.625 MB / 430.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001441/0.4954, allocations: 0.7176 MB / 0.5808 GB, free: 1.895 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.4955, allocations: 34.14 kB / 0.5808 GB, free: 1.855 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.4955, allocations: 4 kB / 0.5808 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001427/0.4956, allocations: 48.83 kB / 0.5809 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/0.4962, allocations: 123.8 kB / 0.581 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004106/0.4966, allocations: 0.564 MB / 0.5815 GB, free: 1.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006848/0.4973, allocations: 79.41 kB / 0.5816 GB, free: 1.012 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.4974, allocations: 23.98 kB / 0.5816 GB, free: 0.9883 MB / 430.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * 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.0003516/0.4977, allocations: 197.6 kB / 0.5818 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.4978, allocations: 47.44 kB / 0.5819 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.4991, allocations: 0.5686 MB / 0.5824 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.4991, allocations: 7.984 kB / 0.5824 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.4991, allocations: 4 kB / 0.5824 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.4991, allocations: 0 / 0.5824 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006837/0.4998, allocations: 0.5283 MB / 0.5829 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4998, allocations: 0 / 0.5829 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.5002, allocations: 67.95 kB / 0.583 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.239e-05/0.5003, allocations: 48.7 kB / 0.5831 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.5004, allocations: 12 kB / 0.5831 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003842/0.5008, allocations: 0.5484 MB / 0.5836 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5008, allocations: 0 / 0.5836 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.5023, allocations: 0.806 MB / 0.5844 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002469/0.5026, allocations: 180.3 kB / 0.5846 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-05/0.5027, allocations: 8 kB / 0.5846 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003899/0.5031, allocations: 43.95 kB / 0.5846 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.5032, allocations: 35.95 kB / 0.5846 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.5032, allocations: 11.98 kB / 0.5847 GB, free: 13.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000394/0.5036, allocations: 327.1 kB / 0.585 GB, free: 13.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5036, allocations: 0 / 0.585 GB, free: 13.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001427/0.505, allocations: 0.4954 MB / 0.5855 GB, free: 12.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * 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 (37): * Single equations (assignments): 32 * 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.003299/0.5084, allocations: 1.959 MB / 0.5874 GB, free: 10.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.5097, allocations: 0.5744 MB / 0.5879 GB, free: 10.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5097, allocations: 4 kB / 0.5879 GB, free: 10.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005174/0.5102, allocations: 247.5 kB / 0.5882 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.5115, allocations: 238.5 kB / 0.5884 GB, free: 9.879 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008569/0.52, allocations: 5.412 MB / 0.5937 GB, free: 4.266 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.5206, allocations: 0.8633 MB / 0.5945 GB, free: 3.375 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005724/0.5212, allocations: 128.3 kB / 0.5946 GB, free: 3.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000318/0.5215, allocations: 199.3 kB / 0.5948 GB, free: 3.055 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5215, allocations: 0 / 0.5948 GB, free: 3.055 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2901/0.8116, allocations: 21.89 MB / 0.6162 GB, free: 109.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/0.8118, allocations: 224.6 kB / 0.6164 GB, free: 109.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.39, allocations: 2.5 kB / 0.6164 GB, free: 109.2 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)