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: translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1074/0.1074, 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.001054/0.001054, allocations: 110.7 kB / 35.92 MB, free: 3.184 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.001264/0.001264, allocations: 193.1 kB / 41.02 MB, free: 7.129 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.417/1.417, allocations: 222.9 MB / 268.9 MB, free: 6.805 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1359/0.1359, allocations: 23.35 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 103.8 kB / 478.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3519, allocations: 59.36 MB / 0.5256 GB, free: 8.09 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_4element): time 0.09811/0.4501, allocations: 80.59 MB / 0.6043 GB, free: 3.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02491/0.475, allocations: 22.18 MB / 0.6259 GB, free: 13.56 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008336/0.4759, allocations: 15.94 kB / 0.626 GB, free: 13.55 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009066/0.4768, allocations: 270.1 kB / 0.6262 GB, free: 13.28 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006819/0.4836, allocations: 2.446 MB / 0.6286 GB, free: 10.82 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005243/0.4889, allocations: 2.058 MB / 0.6306 GB, free: 8.75 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.4906, allocations: 1.372 MB / 0.632 GB, free: 7.371 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007046/0.4913, allocations: 456.7 kB / 0.6324 GB, free: 6.922 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002555/0.4939, allocations: 1.135 MB / 0.6335 GB, free: 5.781 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009629/0.4949, allocations: 0.5254 MB / 0.634 GB, free: 5.254 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.495, allocations: 56 kB / 0.6341 GB, free: 5.199 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004624/0.4996, allocations: 1.856 MB / 0.6359 GB, free: 3.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001997/0.4999, allocations: 155.5 kB / 0.636 GB, free: 3.188 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004126/0.5003, allocations: 326.6 kB / 0.6363 GB, free: 2.867 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005327/0.5056, allocations: 2.413 MB / 0.6387 GB, free: 456 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.5056, allocations: 0 / 0.6387 GB, free: 456 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.5056, allocations: 0 / 0.6387 GB, free: 456 kB / 478.1 MB Notification: Performance of Transformations before backend: time 2.37e-05/0.5057, allocations: 0 / 0.6387 GB, free: 456 kB / 478.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.002444/0.5081, allocations: 1.144 MB / 0.6398 GB, free: 15.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.878e-05/0.5082, allocations: 12.03 kB / 0.6398 GB, free: 15.23 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.5084, allocations: 55.67 kB / 0.6399 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007262/0.5091, allocations: 442.4 kB / 0.6403 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.5092, allocations: 40.98 kB / 0.6403 GB, free: 14.67 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.134e-05/0.5092, allocations: 44 kB / 0.6404 GB, free: 14.63 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009263/0.5102, allocations: 0.524 MB / 0.6409 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.5102, allocations: 4 kB / 0.6409 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.5103, allocations: 19.94 kB / 0.6409 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.5103, allocations: 8 kB / 0.6409 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009604/0.5113, allocations: 0.4918 MB / 0.6414 GB, free: 13.56 MB / 494.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.003029/0.5143, allocations: 2.467 MB / 0.6438 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/0.5151, allocations: 419.1 kB / 0.6442 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000491/0.5156, allocations: 252.7 kB / 0.6445 GB, free: 10.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/0.517, allocations: 1.126 MB / 0.6455 GB, free: 8.945 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004546/0.5174, allocations: 249.1 kB / 0.6458 GB, free: 8.688 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001581/0.5176, allocations: 47.73 kB / 0.6458 GB, free: 8.641 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 2.184e-06/0.5176, allocations: 0 / 0.6458 GB, free: 8.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001722/0.5194, allocations: 0.8198 MB / 0.6466 GB, free: 7.773 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.5194, allocations: 55.73 kB / 0.6467 GB, free: 7.707 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004307/0.5198, allocations: 405.5 kB / 0.6471 GB, free: 7.305 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.5199, allocations: 33.7 kB / 0.6471 GB, free: 7.266 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.5201, allocations: 248.6 kB / 0.6473 GB, free: 7.016 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.5202, allocations: 146.8 kB / 0.6475 GB, free: 6.871 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.5204, allocations: 94.19 kB / 0.6476 GB, free: 6.773 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5205, allocations: 362.8 kB / 0.6479 GB, free: 6.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.5209, allocations: 177 kB / 0.6481 GB, free: 6.238 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/0.5213, allocations: 275.3 kB / 0.6483 GB, free: 5.934 MB / 494.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.004129/0.5254, allocations: 1.315 MB / 0.6496 GB, free: 4.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.5254, allocations: 4 kB / 0.6496 GB, free: 4.566 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001174/0.5266, allocations: 0.5988 MB / 0.6502 GB, free: 3.953 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.5267, allocations: 11.98 kB / 0.6502 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.5267, allocations: 0 / 0.6502 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.5269, allocations: 81.66 kB / 0.6503 GB, free: 3.855 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004117/0.5273, allocations: 103.9 kB / 0.6504 GB, free: 3.754 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007412/0.5281, allocations: 1.12 MB / 0.6515 GB, free: 2.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003327/0.5284, allocations: 16 kB / 0.6515 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.5285, allocations: 28.14 kB / 0.6515 GB, free: 2.539 MB / 494.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.0002186/0.5287, allocations: 177.7 kB / 0.6517 GB, free: 2.355 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.513e-05/0.5288, allocations: 51.66 kB / 0.6518 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.53, allocations: 0.5838 MB / 0.6523 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.53, allocations: 4 kB / 0.6523 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.53, allocations: 0 / 0.6523 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.53, allocations: 3.984 kB / 0.6523 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.5318, allocations: 1.114 MB / 0.6534 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.5318, allocations: 4 kB / 0.6534 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.5322, allocations: 67.89 kB / 0.6535 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/0.5324, allocations: 73.7 kB / 0.6536 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.5324, allocations: 19.98 kB / 0.6536 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006835/0.5331, allocations: 1.117 MB / 0.6547 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5331, allocations: 4.094 kB / 0.6547 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.5345, allocations: 0.8032 MB / 0.6555 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.5347, allocations: 160.8 kB / 0.6556 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.92e-05/0.5348, allocations: 12 kB / 0.6556 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.5351, allocations: 19.98 kB / 0.6557 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.5352, allocations: 39.89 kB / 0.6557 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.5353, allocations: 15.98 kB / 0.6557 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003082/0.5356, allocations: 283.1 kB / 0.656 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5356, allocations: 0 / 0.656 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00139/0.537, allocations: 0.5839 MB / 0.6565 GB, free: 13.21 MB / 0.4981 GB 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.001931/0.5389, allocations: 0.899 MB / 0.6574 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001045/0.54, allocations: 466.3 kB / 0.6579 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.54, allocations: 0 / 0.6579 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005013/0.5405, allocations: 240.4 kB / 0.6581 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.5416, allocations: 229.8 kB / 0.6583 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/0.5439, allocations: 1.088 MB / 0.6594 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005574/0.5445, allocations: 0.847 MB / 0.6602 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003821/0.5449, allocations: 100.2 kB / 0.6603 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.5451, allocations: 59.41 kB / 0.6604 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.5451, allocations: 4 kB / 0.6604 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of Templates: time 0.02856/0.5736, allocations: 19.72 MB / 0.6796 GB, free: 5.59 MB / 0.5137 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)