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.0826/0.0826, allocations: 15.29 MB / 30.79 MB, free: 4.078 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.0009402/0.0009403, allocations: 107.6 kB / 35.77 MB, free: 3.281 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.001161/0.001162, allocations: 193.1 kB / 40.88 MB, free: 7.195 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.267/1.267, allocations: 222.9 MB / 268.7 MB, free: 6.902 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1233/0.1233, allocations: 23.35 MB / 346.4 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 115.8 kB / 418.3 MB, free: 30.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.09008, allocations: 59.35 MB / 477.7 MB, free: 2.902 MB / 334.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.2573/0.3474, allocations: 75.53 MB / 0.5402 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01316/0.3606, allocations: 15.33 MB / 0.5552 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008917/0.3615, allocations: 23.88 kB / 0.5552 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007923/0.3623, allocations: 252.6 kB / 0.5555 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003642/0.366, allocations: 1.555 MB / 0.557 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005207/0.3712, allocations: 2.138 MB / 0.5591 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001593/0.3728, allocations: 1.517 MB / 0.5606 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006925/0.3736, allocations: 434.6 kB / 0.561 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002461/0.376, allocations: 1.154 MB / 0.5621 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008416/0.3769, allocations: 0.5441 MB / 0.5626 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.377, allocations: 52 kB / 0.5627 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.3806, allocations: 1.496 MB / 0.5642 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002484/0.3809, allocations: 169.3 kB / 0.5643 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000502/0.3814, allocations: 346.9 kB / 0.5646 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004028/0.3854, allocations: 2.049 MB / 0.5666 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3854, allocations: 0 / 0.5666 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3854, allocations: 0 / 0.5666 GB, free: 14.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.036e-06/0.3855, allocations: 0 / 0.5666 GB, free: 14.32 MB / 398.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.001966/0.3874, allocations: 1.137 MB / 0.5678 GB, free: 13.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.3875, allocations: 12.03 kB / 0.5678 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.607e-05/0.3876, allocations: 80.22 kB / 0.5678 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.3877, allocations: 63.25 kB / 0.5679 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005552/0.3882, allocations: 460.4 kB / 0.5683 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.3883, allocations: 36.94 kB / 0.5684 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.455e-05/0.3884, allocations: 48 kB / 0.5684 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000892/0.3893, allocations: 0.5464 MB / 0.569 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.3893, allocations: 0 / 0.569 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.3893, allocations: 27.94 kB / 0.569 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.3894, allocations: 10.2 kB / 0.569 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009383/0.3903, allocations: 494.8 kB / 0.5695 GB, free: 11.8 MB / 398.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.002632/0.3929, allocations: 2.261 MB / 0.5717 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008323/0.3938, allocations: 0.5194 MB / 0.5722 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/0.3943, allocations: 264.7 kB / 0.5724 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001504/0.3958, allocations: 1.397 MB / 0.5738 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004834/0.3963, allocations: 269 kB / 0.5741 GB, free: 6.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.733e-06/0.3963, allocations: 0 / 0.5741 GB, free: 6.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001482/0.3978, allocations: 0.7179 MB / 0.5748 GB, free: 6.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.3978, allocations: 55.41 kB / 0.5748 GB, free: 6.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.3983, allocations: 465.8 kB / 0.5753 GB, free: 5.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.3983, allocations: 29.7 kB / 0.5753 GB, free: 5.508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.3985, allocations: 294.6 kB / 0.5756 GB, free: 5.219 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.686e-05/0.3986, allocations: 136.9 kB / 0.5757 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.3988, allocations: 106.1 kB / 0.5758 GB, free: 4.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3989, allocations: 362.7 kB / 0.5761 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.3994, allocations: 216.9 kB / 0.5763 GB, free: 4.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.3999, allocations: 336.5 kB / 0.5767 GB, free: 4.02 MB / 398.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.00354/0.4034, allocations: 1.692 MB / 0.5783 GB, free: 2.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4034, allocations: 4 kB / 0.5783 GB, free: 2.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001247/0.4047, allocations: 0.7042 MB / 0.579 GB, free: 1.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.4047, allocations: 29.7 kB / 0.579 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.4047, allocations: 4 kB / 0.579 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/0.4049, allocations: 44.83 kB / 0.5791 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004697/0.4054, allocations: 115.8 kB / 0.5792 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003474/0.4057, allocations: 0.5719 MB / 0.5798 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.4062, allocations: 59.42 kB / 0.5798 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.4062, allocations: 27.98 kB / 0.5798 GB, free: 0.6133 MB / 398.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: 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.0002094/0.4064, allocations: 185.6 kB / 0.58 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.78e-05/0.4065, allocations: 55.36 kB / 0.5801 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.4076, allocations: 0.5461 MB / 0.5806 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.4076, allocations: 11.94 kB / 0.5806 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.4077, allocations: 4 kB / 0.5806 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.4077, allocations: 3.984 kB / 0.5806 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005126/0.4082, allocations: 0.5204 MB / 0.5811 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4082, allocations: 0 / 0.5811 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.4085, allocations: 71.88 kB / 0.5812 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.399e-05/0.4086, allocations: 32.84 kB / 0.5812 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.4087, allocations: 15.98 kB / 0.5812 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003121/0.409, allocations: 0.5523 MB / 0.5818 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.409, allocations: 3.938 kB / 0.5818 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.4103, allocations: 0.7632 MB / 0.5825 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.4105, allocations: 176.4 kB / 0.5827 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.603e-05/0.4106, allocations: 11.94 kB / 0.5827 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.4109, allocations: 23.97 kB / 0.5827 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/0.411, allocations: 35.95 kB / 0.5828 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/0.4111, allocations: 15.98 kB / 0.5828 GB, free: 13.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003135/0.4114, allocations: 319.1 kB / 0.5831 GB, free: 13.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4114, allocations: 0 / 0.5831 GB, free: 13.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001117/0.4125, allocations: 0.5072 MB / 0.5836 GB, free: 12.65 MB / 414.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.002611/0.4151, allocations: 1.938 MB / 0.5855 GB, free: 10.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.4163, allocations: 0.5873 MB / 0.586 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4163, allocations: 4.125 kB / 0.5861 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000452/0.4168, allocations: 243.5 kB / 0.5863 GB, free: 9.902 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009561/0.4177, allocations: 241.5 kB / 0.5865 GB, free: 9.668 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006449/0.4242, allocations: 5.102 MB / 0.5915 GB, free: 4.379 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.4246, allocations: 0.863 MB / 0.5923 GB, free: 3.488 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000388/0.425, allocations: 120.4 kB / 0.5925 GB, free: 3.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.4252, allocations: 203.4 kB / 0.5926 GB, free: 3.172 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4252, allocations: 0 / 0.5926 GB, free: 3.172 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03862/0.4639, allocations: 22.82 MB / 0.6149 GB, free: 12.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/11, allocations: 8.062 kB / 0.6149 GB, free: 12.43 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)