Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09534/0.09534, allocations: 15.28 MB / 31.53 MB, free: 3.988 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.001057/0.001057, allocations: 111.4 kB / 36.54 MB, free: 3.262 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.00119/0.00119, allocations: 193.1 kB / 41.64 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.386/1.386, allocations: 222.9 MB / 269.5 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.1441/0.1441, allocations: 23.36 MB / 347.2 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.001971, allocations: 115.8 kB / 419.7 MB, free: 29.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1148, allocations: 59.36 MB / 479 MB, free: 2.266 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_2element): time 0.2798/0.3946, allocations: 67.81 MB / 0.534 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01536/0.41, allocations: 15.49 MB / 0.5491 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006721/0.4107, allocations: 15.72 kB / 0.5492 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006072/0.4113, allocations: 206.3 kB / 0.5494 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005337/0.4167, allocations: 2.22 MB / 0.5515 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.4194, allocations: 1.123 MB / 0.5526 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.4205, allocations: 1.108 MB / 0.5537 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003579/0.4208, allocations: 320.8 kB / 0.554 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.4227, allocations: 1.039 MB / 0.555 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004366/0.4231, allocations: 410 kB / 0.5554 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.875e-05/0.4232, allocations: 36 kB / 0.5554 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003617/0.4268, allocations: 1.572 MB / 0.557 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.4269, allocations: 120.7 kB / 0.5571 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.4271, allocations: 255.2 kB / 0.5573 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002936/0.4301, allocations: 2.012 MB / 0.5593 GB, free: 3.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.4301, allocations: 0 / 0.5593 GB, free: 3.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4301, allocations: 0 / 0.5593 GB, free: 3.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.4301, allocations: 0 / 0.5593 GB, free: 3.484 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001361/0.4315, allocations: 0.9816 MB / 0.5603 GB, free: 2.605 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.4315, allocations: 8.031 kB / 0.5603 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.433e-05/0.4316, allocations: 48.75 kB / 0.5603 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004531/0.4321, allocations: 384.6 kB / 0.5607 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.4321, allocations: 25.97 kB / 0.5607 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.279e-05/0.4322, allocations: 32 kB / 0.5607 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.4328, allocations: 407.9 kB / 0.5611 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.4328, allocations: 0 / 0.5611 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.4328, allocations: 14.56 kB / 0.5611 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.4328, allocations: 10.06 kB / 0.5612 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005695/0.4334, allocations: 332.2 kB / 0.5615 GB, free: 1.762 MB / 382.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.002007/0.4354, allocations: 2.032 MB / 0.5635 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008726/0.4363, allocations: 356.6 kB / 0.5638 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002721/0.4366, allocations: 158.5 kB / 0.5639 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001093/0.4377, allocations: 0.9666 MB / 0.5649 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003257/0.438, allocations: 186.1 kB / 0.5651 GB, free: 14.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 3.126e-06/0.4381, allocations: 3.984 kB / 0.5651 GB, free: 14.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001101/0.4392, allocations: 0.5259 MB / 0.5656 GB, free: 14.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.4392, allocations: 55.41 kB / 0.5656 GB, free: 14.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003794/0.4396, allocations: 389.6 kB / 0.566 GB, free: 13.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.4397, allocations: 33.7 kB / 0.566 GB, free: 13.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.4398, allocations: 220.3 kB / 0.5662 GB, free: 13.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.759e-05/0.4399, allocations: 102.8 kB / 0.5663 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.44, allocations: 81.03 kB / 0.5664 GB, free: 13.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4401, allocations: 351.4 kB / 0.5668 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.4404, allocations: 133 kB / 0.5669 GB, free: 13.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.4407, allocations: 231.7 kB / 0.5671 GB, free: 12.84 MB / 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.001966/0.4427, allocations: 0.876 MB / 0.568 GB, free: 11.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4427, allocations: 3.938 kB / 0.568 GB, free: 11.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008587/0.4436, allocations: 465.9 kB / 0.5684 GB, free: 11.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.4436, allocations: 8 kB / 0.5684 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.4436, allocations: 0 / 0.5684 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000126/0.4438, allocations: 36.84 kB / 0.5685 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.4441, allocations: 75.83 kB / 0.5685 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003774/0.4445, allocations: 0.5601 MB / 0.5691 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.4448, allocations: 43.53 kB / 0.5691 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.4449, allocations: 15.98 kB / 0.5691 GB, free: 10.69 MB / 398.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 (47): * 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: 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.0001817/0.4451, allocations: 166.7 kB / 0.5693 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.235e-05/0.4451, allocations: 43.47 kB / 0.5693 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008333/0.446, allocations: 428.8 kB / 0.5697 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.446, allocations: 4 kB / 0.5697 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.446, allocations: 3.938 kB / 0.5697 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.446, allocations: 0 / 0.5697 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.4473, allocations: 0.8691 MB / 0.5706 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.4473, allocations: 0 / 0.5706 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.4475, allocations: 47.91 kB / 0.5706 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.838e-05/0.4476, allocations: 28.83 kB / 0.5707 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.4477, allocations: 8 kB / 0.5707 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003257/0.448, allocations: 0.5484 MB / 0.5712 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.448, allocations: 4.031 kB / 0.5712 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009694/0.449, allocations: 0.596 MB / 0.5718 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.4492, allocations: 140.6 kB / 0.5719 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.4492, allocations: 8 kB / 0.5719 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.4495, allocations: 15.98 kB / 0.572 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.222e-05/0.4496, allocations: 19.97 kB / 0.572 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.4496, allocations: 15.98 kB / 0.572 GB, free: 7.605 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002768/0.4499, allocations: 271.2 kB / 0.5722 GB, free: 7.344 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4499, allocations: 4.062 kB / 0.5723 GB, free: 7.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00117/0.4511, allocations: 487.4 kB / 0.5727 GB, free: 6.863 MB / 398.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 (28): * 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: 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.001279/0.4524, allocations: 0.7897 MB / 0.5735 GB, free: 6.145 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007417/0.4531, allocations: 344.2 kB / 0.5738 GB, free: 5.809 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4531, allocations: 0 / 0.5738 GB, free: 5.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.4535, allocations: 152.1 kB / 0.574 GB, free: 5.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008761/0.4543, allocations: 207.9 kB / 0.5742 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.4557, allocations: 0.8225 MB / 0.575 GB, free: 4.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.4561, allocations: 0.808 MB / 0.5758 GB, free: 3.781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002517/0.4563, allocations: 83.3 kB / 0.5758 GB, free: 3.699 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.4564, allocations: 43.36 kB / 0.5759 GB, free: 3.656 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4564, allocations: 0 / 0.5759 GB, free: 3.656 MB / 398.1 MB Notification: Performance of Templates: time 0.02287/0.4793, allocations: 16.57 MB / 0.5921 GB, free: 3.168 MB / 414.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)