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.09027/0.09027, allocations: 15.27 MB / 30.91 MB, free: 4.152 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.001228/0.001228, allocations: 112.5 kB / 35.92 MB, free: 3.164 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.00135/0.00135, allocations: 193.1 kB / 41.03 MB, free: 7.098 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.471/1.471, allocations: 222.9 MB / 268.9 MB, free: 6.895 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1462/0.1462, allocations: 23.37 MB / 346.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003161/0.003161, allocations: 119.8 kB / 478.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3325, allocations: 59.34 MB / 0.5251 GB, free: 7.797 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.0946/0.4271, allocations: 75.97 MB / 0.5993 GB, free: 8.531 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02098/0.4481, allocations: 15.33 MB / 0.6143 GB, free: 9.145 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.4494, allocations: 23.88 kB / 0.6143 GB, free: 9.121 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.4505, allocations: 258.2 kB / 0.6145 GB, free: 8.867 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00507/0.4556, allocations: 1.545 MB / 0.616 GB, free: 7.312 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006685/0.4623, allocations: 2.148 MB / 0.6181 GB, free: 5.152 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.4649, allocations: 1.512 MB / 0.6196 GB, free: 3.633 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007884/0.4657, allocations: 423.6 kB / 0.62 GB, free: 3.215 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002775/0.4685, allocations: 1.159 MB / 0.6212 GB, free: 2.051 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000955/0.4694, allocations: 0.5564 MB / 0.6217 GB, free: 1.492 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.4696, allocations: 56 kB / 0.6217 GB, free: 1.438 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004317/0.4739, allocations: 1.478 MB / 0.6232 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.4741, allocations: 163.4 kB / 0.6233 GB, free: 15.8 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004888/0.4746, allocations: 354.4 kB / 0.6237 GB, free: 15.45 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005071/0.4797, allocations: 2.071 MB / 0.6257 GB, free: 13.37 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4797, allocations: 0 / 0.6257 GB, free: 13.37 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4798, allocations: 0 / 0.6257 GB, free: 13.37 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.4798, allocations: 0 / 0.6257 GB, free: 13.37 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.002173/0.4819, allocations: 1.169 MB / 0.6268 GB, free: 12.14 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.482, allocations: 12.03 kB / 0.6269 GB, free: 12.13 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.4821, allocations: 86.52 kB / 0.6269 GB, free: 12.04 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.4823, allocations: 67.58 kB / 0.627 GB, free: 11.97 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007291/0.483, allocations: 488.7 kB / 0.6275 GB, free: 11.45 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.483, allocations: 33 kB / 0.6275 GB, free: 11.42 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.493e-05/0.4831, allocations: 44 kB / 0.6275 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.4842, allocations: 0.5499 MB / 0.6281 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.4842, allocations: 3.938 kB / 0.6281 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.842e-05/0.4843, allocations: 16 kB / 0.6281 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.4843, allocations: 12 kB / 0.6281 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.4854, allocations: 499.6 kB / 0.6286 GB, free: 10.27 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.003066/0.4885, allocations: 2.247 MB / 0.6308 GB, free: 7.871 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009834/0.4895, allocations: 0.5232 MB / 0.6313 GB, free: 7.32 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005595/0.4901, allocations: 264.6 kB / 0.6315 GB, free: 7.059 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001837/0.4919, allocations: 1.398 MB / 0.6329 GB, free: 5.504 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005678/0.4925, allocations: 271.7 kB / 0.6332 GB, free: 5.227 MB / 478.1 MB Notification: Performance of pre-optimization done (n=38): time 2.234e-06/0.4925, allocations: 0 / 0.6332 GB, free: 5.227 MB / 478.1 MB Notification: Performance of matching and sorting (n=38): time 0.001749/0.4943, allocations: 0.7259 MB / 0.6339 GB, free: 4.473 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.4944, allocations: 59.39 kB / 0.6339 GB, free: 4.402 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005698/0.4949, allocations: 461.9 kB / 0.6344 GB, free: 3.945 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.495, allocations: 33.7 kB / 0.6344 GB, free: 3.906 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.4952, allocations: 292.3 kB / 0.6347 GB, free: 3.613 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.4954, allocations: 150.7 kB / 0.6348 GB, free: 3.465 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.4956, allocations: 110.2 kB / 0.6349 GB, free: 3.352 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.4958, allocations: 358.8 kB / 0.6353 GB, free: 2.992 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004898/0.4963, allocations: 209 kB / 0.6355 GB, free: 2.785 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005913/0.4969, allocations: 336.5 kB / 0.6358 GB, free: 2.406 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.004114/0.501, allocations: 1.705 MB / 0.6375 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.501, allocations: 0 / 0.6375 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00152/0.5025, allocations: 0.6988 MB / 0.6381 GB, free: 15.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.183e-05/0.5026, allocations: 33.7 kB / 0.6382 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.5026, allocations: 8.031 kB / 0.6382 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.5028, allocations: 44.83 kB / 0.6382 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005234/0.5033, allocations: 115.8 kB / 0.6383 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004368/0.5038, allocations: 0.564 MB / 0.6389 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005267/0.5043, allocations: 67.69 kB / 0.639 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.07e-05/0.5044, allocations: 20 kB / 0.639 GB, free: 15 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.0002727/0.5047, allocations: 189.6 kB / 0.6392 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.977e-05/0.5048, allocations: 51.67 kB / 0.6392 GB, free: 14.75 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001287/0.5061, allocations: 0.5491 MB / 0.6397 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.5061, allocations: 8 kB / 0.6398 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.5061, allocations: 4 kB / 0.6398 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5061, allocations: 0 / 0.6398 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006541/0.5068, allocations: 0.5166 MB / 0.6403 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.5068, allocations: 0 / 0.6403 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.5072, allocations: 79.89 kB / 0.6403 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001108/0.5073, allocations: 40.7 kB / 0.6404 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.5074, allocations: 15.98 kB / 0.6404 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004011/0.5078, allocations: 0.5524 MB / 0.6409 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5078, allocations: 96 / 0.6409 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.5094, allocations: 0.7594 MB / 0.6417 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.5097, allocations: 176.6 kB / 0.6418 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.372e-05/0.5097, allocations: 12 kB / 0.6419 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003355/0.5101, allocations: 27.97 kB / 0.6419 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.5102, allocations: 31.95 kB / 0.6419 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.261e-05/0.5103, allocations: 23.92 kB / 0.6419 GB, free: 11.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003834/0.5107, allocations: 319.1 kB / 0.6422 GB, free: 11.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5107, allocations: 0 / 0.6422 GB, free: 11.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001278/0.5119, allocations: 0.5101 MB / 0.6427 GB, free: 11.01 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.003258/0.5152, allocations: 1.946 MB / 0.6446 GB, free: 9.031 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.5166, allocations: 0.5577 MB / 0.6452 GB, free: 8.461 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5166, allocations: 0 / 0.6452 GB, free: 8.461 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000542/0.5171, allocations: 244.5 kB / 0.6454 GB, free: 8.223 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.5183, allocations: 245.4 kB / 0.6456 GB, free: 7.984 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008198/0.5265, allocations: 5.037 MB / 0.6506 GB, free: 2.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.5271, allocations: 0.8669 MB / 0.6514 GB, free: 1.852 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005006/0.5276, allocations: 120.5 kB / 0.6515 GB, free: 1.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003402/0.5279, allocations: 203.3 kB / 0.6517 GB, free: 1.531 MB / 494.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5279, allocations: 0 / 0.6517 GB, free: 1.531 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0614/0.5893, allocations: 22.99 MB / 0.6742 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/13.97, allocations: 16.72 kB / 0.6742 GB, free: 10.64 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)