Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",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.09747/0.09747, allocations: 15.28 MB / 30.91 MB, free: 4.227 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.00101/0.00101, allocations: 112 kB / 35.92 MB, free: 3.172 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.001397/0.001397, allocations: 193.1 kB / 41.02 MB, free: 7.152 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.426/1.426, allocations: 222.9 MB / 268.9 MB, free: 6.934 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1352/0.1352, allocations: 23.36 MB / 346.6 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 115.8 kB / 478.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.394, allocations: 59.36 MB / 0.5251 GB, free: 7.773 MB / 382.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_2element): time 0.08298/0.477, allocations: 68.03 MB / 0.5915 GB, free: 500 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02049/0.4975, allocations: 15.49 MB / 0.6067 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000895/0.4984, allocations: 15.88 kB / 0.6067 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009391/0.4994, allocations: 202.5 kB / 0.6069 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007437/0.5069, allocations: 2.224 MB / 0.609 GB, free: 14.49 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003488/0.5104, allocations: 1.134 MB / 0.6102 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.5119, allocations: 1.098 MB / 0.6112 GB, free: 12.24 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006278/0.5125, allocations: 334.4 kB / 0.6115 GB, free: 11.91 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002498/0.515, allocations: 1.026 MB / 0.6125 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007652/0.5158, allocations: 402.4 kB / 0.6129 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.516, allocations: 47.92 kB / 0.613 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004251/0.5202, allocations: 1.56 MB / 0.6145 GB, free: 8.871 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.5204, allocations: 135.5 kB / 0.6146 GB, free: 8.738 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003791/0.5208, allocations: 246.9 kB / 0.6149 GB, free: 8.496 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005426/0.5263, allocations: 2.025 MB / 0.6168 GB, free: 6.465 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.5263, allocations: 3.938 kB / 0.6168 GB, free: 6.461 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5263, allocations: 0 / 0.6168 GB, free: 6.461 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.5263, allocations: 0 / 0.6168 GB, free: 6.461 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002458/0.5288, allocations: 0.9709 MB / 0.6178 GB, free: 5.441 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.5288, allocations: 8.031 kB / 0.6178 GB, free: 5.434 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.404e-05/0.5289, allocations: 70.53 kB / 0.6179 GB, free: 5.355 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.5291, allocations: 51.38 kB / 0.6179 GB, free: 5.305 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.5297, allocations: 381.9 kB / 0.6183 GB, free: 4.891 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.5298, allocations: 24.64 kB / 0.6183 GB, free: 4.867 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.301e-05/0.5298, allocations: 36 kB / 0.6183 GB, free: 4.832 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00076/0.5306, allocations: 399.5 kB / 0.6187 GB, free: 4.422 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.5306, allocations: 8 kB / 0.6187 GB, free: 4.414 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.5307, allocations: 8 kB / 0.6187 GB, free: 4.406 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.5307, allocations: 11.94 kB / 0.6187 GB, free: 4.395 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006987/0.5314, allocations: 334.4 kB / 0.6191 GB, free: 4.066 MB / 462.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.00283/0.5342, allocations: 2.046 MB / 0.6211 GB, free: 1.805 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006379/0.5349, allocations: 330.5 kB / 0.6214 GB, free: 1.473 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.5352, allocations: 156.8 kB / 0.6215 GB, free: 1.316 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001273/0.5365, allocations: 0.9501 MB / 0.6225 GB, free: 272 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003705/0.5369, allocations: 195.2 kB / 0.6226 GB, free: 64 kB / 462.1 MB Notification: Performance of pre-optimization done (n=31): time 1.903e-06/0.5369, allocations: 0 / 0.6226 GB, free: 64 kB / 462.1 MB Notification: Performance of matching and sorting (n=31): time 0.001208/0.5381, allocations: 0.5271 MB / 0.6232 GB, free: 15.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.5382, allocations: 63.39 kB / 0.6232 GB, free: 15.43 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004518/0.5386, allocations: 377.6 kB / 0.6236 GB, free: 15.05 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.5387, allocations: 37.64 kB / 0.6236 GB, free: 15.01 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.5388, allocations: 220 kB / 0.6238 GB, free: 14.79 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.5389, allocations: 110.4 kB / 0.6239 GB, free: 14.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.5391, allocations: 78.12 kB / 0.624 GB, free: 14.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5392, allocations: 346.8 kB / 0.6243 GB, free: 14.25 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.5395, allocations: 140.8 kB / 0.6245 GB, free: 14.12 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003312/0.5399, allocations: 213.7 kB / 0.6247 GB, free: 13.88 MB / 478.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.002049/0.5419, allocations: 0.8863 MB / 0.6255 GB, free: 12.94 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5419, allocations: 0 / 0.6255 GB, free: 12.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009244/0.5429, allocations: 466 kB / 0.626 GB, free: 12.47 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.5429, allocations: 8 kB / 0.626 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5429, allocations: 3.938 kB / 0.626 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001391/0.5431, allocations: 40.83 kB / 0.626 GB, free: 12.42 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.5434, allocations: 75.83 kB / 0.6261 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003947/0.5438, allocations: 0.5486 MB / 0.6266 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.5442, allocations: 55.53 kB / 0.6267 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.5443, allocations: 12 kB / 0.6267 GB, free: 11.7 MB / 478.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 (47): * 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: 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.000219/0.5445, allocations: 170.7 kB / 0.6269 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.3e-05/0.5446, allocations: 35.53 kB / 0.6269 GB, free: 11.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008605/0.5454, allocations: 416.9 kB / 0.6273 GB, free: 11.06 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.5455, allocations: 7.922 kB / 0.6273 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5455, allocations: 4 kB / 0.6273 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.5455, allocations: 0 / 0.6273 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.5468, allocations: 0.8748 MB / 0.6282 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.5469, allocations: 0 / 0.6282 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/0.5471, allocations: 43.91 kB / 0.6282 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.341e-05/0.5472, allocations: 28.84 kB / 0.6282 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.5472, allocations: 16.02 kB / 0.6282 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003423/0.5476, allocations: 0.5406 MB / 0.6288 GB, free: 9.457 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.5476, allocations: 7.969 kB / 0.6288 GB, free: 9.449 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.5486, allocations: 0.5838 MB / 0.6294 GB, free: 8.844 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.5489, allocations: 148.5 kB / 0.6295 GB, free: 8.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/0.5489, allocations: 11.94 kB / 0.6295 GB, free: 8.668 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.5492, allocations: 11.98 kB / 0.6295 GB, free: 8.656 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.115e-05/0.5493, allocations: 23.97 kB / 0.6295 GB, free: 8.633 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.5493, allocations: 15.98 kB / 0.6296 GB, free: 8.617 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003309/0.5497, allocations: 275.2 kB / 0.6298 GB, free: 8.355 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5497, allocations: 0 / 0.6298 GB, free: 8.355 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001462/0.5512, allocations: 487.4 kB / 0.6303 GB, free: 7.879 MB / 478.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 (28): * 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: 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.003233/0.5544, allocations: 1.818 MB / 0.6321 GB, free: 6.027 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008273/0.5552, allocations: 343.5 kB / 0.6324 GB, free: 5.691 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5552, allocations: 0 / 0.6324 GB, free: 5.691 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003362/0.5556, allocations: 147.8 kB / 0.6325 GB, free: 5.547 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009991/0.5566, allocations: 205.2 kB / 0.6327 GB, free: 5.348 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006422/0.563, allocations: 3.99 MB / 0.6366 GB, free: 1.191 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.5635, allocations: 0.8074 MB / 0.6374 GB, free: 364 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000321/0.5638, allocations: 83.3 kB / 0.6375 GB, free: 280 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.5641, allocations: 147.4 kB / 0.6376 GB, free: 132 kB / 478.1 MB Notification: Performance of SimCode: time 4.81e-07/0.5641, allocations: 0 / 0.6376 GB, free: 132 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05493/0.619, allocations: 21.35 MB / 0.6585 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.43, allocations: 7.922 kB / 0.6585 GB, free: 10.89 MB / 0.4981 GB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)