Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",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.1189/0.1189, allocations: 15.27 MB / 30.54 MB, free: 5.723 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.0009182/0.0009184, allocations: 118 kB / 35.57 MB, free: 1.133 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.001243/0.001244, allocations: 176.5 kB / 40.68 MB, free: 4.746 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.51/1.51, allocations: 223.3 MB / 268.9 MB, free: 236 kB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1272/0.1272, allocations: 23.39 MB / 347.7 MB, free: 6.492 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005309/0.0005309, allocations: 12.56 kB / 420.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3562, allocations: 60.47 MB / 480.8 MB, free: 36.34 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.Windkessel_3element): time 0.07347/0.4297, allocations: 73 MB / 0.5408 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02306/0.4528, allocations: 18.72 MB / 0.5591 GB, free: 8.5 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001453/0.4543, allocations: 27.75 kB / 0.5591 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008031/0.4551, allocations: 194.8 kB / 0.5593 GB, free: 8.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008481/0.4636, allocations: 2.14 MB / 0.5614 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005547/0.4692, allocations: 1.426 MB / 0.5628 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002633/0.4719, allocations: 1.816 MB / 0.5646 GB, free: 2.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005837/0.4725, allocations: 303.4 kB / 0.5649 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003001/0.4755, allocations: 0.9798 MB / 0.5658 GB, free: 1.586 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009735/0.4765, allocations: 462.2 kB / 0.5663 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.712e-05/0.4766, allocations: 24 kB / 0.5663 GB, free: 1.109 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005986/0.4826, allocations: 1.704 MB / 0.5679 GB, free: 15.4 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.4829, allocations: 119.5 kB / 0.5681 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004359/0.4833, allocations: 288.4 kB / 0.5683 GB, free: 15 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007735/0.4911, allocations: 2.071 MB / 0.5704 GB, free: 12.92 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4911, allocations: 0 / 0.5704 GB, free: 12.92 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.319e-06/0.4911, allocations: 0 / 0.5704 GB, free: 12.92 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.4912, allocations: 4 kB / 0.5704 GB, free: 12.91 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.002389/0.4936, allocations: 0.9557 MB / 0.5713 GB, free: 11.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.4936, allocations: 8.031 kB / 0.5713 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.4938, allocations: 78.52 kB / 0.5714 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.4939, allocations: 55.34 kB / 0.5714 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005759/0.4944, allocations: 386.3 kB / 0.5718 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.4945, allocations: 32.94 kB / 0.5718 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-05/0.4946, allocations: 39.98 kB / 0.5719 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008044/0.4954, allocations: 448.7 kB / 0.5723 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.4954, allocations: 3.984 kB / 0.5723 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.118e-05/0.4955, allocations: 16 kB / 0.5723 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.4955, allocations: 8 kB / 0.5723 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007847/0.4963, allocations: 395.7 kB / 0.5727 GB, free: 10.4 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.003045/0.4994, allocations: 2.196 MB / 0.5748 GB, free: 7.969 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000675/0.5, allocations: 377.8 kB / 0.5752 GB, free: 7.594 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003274/0.5004, allocations: 185 kB / 0.5754 GB, free: 7.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001381/0.5018, allocations: 1.002 MB / 0.5764 GB, free: 6.309 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004353/0.5022, allocations: 220.5 kB / 0.5766 GB, free: 6.082 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 2.424e-06/0.5022, allocations: 0 / 0.5766 GB, free: 6.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.001576/0.5038, allocations: 0.7401 MB / 0.5773 GB, free: 5.293 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.5039, allocations: 55.41 kB / 0.5773 GB, free: 5.227 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004569/0.5043, allocations: 389.6 kB / 0.5777 GB, free: 4.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.5044, allocations: 37.69 kB / 0.5777 GB, free: 4.797 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.5046, allocations: 236 kB / 0.578 GB, free: 4.559 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.5047, allocations: 114.3 kB / 0.5781 GB, free: 4.445 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-05/0.5048, allocations: 45.69 kB / 0.5781 GB, free: 4.395 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.5049, allocations: 350.8 kB / 0.5785 GB, free: 4.043 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.5053, allocations: 152.8 kB / 0.5786 GB, free: 3.895 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000376/0.5056, allocations: 245.7 kB / 0.5788 GB, free: 3.621 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) Notification: Performance of analyzeInitialSystem (initialization): time 0.002264/0.5079, allocations: 0.998 MB / 0.5798 GB, free: 2.574 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.5079, allocations: 4 kB / 0.5798 GB, free: 2.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001062/0.509, allocations: 0.5298 MB / 0.5803 GB, free: 2.027 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.509, allocations: 4 kB / 0.5803 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.5091, allocations: 4 kB / 0.5803 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002487/0.5093, allocations: 73.77 kB / 0.5804 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.5097, allocations: 79.89 kB / 0.5805 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007424/0.5104, allocations: 1.124 MB / 0.5816 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004401/0.5109, allocations: 59.56 kB / 0.5816 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.5109, allocations: 23.94 kB / 0.5817 GB, free: 0.6055 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: arteries.mass = arteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.pulses.TD2,$PRE.pulses.HP,$PRE.pulses.T0,pulses.TD2,pulses.HP,pulses.b,pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002762/0.5112, allocations: 185.6 kB / 0.5818 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/0.5113, allocations: 51.41 kB / 0.5819 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3048/0.8161, allocations: 482.8 kB / 0.5824 GB, free: 37.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.8162, allocations: 4.578 kB / 0.5824 GB, free: 37.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.8162, allocations: 1.781 kB / 0.5824 GB, free: 37.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.8162, allocations: 1.828 kB / 0.5824 GB, free: 37.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.8182, allocations: 0.9826 MB / 0.5833 GB, free: 36.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.8182, allocations: 0.7188 kB / 0.5833 GB, free: 36.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.8185, allocations: 53.61 kB / 0.5834 GB, free: 36.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/0.8187, allocations: 68.25 kB / 0.5834 GB, free: 36.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.8187, allocations: 10.45 kB / 0.5835 GB, free: 36.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000497/0.8192, allocations: 1.118 MB / 0.5845 GB, free: 35.74 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.8192, allocations: 1.75 kB / 0.5845 GB, free: 35.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.8205, allocations: 0.7011 MB / 0.5852 GB, free: 35.58 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.8207, allocations: 156.7 kB / 0.5854 GB, free: 35.49 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.8208, allocations: 11.25 kB / 0.5854 GB, free: 35.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.8211, allocations: 31.53 kB / 0.5854 GB, free: 35.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.963e-05/0.8212, allocations: 32.45 kB / 0.5854 GB, free: 35.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.8212, allocations: 11.69 kB / 0.5855 GB, free: 35.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003361/0.8216, allocations: 282.6 kB / 0.5857 GB, free: 35.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8216, allocations: 0 / 0.5857 GB, free: 35.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001301/0.8229, allocations: 0.5191 MB / 0.5862 GB, free: 35.39 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.substanceMasses[1]) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002371/0.8253, allocations: 1.977 MB / 0.5882 GB, free: 34.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000899/0.8262, allocations: 396.4 kB / 0.5885 GB, free: 34.64 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.8262, allocations: 0 / 0.5885 GB, free: 34.64 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003657/0.8266, allocations: 185.1 kB / 0.5887 GB, free: 34.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.8277, allocations: 194.1 kB / 0.5889 GB, free: 34.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005304/0.833, allocations: 4.568 MB / 0.5934 GB, free: 32.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.8333, allocations: 0.8284 MB / 0.5942 GB, free: 32.03 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003419/0.8336, allocations: 85.42 kB / 0.5943 GB, free: 32.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.8338, allocations: 154.2 kB / 0.5944 GB, free: 32.01 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.8338, allocations: 3.656 kB / 0.5944 GB, free: 32.01 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04415/0.878, allocations: 22 MB / 0.6159 GB, free: 25.91 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.8782, allocations: 228.2 kB / 0.6161 GB, free: 25.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.621/3.499, allocations: 0 / 0.6161 GB, free: 25.65 MB / 430.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)