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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08615/0.08615, 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.0008883/0.0008884, allocations: 110 kB / 35.78 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.001066/0.001066, 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.265/1.265, allocations: 222.9 MB / 268.7 MB, free: 6.914 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1236/0.1236, allocations: 23.36 MB / 346.4 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 107.8 kB / 418.3 MB, free: 30.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08841/0.09026, allocations: 59.37 MB / 477.7 MB, free: 2.918 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.2338/0.3241, allocations: 68.06 MB / 0.5329 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.3361, allocations: 15.48 MB / 0.5481 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005381/0.3366, allocations: 13.19 kB / 0.5481 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005293/0.3372, allocations: 203.5 kB / 0.5483 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004607/0.3418, allocations: 2.217 MB / 0.5504 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002548/0.3443, allocations: 1.133 MB / 0.5515 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008393/0.3452, allocations: 1.1 MB / 0.5526 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.3455, allocations: 332.9 kB / 0.5529 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.3472, allocations: 1.032 MB / 0.5539 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003913/0.3476, allocations: 406.9 kB / 0.5543 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.3476, allocations: 39.94 kB / 0.5544 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003119/0.3507, allocations: 1.572 MB / 0.5559 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.3509, allocations: 121.8 kB / 0.556 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.351, allocations: 250.6 kB / 0.5563 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00239/0.3534, allocations: 2.014 MB / 0.5582 GB, free: 3.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.3535, allocations: 4 kB / 0.5582 GB, free: 3.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.3535, allocations: 0 / 0.5582 GB, free: 3.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3535, allocations: 0 / 0.5582 GB, free: 3.738 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.001186/0.3547, allocations: 0.9721 MB / 0.5592 GB, free: 2.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.3547, allocations: 8.031 kB / 0.5592 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.433e-05/0.3548, allocations: 69.5 kB / 0.5593 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.887e-05/0.3549, allocations: 48.75 kB / 0.5593 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.3552, allocations: 373.5 kB / 0.5597 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.3552, allocations: 23.47 kB / 0.5597 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.776e-05/0.3553, allocations: 38.44 kB / 0.5597 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.3558, allocations: 396.9 kB / 0.5601 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.3558, allocations: 0 / 0.5601 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.3559, allocations: 13.38 kB / 0.5601 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.3559, allocations: 15.44 kB / 0.5601 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005172/0.3564, allocations: 331.7 kB / 0.5604 GB, free: 1.984 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.001714/0.3581, allocations: 2.038 MB / 0.5624 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.3586, allocations: 321.7 kB / 0.5627 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003738/0.359, allocations: 173.4 kB / 0.5629 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009878/0.36, allocations: 0.9694 MB / 0.5638 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.3603, allocations: 183.9 kB / 0.564 GB, free: 15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.764e-06/0.3603, allocations: 0 / 0.564 GB, free: 15 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001013/0.3613, allocations: 0.5359 MB / 0.5645 GB, free: 14.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.3614, allocations: 55.41 kB / 0.5646 GB, free: 14.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003475/0.3617, allocations: 375.6 kB / 0.565 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.3618, allocations: 32.28 kB / 0.565 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.3619, allocations: 226.3 kB / 0.5652 GB, free: 13.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.92e-05/0.362, allocations: 104.1 kB / 0.5653 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3621, allocations: 83.3 kB / 0.5654 GB, free: 13.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3622, allocations: 351 kB / 0.5657 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002664/0.3625, allocations: 137.4 kB / 0.5658 GB, free: 13.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003083/0.3628, allocations: 223.8 kB / 0.5661 GB, free: 13 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.001826/0.3646, allocations: 0.8816 MB / 0.5669 GB, free: 12.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3646, allocations: 4 kB / 0.5669 GB, free: 12.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008021/0.3655, allocations: 469.5 kB / 0.5674 GB, free: 11.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.3655, allocations: 7.938 kB / 0.5674 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3655, allocations: 4 kB / 0.5674 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.076e-05/0.3656, allocations: 36.83 kB / 0.5674 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.3659, allocations: 75.89 kB / 0.5675 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003255/0.3662, allocations: 0.5523 MB / 0.568 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.3665, allocations: 47.58 kB / 0.5681 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.3666, allocations: 23.92 kB / 0.5681 GB, free: 10.91 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.0001646/0.3667, allocations: 166.7 kB / 0.5683 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.3668, allocations: 39.47 kB / 0.5683 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007643/0.3676, allocations: 420.8 kB / 0.5687 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.3676, allocations: 4 kB / 0.5687 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3676, allocations: 0 / 0.5687 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3676, allocations: 0 / 0.5687 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.3688, allocations: 0.8718 MB / 0.5696 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3688, allocations: 0 / 0.5696 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002054/0.369, allocations: 39.97 kB / 0.5696 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-05/0.3691, allocations: 32.84 kB / 0.5696 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.3691, allocations: 16.02 kB / 0.5696 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002967/0.3694, allocations: 0.5406 MB / 0.5702 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3694, allocations: 0 / 0.5702 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008987/0.3703, allocations: 0.5982 MB / 0.5707 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.3705, allocations: 148.5 kB / 0.5709 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.402e-05/0.3705, allocations: 4 kB / 0.5709 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.3708, allocations: 15.98 kB / 0.5709 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.941e-05/0.3709, allocations: 27.95 kB / 0.5709 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.3709, allocations: 15.98 kB / 0.571 GB, free: 7.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.3712, allocations: 275.2 kB / 0.5712 GB, free: 7.566 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3712, allocations: 3.938 kB / 0.5712 GB, free: 7.562 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00107/0.3722, allocations: 487.4 kB / 0.5717 GB, free: 7.086 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.002205/0.3744, allocations: 1.823 MB / 0.5735 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007181/0.3752, allocations: 351.7 kB / 0.5738 GB, free: 4.965 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.3752, allocations: 4 kB / 0.5738 GB, free: 4.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002976/0.3755, allocations: 148.1 kB / 0.5739 GB, free: 4.816 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000914/0.3764, allocations: 197.7 kB / 0.5741 GB, free: 4.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004787/0.3812, allocations: 4.036 MB / 0.5781 GB, free: 452 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.3816, allocations: 0.8152 MB / 0.5789 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002673/0.3819, allocations: 79.36 kB / 0.5789 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.3821, allocations: 139.4 kB / 0.5791 GB, free: 15.38 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3821, allocations: 0 / 0.5791 GB, free: 15.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04038/0.4224, allocations: 20.97 MB / 0.5996 GB, free: 10.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.8, allocations: 8.062 kB / 0.5996 GB, free: 10.49 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)