Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09073/0.09073, allocations: 15.27 MB / 30.54 MB, free: 5.707 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.0007892/0.0007891, allocations: 105.3 kB / 35.57 MB, free: 1.133 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.0009581/0.0009582, allocations: 188.5 kB / 40.69 MB, free: 4.738 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.289/1.289, allocations: 223.3 MB / 268.9 MB, free: 2.008 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1449/0.1449, allocations: 23.4 MB / 347.7 MB, free: 6.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0007664/0.0007665, allocations: 19.98 kB / 420.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.262, allocations: 60.47 MB / 480.7 MB, free: 36.41 MB / 350.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.Windkessel_3element): time 0.06543/0.3274, allocations: 72.97 MB / 0.5407 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02178/0.3492, allocations: 18.71 MB / 0.559 GB, free: 8.613 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.3504, allocations: 31.75 kB / 0.559 GB, free: 8.582 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008427/0.3512, allocations: 194.8 kB / 0.5592 GB, free: 8.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007225/0.3585, allocations: 2.136 MB / 0.5613 GB, free: 6.242 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004702/0.3632, allocations: 1.426 MB / 0.5627 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002249/0.3655, allocations: 1.82 MB / 0.5644 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005882/0.3661, allocations: 311.4 kB / 0.5647 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002443/0.3686, allocations: 0.9721 MB / 0.5657 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007694/0.3694, allocations: 458.2 kB / 0.5661 GB, free: 1.246 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.092e-05/0.3695, allocations: 28 kB / 0.5661 GB, free: 1.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005215/0.3747, allocations: 1.711 MB / 0.5678 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.3749, allocations: 119.4 kB / 0.5679 GB, free: 15.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003492/0.3753, allocations: 288.5 kB / 0.5682 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00441/0.3797, allocations: 2.067 MB / 0.5702 GB, free: 13.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3798, allocations: 3.938 kB / 0.5702 GB, free: 13.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3798, allocations: 0 / 0.5702 GB, free: 13.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3798, allocations: 0 / 0.5702 GB, free: 13.02 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001807/0.3816, allocations: 0.952 MB / 0.5712 GB, free: 12.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3816, allocations: 11.97 kB / 0.5712 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.3817, allocations: 55.34 kB / 0.5712 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005068/0.3823, allocations: 390.3 kB / 0.5716 GB, free: 11.53 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.3823, allocations: 32.94 kB / 0.5716 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.848e-05/0.3824, allocations: 36 kB / 0.5717 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007699/0.3832, allocations: 452.7 kB / 0.5721 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.3832, allocations: 3.938 kB / 0.5721 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.251e-05/0.3832, allocations: 16 kB / 0.5721 GB, free: 10.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.3833, allocations: 8 kB / 0.5721 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007615/0.384, allocations: 391.7 kB / 0.5725 GB, free: 10.59 MB / 430.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.002674/0.3867, allocations: 2.204 MB / 0.5746 GB, free: 8.152 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00064/0.3874, allocations: 367 kB / 0.575 GB, free: 7.785 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.3877, allocations: 197 kB / 0.5752 GB, free: 7.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001287/0.389, allocations: 1.002 MB / 0.5762 GB, free: 6.488 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003957/0.3894, allocations: 212.6 kB / 0.5764 GB, free: 6.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 2.114e-06/0.3894, allocations: 0 / 0.5764 GB, free: 6.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.001531/0.391, allocations: 0.7362 MB / 0.5771 GB, free: 5.484 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.391, allocations: 55.41 kB / 0.5771 GB, free: 5.418 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/0.3915, allocations: 397.6 kB / 0.5775 GB, free: 5.023 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.3915, allocations: 37.64 kB / 0.5776 GB, free: 4.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.3917, allocations: 236 kB / 0.5778 GB, free: 4.742 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.64e-05/0.3918, allocations: 114.3 kB / 0.5779 GB, free: 4.629 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.525e-05/0.3919, allocations: 45.7 kB / 0.5779 GB, free: 4.578 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.392, allocations: 354.7 kB / 0.5783 GB, free: 4.223 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/0.3923, allocations: 156.8 kB / 0.5784 GB, free: 4.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003636/0.3927, allocations: 241.7 kB / 0.5786 GB, free: 3.801 MB / 430.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.002281/0.395, allocations: 0.9907 MB / 0.5796 GB, free: 2.758 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.395, allocations: 4 kB / 0.5796 GB, free: 2.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001083/0.3961, allocations: 0.5259 MB / 0.5801 GB, free: 2.215 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.3961, allocations: 8 kB / 0.5801 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3962, allocations: 4 kB / 0.5801 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.3964, allocations: 77.66 kB / 0.5802 GB, free: 2.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.3968, allocations: 79.95 kB / 0.5803 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007245/0.3975, allocations: 1.12 MB / 0.5814 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004375/0.398, allocations: 59.73 kB / 0.5814 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.398, allocations: 24.03 kB / 0.5815 GB, free: 0.7891 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (48): * 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: 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.000227/0.3983, allocations: 181.5 kB / 0.5816 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.739e-05/0.3983, allocations: 47.44 kB / 0.5817 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.3994, allocations: 485.1 kB / 0.5821 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.3994, allocations: 7.938 kB / 0.5822 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3994, allocations: 0 / 0.5822 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.3994, allocations: 3.984 kB / 0.5822 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2103/0.6097, allocations: 0.9794 MB / 0.5831 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.6098, allocations: 0.875 kB / 0.5831 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.6101, allocations: 55.45 kB / 0.5832 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002441/0.6103, allocations: 72.05 kB / 0.5832 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.6104, allocations: 8.172 kB / 0.5832 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005448/0.6109, allocations: 1.12 MB / 0.5843 GB, free: 104.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.611, allocations: 0 / 0.5843 GB, free: 104.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.6123, allocations: 0.6902 MB / 0.585 GB, free: 104.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.6125, allocations: 158.8 kB / 0.5852 GB, free: 104.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.234e-05/0.6126, allocations: 11.81 kB / 0.5852 GB, free: 104.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.6129, allocations: 33.8 kB / 0.5852 GB, free: 104.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.613, allocations: 25.58 kB / 0.5852 GB, free: 104.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.6131, allocations: 14.84 kB / 0.5852 GB, free: 104.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.6134, allocations: 284.6 kB / 0.5855 GB, free: 104.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6134, allocations: 3.906 kB / 0.5855 GB, free: 104.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001305/0.6148, allocations: 0.5164 MB / 0.586 GB, free: 104.2 MB / 430.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 (29): * 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: 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.001531/0.6163, allocations: 0.8284 MB / 0.5868 GB, free: 104 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009393/0.6173, allocations: 399.4 kB / 0.5872 GB, free: 103.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.6173, allocations: 0 / 0.5872 GB, free: 103.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004027/0.6177, allocations: 183.7 kB / 0.5874 GB, free: 103.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.619, allocations: 204.2 kB / 0.5876 GB, free: 103.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.6208, allocations: 1.144 MB / 0.5887 GB, free: 103.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.6212, allocations: 0.824 MB / 0.5895 GB, free: 102.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004289/0.6216, allocations: 85.44 kB / 0.5896 GB, free: 102.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.6218, allocations: 50.03 kB / 0.5896 GB, free: 102.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.313e-06/0.6218, allocations: 0 / 0.5896 GB, free: 102.5 MB / 430.1 MB Notification: Performance of Templates: time 0.02207/0.6439, allocations: 17.51 MB / 0.6067 GB, free: 90.1 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)