Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",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.1526/0.1526, allocations: 15.28 MB / 30.52 MB, free: 4.336 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.001272/0.001272, allocations: 110.2 kB / 35.48 MB, free: 3.383 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.00141/0.00141, allocations: 200.5 kB / 40.59 MB, free: 7.445 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.737/1.737, allocations: 222.9 MB / 268.4 MB, free: 7.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1757/0.1757, allocations: 23.35 MB / 346.1 MB, free: 432 kB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 108.2 kB / 417.7 MB, free: 30.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1682, allocations: 59.37 MB / 477.1 MB, free: 3.215 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707: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:707:7-707: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_4element): time 0.3937/0.5618, allocations: 79.78 MB / 0.5439 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02153/0.5834, allocations: 22.09 MB / 0.5654 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.5851, allocations: 35.75 kB / 0.5655 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009694/0.586, allocations: 223.8 kB / 0.5657 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008426/0.5945, allocations: 2.258 MB / 0.5679 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007949/0.6025, allocations: 1.884 MB / 0.5697 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001921/0.6044, allocations: 1.375 MB / 0.5711 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006964/0.6051, allocations: 462.5 kB / 0.5715 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002918/0.6081, allocations: 1.1 MB / 0.5726 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009385/0.609, allocations: 0.5539 MB / 0.5731 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.936e-05/0.6091, allocations: 52 kB / 0.5732 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006507/0.6156, allocations: 1.9 MB / 0.575 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.6159, allocations: 167.5 kB / 0.5752 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005175/0.6165, allocations: 330.6 kB / 0.5755 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006501/0.623, allocations: 2.313 MB / 0.5778 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.623, allocations: 0 / 0.5778 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.623, allocations: 0 / 0.5778 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.623, allocations: 0 / 0.5778 GB, free: 10.48 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.002438/0.6255, allocations: 1.111 MB / 0.5788 GB, free: 9.316 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.6255, allocations: 12.03 kB / 0.5789 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.6257, allocations: 78.52 kB / 0.5789 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.6258, allocations: 59.25 kB / 0.579 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006374/0.6265, allocations: 418.2 kB / 0.5794 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.6265, allocations: 37 kB / 0.5794 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.745e-05/0.6266, allocations: 40 kB / 0.5795 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009666/0.6276, allocations: 0.524 MB / 0.58 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.6276, allocations: 7.938 kB / 0.58 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.6277, allocations: 27.98 kB / 0.58 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.6277, allocations: 8 kB / 0.58 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009664/0.6287, allocations: 495.7 kB / 0.5805 GB, free: 7.559 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.00325/0.6319, allocations: 2.458 MB / 0.5829 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007621/0.6327, allocations: 415.3 kB / 0.5833 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.6332, allocations: 261.1 kB / 0.5835 GB, free: 4.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00151/0.6347, allocations: 1.114 MB / 0.5846 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004761/0.6352, allocations: 260.7 kB / 0.5849 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002205/0.6355, allocations: 59.44 kB / 0.5849 GB, free: 2.637 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.585e-06/0.6355, allocations: 0 / 0.5849 GB, free: 2.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001732/0.6372, allocations: 0.8071 MB / 0.5857 GB, free: 1.781 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.6373, allocations: 63.33 kB / 0.5858 GB, free: 1.707 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004831/0.6378, allocations: 393.6 kB / 0.5861 GB, free: 1.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.19e-05/0.6378, allocations: 33.7 kB / 0.5862 GB, free: 1.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.638, allocations: 244.2 kB / 0.5864 GB, free: 1.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.6381, allocations: 145.9 kB / 0.5865 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.6383, allocations: 98.22 kB / 0.5866 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.6385, allocations: 358.7 kB / 0.587 GB, free: 436 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.6388, allocations: 177 kB / 0.5872 GB, free: 260 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.6393, allocations: 279.4 kB / 0.5874 GB, free: 15.95 MB / 414.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.004284/0.6436, allocations: 1.323 MB / 0.5887 GB, free: 14.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.906e-06/0.6436, allocations: 4 kB / 0.5887 GB, free: 14.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001255/0.6449, allocations: 0.591 MB / 0.5893 GB, free: 13.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.6449, allocations: 4 kB / 0.5893 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.6449, allocations: 4 kB / 0.5893 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.6452, allocations: 73.8 kB / 0.5894 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.6457, allocations: 99.81 kB / 0.5895 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008368/0.6465, allocations: 1.12 MB / 0.5906 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.647, allocations: 44.03 kB / 0.5906 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.938e-05/0.6471, allocations: 23.98 kB / 0.5906 GB, free: 12.54 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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 (55): * Single equations (assignments): 51 * 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.0003186/0.6474, allocations: 185.6 kB / 0.5908 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.785e-05/0.6475, allocations: 43.53 kB / 0.5908 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/0.6488, allocations: 0.5838 MB / 0.5914 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.6488, allocations: 7.984 kB / 0.5914 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.6488, allocations: 3.938 kB / 0.5914 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.6488, allocations: 0 / 0.5914 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.6507, allocations: 1.123 MB / 0.5925 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.6507, allocations: 3.984 kB / 0.5925 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003416/0.6511, allocations: 63.91 kB / 0.5926 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.6513, allocations: 73.66 kB / 0.5927 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.6513, allocations: 16.03 kB / 0.5927 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007482/0.6521, allocations: 1.116 MB / 0.5938 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6521, allocations: 3.938 kB / 0.5938 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.6535, allocations: 0.8018 MB / 0.5945 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.6537, allocations: 160.5 kB / 0.5947 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.22e-05/0.6538, allocations: 8 kB / 0.5947 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000354/0.6542, allocations: 31.97 kB / 0.5947 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.6543, allocations: 39.73 kB / 0.5948 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.002e-05/0.6543, allocations: 15.98 kB / 0.5948 GB, free: 8.074 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003324/0.6547, allocations: 283.1 kB / 0.5951 GB, free: 7.801 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6547, allocations: 0 / 0.5951 GB, free: 7.801 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001815/0.6565, allocations: 0.5734 MB / 0.5956 GB, free: 7.227 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * 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 (38): * Single equations (assignments): 32 * 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.003917/0.6604, allocations: 2.138 MB / 0.5977 GB, free: 5.047 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.6618, allocations: 494.2 kB / 0.5982 GB, free: 4.562 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.6618, allocations: 0 / 0.5982 GB, free: 4.562 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004799/0.6623, allocations: 236.6 kB / 0.5984 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.6635, allocations: 225.8 kB / 0.5986 GB, free: 4.113 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008273/0.6718, allocations: 4.905 MB / 0.6034 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.6724, allocations: 0.8431 MB / 0.6042 GB, free: 14.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005155/0.6729, allocations: 112.2 kB / 0.6043 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.6732, allocations: 179.3 kB / 0.6045 GB, free: 13.89 MB / 430.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6732, allocations: 0 / 0.6045 GB, free: 13.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04572/0.7189, allocations: 24.46 MB / 0.6284 GB, free: 5.574 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.7192, allocations: 229 kB / 0.6286 GB, free: 5.316 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.76/3.479, allocations: 7.938 kB / 0.6286 GB, free: 5.309 MB / 446.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)