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.1237/0.1237, allocations: 15.29 MB / 30.79 MB, free: 4.078 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.001148/0.001148, allocations: 107 kB / 35.77 MB, free: 3.281 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.001573/0.001573, allocations: 193.1 kB / 40.88 MB, free: 7.195 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.7 MB, free: 6.926 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1296/0.1296, allocations: 23.36 MB / 346.4 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002136/0.002136, allocations: 111.8 kB / 418.2 MB, free: 30.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1237, allocations: 59.36 MB / 477.6 MB, free: 2.973 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.4874/0.6112, allocations: 68.02 MB / 0.5328 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.6253, allocations: 15.48 MB / 0.5479 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008408/0.6262, allocations: 12.81 kB / 0.5479 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006586/0.6268, allocations: 206.7 kB / 0.5481 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006237/0.6331, allocations: 2.22 MB / 0.5503 GB, free: 8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003329/0.6364, allocations: 1.128 MB / 0.5514 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.6377, allocations: 1.109 MB / 0.5525 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.6381, allocations: 327.3 kB / 0.5528 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002129/0.6403, allocations: 1.031 MB / 0.5538 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005476/0.6408, allocations: 410 kB / 0.5542 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-05/0.6409, allocations: 43.94 kB / 0.5542 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004152/0.6451, allocations: 1.571 MB / 0.5558 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.6452, allocations: 126.8 kB / 0.5559 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.6454, allocations: 247.7 kB / 0.5561 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00363/0.6491, allocations: 2.001 MB / 0.5581 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.6491, allocations: 0 / 0.5581 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.6491, allocations: 0 / 0.5581 GB, free: 3.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.6491, allocations: 0 / 0.5581 GB, free: 3.867 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.001478/0.6506, allocations: 0.9809 MB / 0.559 GB, free: 2.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.6506, allocations: 12.03 kB / 0.559 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.482e-05/0.6507, allocations: 48.75 kB / 0.5591 GB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.6511, allocations: 370.7 kB / 0.5594 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.6512, allocations: 23.78 kB / 0.5595 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/0.6512, allocations: 32.61 kB / 0.5595 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006138/0.6518, allocations: 407.5 kB / 0.5599 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.6519, allocations: 0 / 0.5599 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.671e-05/0.6519, allocations: 13.06 kB / 0.5599 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.6519, allocations: 10.16 kB / 0.5599 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006007/0.6525, allocations: 339.6 kB / 0.5602 GB, free: 2.148 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.002122/0.6547, allocations: 2.035 MB / 0.5622 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.6552, allocations: 323.1 kB / 0.5625 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.6554, allocations: 161.1 kB / 0.5627 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001095/0.6565, allocations: 0.9586 MB / 0.5636 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003193/0.6569, allocations: 185.9 kB / 0.5638 GB, free: 15.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.623e-06/0.6569, allocations: 0 / 0.5638 GB, free: 15.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001126/0.658, allocations: 0.535 MB / 0.5643 GB, free: 14.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.6581, allocations: 55.41 kB / 0.5644 GB, free: 14.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003865/0.6585, allocations: 377.1 kB / 0.5647 GB, free: 14.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.6585, allocations: 37.7 kB / 0.5648 GB, free: 14.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.6587, allocations: 220.1 kB / 0.565 GB, free: 14.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.008e-05/0.6588, allocations: 113 kB / 0.5651 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.6589, allocations: 75.05 kB / 0.5652 GB, free: 13.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.659, allocations: 357.5 kB / 0.5655 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/0.6593, allocations: 132.4 kB / 0.5656 GB, free: 13.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.6597, allocations: 229.3 kB / 0.5658 GB, free: 13.16 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.001939/0.6616, allocations: 0.8753 MB / 0.5667 GB, free: 12.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6616, allocations: 0 / 0.5667 GB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00086/0.6625, allocations: 476 kB / 0.5671 GB, free: 11.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.6626, allocations: 4 kB / 0.5672 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.6626, allocations: 4 kB / 0.5672 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001314/0.6627, allocations: 28.84 kB / 0.5672 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.663, allocations: 84.2 kB / 0.5673 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003619/0.6634, allocations: 0.5561 MB / 0.5678 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.6637, allocations: 35.59 kB / 0.5678 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.6638, allocations: 23.98 kB / 0.5679 GB, free: 11.11 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.0001914/0.664, allocations: 178.7 kB / 0.568 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.687e-05/0.6641, allocations: 43.47 kB / 0.5681 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008199/0.6649, allocations: 420.8 kB / 0.5685 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.6649, allocations: 8 kB / 0.5685 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.6649, allocations: 3.984 kB / 0.5685 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.6649, allocations: 0 / 0.5685 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.6662, allocations: 0.8624 MB / 0.5693 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.6662, allocations: 0 / 0.5693 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.6665, allocations: 55.94 kB / 0.5694 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.533e-05/0.6666, allocations: 28.83 kB / 0.5694 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.6666, allocations: 8 kB / 0.5694 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003202/0.6669, allocations: 0.5484 MB / 0.57 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.6669, allocations: 0 / 0.57 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009838/0.6679, allocations: 0.5981 MB / 0.5705 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.6681, allocations: 140.6 kB / 0.5707 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.729e-05/0.6682, allocations: 8 kB / 0.5707 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.6684, allocations: 20.05 kB / 0.5707 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.587e-05/0.6685, allocations: 23.95 kB / 0.5707 GB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.6685, allocations: 15.98 kB / 0.5707 GB, free: 8.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002763/0.6688, allocations: 267.2 kB / 0.571 GB, free: 7.754 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6688, allocations: 0 / 0.571 GB, free: 7.754 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001258/0.6701, allocations: 491.4 kB / 0.5715 GB, free: 7.273 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.00161/0.6717, allocations: 0.7893 MB / 0.5722 GB, free: 6.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008353/0.6726, allocations: 344.1 kB / 0.5726 GB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6726, allocations: 0.625 kB / 0.5726 GB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003246/0.6729, allocations: 160 kB / 0.5727 GB, free: 6.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009565/0.6739, allocations: 201.1 kB / 0.5729 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.6753, allocations: 0.8381 MB / 0.5737 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.6757, allocations: 0.8158 MB / 0.5745 GB, free: 4.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002966/0.676, allocations: 75.36 kB / 0.5746 GB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.705e-05/0.6761, allocations: 43.42 kB / 0.5746 GB, free: 4.043 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.6761, allocations: 0 / 0.5746 GB, free: 4.043 MB / 398.1 MB Notification: Performance of Templates: time 0.0241/0.7002, allocations: 16.57 MB / 0.5908 GB, free: 3.547 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 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)