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.09685/0.09685, allocations: 15.28 MB / 30.91 MB, free: 4.148 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.0009682/0.0009683, allocations: 107.9 kB / 35.91 MB, free: 3.199 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.001243, allocations: 194.1 kB / 41.02 MB, free: 7.133 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.358/1.358, allocations: 222.9 MB / 268.9 MB, free: 6.891 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1368/0.1368, allocations: 23.35 MB / 346.6 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 111.8 kB / 478.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3234, allocations: 59.36 MB / 0.5251 GB, free: 7.758 MB / 382.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.09039/0.4138, allocations: 75.5 MB / 0.5988 GB, free: 8.957 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01922/0.4331, allocations: 15.35 MB / 0.6138 GB, free: 9.555 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.4341, allocations: 19.88 kB / 0.6138 GB, free: 9.535 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009117/0.4351, allocations: 246.2 kB / 0.6141 GB, free: 9.293 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004707/0.4398, allocations: 1.557 MB / 0.6156 GB, free: 7.727 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006859/0.4467, allocations: 2.14 MB / 0.6177 GB, free: 5.574 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001969/0.4487, allocations: 1.516 MB / 0.6192 GB, free: 4.051 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007661/0.4494, allocations: 439.5 kB / 0.6196 GB, free: 3.617 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002794/0.4523, allocations: 1.159 MB / 0.6207 GB, free: 2.453 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009935/0.4533, allocations: 0.5526 MB / 0.6213 GB, free: 1.898 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001647/0.4534, allocations: 56 kB / 0.6213 GB, free: 1.844 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003989/0.4574, allocations: 1.478 MB / 0.6228 GB, free: 372 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002674/0.4577, allocations: 163.5 kB / 0.6229 GB, free: 208 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000564/0.4583, allocations: 346.4 kB / 0.6232 GB, free: 15.86 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004564/0.4629, allocations: 2.072 MB / 0.6253 GB, free: 13.79 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.4629, allocations: 0 / 0.6253 GB, free: 13.79 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4629, allocations: 0 / 0.6253 GB, free: 13.79 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.134e-05/0.4629, allocations: 0 / 0.6253 GB, free: 13.79 MB / 478.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.002557/0.4655, allocations: 1.14 MB / 0.6264 GB, free: 12.59 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4655, allocations: 8.031 kB / 0.6264 GB, free: 12.58 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.4657, allocations: 82.53 kB / 0.6265 GB, free: 12.49 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.4659, allocations: 67.23 kB / 0.6265 GB, free: 12.42 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007424/0.4666, allocations: 472.4 kB / 0.627 GB, free: 11.92 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.4667, allocations: 37 kB / 0.627 GB, free: 11.88 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.4667, allocations: 40 kB / 0.6271 GB, free: 11.84 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009872/0.4677, allocations: 0.5538 MB / 0.6276 GB, free: 11.26 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.4678, allocations: 3.938 kB / 0.6276 GB, free: 11.25 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.173e-05/0.4678, allocations: 23.98 kB / 0.6276 GB, free: 11.23 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.347e-05/0.4679, allocations: 12 kB / 0.6276 GB, free: 11.22 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.4689, allocations: 499.6 kB / 0.6281 GB, free: 10.73 MB / 478.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.003284/0.4722, allocations: 2.239 MB / 0.6303 GB, free: 8.336 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009299/0.4731, allocations: 0.5348 MB / 0.6308 GB, free: 7.773 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005301/0.4737, allocations: 260.7 kB / 0.6311 GB, free: 7.516 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001856/0.4755, allocations: 1.406 MB / 0.6324 GB, free: 5.953 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.4761, allocations: 271.8 kB / 0.6327 GB, free: 5.676 MB / 478.1 MB Notification: Performance of pre-optimization done (n=38): time 2.404e-06/0.4761, allocations: 0 / 0.6327 GB, free: 5.676 MB / 478.1 MB Notification: Performance of matching and sorting (n=38): time 0.001654/0.4778, allocations: 0.714 MB / 0.6334 GB, free: 4.934 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.4778, allocations: 55.41 kB / 0.6334 GB, free: 4.867 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005511/0.4784, allocations: 465.8 kB / 0.6339 GB, free: 4.406 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.4785, allocations: 33.7 kB / 0.6339 GB, free: 4.367 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.4787, allocations: 287.7 kB / 0.6342 GB, free: 4.078 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.4788, allocations: 146.1 kB / 0.6343 GB, free: 3.934 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.479, allocations: 102.1 kB / 0.6344 GB, free: 3.828 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4792, allocations: 358.8 kB / 0.6348 GB, free: 3.469 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.4797, allocations: 209 kB / 0.635 GB, free: 3.262 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005377/0.4802, allocations: 340.5 kB / 0.6353 GB, free: 2.879 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) 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.003848/0.4841, allocations: 1.698 MB / 0.637 GB, free: 1.082 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4841, allocations: 0 / 0.637 GB, free: 1.082 MB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00137/0.4855, allocations: 0.6984 MB / 0.6376 GB, free: 372 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.4855, allocations: 41.75 kB / 0.6377 GB, free: 324 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.4855, allocations: 4 kB / 0.6377 GB, free: 320 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001435/0.4857, allocations: 36.84 kB / 0.6377 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005252/0.4862, allocations: 119.8 kB / 0.6378 GB, free: 160 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004056/0.4866, allocations: 0.5601 MB / 0.6384 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005526/0.4872, allocations: 67.52 kB / 0.6384 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.063e-05/0.4873, allocations: 23.98 kB / 0.6385 GB, free: 15.48 MB / 494.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.0002494/0.4875, allocations: 189.6 kB / 0.6386 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.4876, allocations: 51.34 kB / 0.6387 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.4889, allocations: 0.5492 MB / 0.6392 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.4889, allocations: 4 kB / 0.6392 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.4889, allocations: 0 / 0.6392 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4889, allocations: 7.984 kB / 0.6392 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006545/0.4896, allocations: 0.5166 MB / 0.6397 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.4896, allocations: 4 kB / 0.6398 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.49, allocations: 75.88 kB / 0.6398 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.444e-05/0.4901, allocations: 40.72 kB / 0.6399 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.4901, allocations: 11.98 kB / 0.6399 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003664/0.4905, allocations: 0.5601 MB / 0.6404 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.4905, allocations: 4.094 kB / 0.6404 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.492, allocations: 0.7591 MB / 0.6412 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.4923, allocations: 164.5 kB / 0.6413 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.335e-05/0.4924, allocations: 23.98 kB / 0.6413 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003476/0.4927, allocations: 19.98 kB / 0.6414 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.4928, allocations: 39.88 kB / 0.6414 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/0.4929, allocations: 12 kB / 0.6414 GB, free: 12.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003719/0.4933, allocations: 327 kB / 0.6417 GB, free: 12 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4933, allocations: 0 / 0.6417 GB, free: 12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001368/0.4946, allocations: 0.4993 MB / 0.6422 GB, free: 11.5 MB / 494.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.003313/0.498, allocations: 1.939 MB / 0.6441 GB, free: 9.527 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.4992, allocations: 0.5499 MB / 0.6446 GB, free: 8.965 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4992, allocations: 0 / 0.6446 GB, free: 8.965 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004918/0.4997, allocations: 244.5 kB / 0.6449 GB, free: 8.727 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.5007, allocations: 244.6 kB / 0.6451 GB, free: 8.492 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007862/0.5086, allocations: 5.02 MB / 0.65 GB, free: 3.277 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.5091, allocations: 0.863 MB / 0.6509 GB, free: 2.383 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004269/0.5095, allocations: 120.4 kB / 0.651 GB, free: 2.262 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.5098, allocations: 203.3 kB / 0.6512 GB, free: 2.062 MB / 494.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5098, allocations: 0 / 0.6512 GB, free: 2.062 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04836/0.5582, allocations: 23.29 MB / 0.6739 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/13.05, allocations: 13.59 kB / 0.6739 GB, free: 10.87 MB / 0.5137 GB (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)