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-master/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-master/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-master/package.mo): time 0.1246/0.1246, allocations: 15.27 MB / 30.51 MB, free: 4.344 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.0009651/0.0009652, allocations: 109.4 kB / 35.48 MB, free: 3.395 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.001347/0.001347, allocations: 200.5 kB / 40.58 MB, free: 7.453 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.39/1.39, allocations: 222.9 MB / 268.4 MB, free: 7.637 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1522/0.1522, allocations: 23.35 MB / 346.1 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 111.8 kB / 417.7 MB, free: 30.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.133, allocations: 59.37 MB / 477 MB, free: 3.359 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.3179/0.451, allocations: 79.74 MB / 0.5437 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01986/0.4709, allocations: 22.09 MB / 0.5653 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.4726, allocations: 35.75 kB / 0.5653 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009205/0.4735, allocations: 224.9 kB / 0.5655 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007242/0.4808, allocations: 2.272 MB / 0.5678 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006014/0.4868, allocations: 1.876 MB / 0.5696 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001601/0.4885, allocations: 1.368 MB / 0.5709 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005657/0.489, allocations: 467.3 kB / 0.5714 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002407/0.4915, allocations: 1.106 MB / 0.5724 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007834/0.4922, allocations: 0.5527 MB / 0.573 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.491e-05/0.4923, allocations: 59.94 kB / 0.573 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005726/0.4981, allocations: 1.892 MB / 0.5749 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000244/0.4983, allocations: 167.5 kB / 0.5751 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004615/0.4988, allocations: 322.6 kB / 0.5754 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00631/0.5051, allocations: 2.325 MB / 0.5776 GB, free: 10.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.5052, allocations: 0 / 0.5776 GB, free: 10.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5052, allocations: 0 / 0.5776 GB, free: 10.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.5052, allocations: 0 / 0.5776 GB, free: 10.63 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.002082/0.5073, allocations: 1.104 MB / 0.5787 GB, free: 9.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.5073, allocations: 8.031 kB / 0.5787 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.5075, allocations: 63.19 kB / 0.5788 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/0.508, allocations: 418.2 kB / 0.5792 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.5081, allocations: 33 kB / 0.5792 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.294e-05/0.5082, allocations: 47.98 kB / 0.5793 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009432/0.5091, allocations: 0.5279 MB / 0.5798 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.5092, allocations: 0 / 0.5798 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.789e-05/0.5092, allocations: 16 kB / 0.5798 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.5092, allocations: 12 kB / 0.5798 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009141/0.5102, allocations: 0.4919 MB / 0.5803 GB, free: 7.805 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.003056/0.5132, allocations: 2.454 MB / 0.5827 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007055/0.5139, allocations: 423.2 kB / 0.5831 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000447/0.5144, allocations: 249.1 kB / 0.5833 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001433/0.5158, allocations: 1.126 MB / 0.5844 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004612/0.5163, allocations: 256.6 kB / 0.5847 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002028/0.5165, allocations: 47.53 kB / 0.5847 GB, free: 2.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 1.874e-06/0.5166, allocations: 4 kB / 0.5847 GB, free: 2.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001833/0.5184, allocations: 0.811 MB / 0.5855 GB, free: 2.031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.5184, allocations: 59.34 kB / 0.5856 GB, free: 1.961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.5189, allocations: 397.5 kB / 0.5859 GB, free: 1.566 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.5189, allocations: 37.7 kB / 0.586 GB, free: 1.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.5191, allocations: 244.2 kB / 0.5862 GB, free: 1.281 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.5192, allocations: 137.9 kB / 0.5863 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.5193, allocations: 98.23 kB / 0.5864 GB, free: 1.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5195, allocations: 354.7 kB / 0.5868 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/0.5198, allocations: 181 kB / 0.5869 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000385/0.5202, allocations: 275.3 kB / 0.5872 GB, free: 212 kB / 398.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.003982/0.5242, allocations: 1.323 MB / 0.5885 GB, free: 14.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.5242, allocations: 0 / 0.5885 GB, free: 14.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001123/0.5253, allocations: 0.5907 MB / 0.5891 GB, free: 14.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.5254, allocations: 12.23 kB / 0.5891 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.5254, allocations: 8 kB / 0.5891 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.5256, allocations: 77.61 kB / 0.5892 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/0.5261, allocations: 95.88 kB / 0.5893 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007475/0.5268, allocations: 1.124 MB / 0.5904 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/0.5273, allocations: 40.12 kB / 0.5904 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.108e-05/0.5273, allocations: 20 kB / 0.5904 GB, free: 12.8 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.0002574/0.5276, allocations: 181.6 kB / 0.5906 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.879e-05/0.5277, allocations: 47.44 kB / 0.5906 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/0.5289, allocations: 0.5877 MB / 0.5912 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.5289, allocations: 4 kB / 0.5912 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.5289, allocations: 8 kB / 0.5912 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.5289, allocations: 11.86 kB / 0.5912 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.5307, allocations: 1.119 MB / 0.5923 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.5307, allocations: 0 / 0.5923 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.5311, allocations: 67.92 kB / 0.5924 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001934/0.5313, allocations: 77.61 kB / 0.5925 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.5313, allocations: 11.98 kB / 0.5925 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007171/0.532, allocations: 1.116 MB / 0.5936 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.5321, allocations: 0 / 0.5936 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.5334, allocations: 0.8018 MB / 0.5943 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.5336, allocations: 160.5 kB / 0.5945 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.436e-05/0.5337, allocations: 8 kB / 0.5945 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.5341, allocations: 31.97 kB / 0.5945 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.96e-05/0.5342, allocations: 39.73 kB / 0.5946 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.436e-05/0.5342, allocations: 19.92 kB / 0.5946 GB, free: 8.316 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000279/0.5345, allocations: 283.2 kB / 0.5949 GB, free: 8.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.5345, allocations: 0 / 0.5949 GB, free: 8.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001293/0.5358, allocations: 0.5773 MB / 0.5954 GB, free: 7.465 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.001476/0.5373, allocations: 0.8848 MB / 0.5963 GB, free: 6.566 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.5384, allocations: 482.8 kB / 0.5967 GB, free: 6.094 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5384, allocations: 0 / 0.5967 GB, free: 6.094 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004446/0.5388, allocations: 243.5 kB / 0.597 GB, free: 5.855 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.5399, allocations: 232.7 kB / 0.5972 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.5418, allocations: 1.247 MB / 0.5984 GB, free: 4.359 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.5422, allocations: 0.8469 MB / 0.5992 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003602/0.5426, allocations: 112.2 kB / 0.5994 GB, free: 3.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.5427, allocations: 59.41 kB / 0.5994 GB, free: 3.312 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.5427, allocations: 0 / 0.5994 GB, free: 3.312 MB / 414.1 MB Notification: Performance of Templates: time 0.02616/0.5689, allocations: 19.46 MB / 0.6184 GB, free: 15.93 MB / 446.1 MB 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)