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.121/0.121, 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.000819/0.0008189, allocations: 118.1 kB / 35.58 MB, free: 1.125 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.001029/0.001029, allocations: 180.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.477/1.477, allocations: 223.3 MB / 268.9 MB, free: 260 kB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.166/0.166, allocations: 23.39 MB / 347.6 MB, free: 6.508 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000482/0.0004821, allocations: 16 kB / 420.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3003, allocations: 60.46 MB / 480.8 MB, free: 36.24 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_2element): time 0.06075/0.3611, allocations: 66.75 MB / 0.5347 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01923/0.3803, allocations: 15.39 MB / 0.5497 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.3815, allocations: 23.81 kB / 0.5498 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006964/0.3822, allocations: 171 kB / 0.5499 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006739/0.389, allocations: 2.019 MB / 0.5519 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003386/0.3924, allocations: 1.015 MB / 0.5529 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002024/0.3945, allocations: 1.656 MB / 0.5545 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004751/0.3949, allocations: 286.1 kB / 0.5548 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00249/0.3974, allocations: 0.9332 MB / 0.5557 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007092/0.3982, allocations: 418.3 kB / 0.5561 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-05/0.3982, allocations: 20 kB / 0.5561 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004546/0.4028, allocations: 1.567 MB / 0.5576 GB, free: 9.883 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.403, allocations: 107.6 kB / 0.5577 GB, free: 9.777 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003403/0.4033, allocations: 272.4 kB / 0.558 GB, free: 9.504 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004331/0.4077, allocations: 1.896 MB / 0.5599 GB, free: 7.602 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4077, allocations: 0 / 0.5599 GB, free: 7.602 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4077, allocations: 0 / 0.5599 GB, free: 7.602 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.4077, allocations: 8 kB / 0.5599 GB, free: 7.594 MB / 414.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.001769/0.4095, allocations: 0.9009 MB / 0.5607 GB, free: 6.641 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.4095, allocations: 8.031 kB / 0.5608 GB, free: 6.633 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.925e-05/0.4096, allocations: 70.53 kB / 0.5608 GB, free: 6.555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.731e-05/0.4097, allocations: 51.38 kB / 0.5609 GB, free: 6.504 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.4103, allocations: 373.7 kB / 0.5612 GB, free: 6.094 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.4103, allocations: 24.66 kB / 0.5612 GB, free: 6.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.067e-05/0.4104, allocations: 36 kB / 0.5613 GB, free: 6.035 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007226/0.4111, allocations: 407.5 kB / 0.5617 GB, free: 5.613 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.4112, allocations: 0 / 0.5617 GB, free: 5.613 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.584e-05/0.4112, allocations: 12 kB / 0.5617 GB, free: 5.602 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.4112, allocations: 15.94 kB / 0.5617 GB, free: 5.586 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006706/0.4119, allocations: 346.4 kB / 0.562 GB, free: 5.25 MB / 414.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.002578/0.4145, allocations: 2.035 MB / 0.564 GB, free: 3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/0.4151, allocations: 339.4 kB / 0.5643 GB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.4154, allocations: 169 kB / 0.5645 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001233/0.4167, allocations: 0.9619 MB / 0.5654 GB, free: 1.434 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003695/0.4171, allocations: 196.3 kB / 0.5656 GB, free: 1.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.103e-06/0.4171, allocations: 0 / 0.5656 GB, free: 1.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001228/0.4183, allocations: 0.5535 MB / 0.5662 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.4184, allocations: 63.39 kB / 0.5662 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004128/0.4188, allocations: 373.6 kB / 0.5666 GB, free: 204 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.4188, allocations: 33.7 kB / 0.5666 GB, free: 164 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.419, allocations: 228 kB / 0.5668 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.151e-05/0.4191, allocations: 106.5 kB / 0.5669 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.095e-05/0.4192, allocations: 41.7 kB / 0.567 GB, free: 15.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4194, allocations: 350.8 kB / 0.5673 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/0.4197, allocations: 136.8 kB / 0.5674 GB, free: 15.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003546/0.42, allocations: 229.4 kB / 0.5677 GB, free: 15.04 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.002116/0.4221, allocations: 0.922 MB / 0.5686 GB, free: 14.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4222, allocations: 0 / 0.5686 GB, free: 14.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009349/0.4231, allocations: 486.3 kB / 0.569 GB, free: 13.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.4231, allocations: 8 kB / 0.569 GB, free: 13.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.4232, allocations: 4 kB / 0.569 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001398/0.4233, allocations: 32.84 kB / 0.5691 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003538/0.4237, allocations: 84.02 kB / 0.5691 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004295/0.4241, allocations: 0.5446 MB / 0.5697 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004102/0.4245, allocations: 59.64 kB / 0.5697 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.4246, allocations: 31.86 kB / 0.5698 GB, free: 12.8 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 (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.000241/0.4248, allocations: 165.6 kB / 0.5699 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.4249, allocations: 39.53 kB / 0.57 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009028/0.4258, allocations: 428.8 kB / 0.5704 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.4258, allocations: 11.94 kB / 0.5704 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4259, allocations: 0 / 0.5704 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4259, allocations: 0 / 0.5704 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.4273, allocations: 0.8744 MB / 0.5712 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4274, allocations: 8 kB / 0.5712 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.4276, allocations: 51.91 kB / 0.5713 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.38e-05/0.4277, allocations: 28.83 kB / 0.5713 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.4277, allocations: 8 kB / 0.5713 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003649/0.4281, allocations: 0.5485 MB / 0.5719 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.4281, allocations: 7.875 kB / 0.5719 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.4292, allocations: 0.5993 MB / 0.5725 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.4294, allocations: 152.5 kB / 0.5726 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.146e-05/0.4295, allocations: 7.938 kB / 0.5726 GB, free: 9.723 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/0.4298, allocations: 31.95 kB / 0.5726 GB, free: 9.691 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.382e-05/0.4299, allocations: 27.95 kB / 0.5727 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.4299, allocations: 8 kB / 0.5727 GB, free: 9.656 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003311/0.4303, allocations: 275.1 kB / 0.5729 GB, free: 9.387 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4303, allocations: 0 / 0.5729 GB, free: 9.387 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001489/0.4318, allocations: 487.4 kB / 0.5734 GB, free: 8.91 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 (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.002992/0.4348, allocations: 1.835 MB / 0.5752 GB, free: 7.043 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008795/0.4357, allocations: 352.1 kB / 0.5755 GB, free: 6.699 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.4357, allocations: 8.062 kB / 0.5755 GB, free: 6.691 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003392/0.436, allocations: 151.9 kB / 0.5757 GB, free: 6.543 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.4372, allocations: 173.4 kB / 0.5758 GB, free: 6.375 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/0.4436, allocations: 4.263 MB / 0.58 GB, free: 1.949 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.4441, allocations: 0.8116 MB / 0.5808 GB, free: 1.109 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003869/0.4444, allocations: 87.23 kB / 0.5809 GB, free: 1.023 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.4447, allocations: 139.4 kB / 0.581 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4447, allocations: 0 / 0.581 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.314/0.7587, allocations: 20.24 MB / 0.6008 GB, free: 94.14 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.7589, allocations: 229.7 kB / 0.601 GB, free: 93.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.478/3.237, allocations: 0 / 0.601 GB, free: 93.89 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)