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.1829/0.1829, allocations: 15.29 MB / 30.41 MB, free: 4.371 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.001151/0.001151, allocations: 100.8 kB / 35.38 MB, free: 3.453 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.001301/0.001302, allocations: 193.1 kB / 40.46 MB, free: 7.543 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.629/1.629, allocations: 222.9 MB / 268.3 MB, free: 7.711 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1583/0.1583, allocations: 23.35 MB / 346 MB, free: 0.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 104.1 kB / 417.6 MB, free: 30.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1656, allocations: 59.37 MB / 476.9 MB, free: 3.41 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.5394/0.7051, allocations: 67.53 MB / 0.5317 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01789/0.723, allocations: 15.57 MB / 0.5469 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.7245, allocations: 29.56 kB / 0.5469 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008106/0.7253, allocations: 167 kB / 0.5471 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008133/0.7334, allocations: 2.03 MB / 0.5491 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004355/0.7379, allocations: 1.01 MB / 0.5501 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003013/0.7409, allocations: 1.653 MB / 0.5517 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007462/0.7417, allocations: 287.6 kB / 0.5519 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003293/0.745, allocations: 0.9465 MB / 0.5529 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001082/0.7461, allocations: 419.3 kB / 0.5533 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.243e-05/0.7462, allocations: 24 kB / 0.5533 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007441/0.7537, allocations: 1.576 MB / 0.5548 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003745/0.7541, allocations: 110.5 kB / 0.5549 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005802/0.7547, allocations: 248.7 kB / 0.5552 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008342/0.7631, allocations: 1.905 MB / 0.557 GB, free: 6.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.848e-06/0.7632, allocations: 3.094 kB / 0.557 GB, free: 6.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.7632, allocations: 0 / 0.557 GB, free: 6.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.7632, allocations: 0 / 0.557 GB, free: 6.711 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.002466/0.7657, allocations: 0.9756 MB / 0.558 GB, free: 5.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.853e-05/0.7657, allocations: 12.59 kB / 0.558 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.713e-05/0.7658, allocations: 66.31 kB / 0.5581 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.766, allocations: 50.91 kB / 0.5581 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005532/0.7665, allocations: 371.2 kB / 0.5585 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.066e-05/0.7666, allocations: 27.78 kB / 0.5585 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.622e-05/0.7667, allocations: 35.69 kB / 0.5585 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007448/0.7675, allocations: 401.9 kB / 0.5589 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.7675, allocations: 1.5 kB / 0.5589 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.31e-05/0.7675, allocations: 13.75 kB / 0.5589 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.7676, allocations: 8 kB / 0.5589 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006468/0.7682, allocations: 336.2 kB / 0.5593 GB, free: 4.941 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.002851/0.7711, allocations: 2.029 MB / 0.5612 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006498/0.7717, allocations: 320.6 kB / 0.5615 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002764/0.772, allocations: 156 kB / 0.5617 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/0.7732, allocations: 0.9651 MB / 0.5626 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003939/0.7736, allocations: 190.5 kB / 0.5628 GB, free: 1.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.925e-06/0.7737, allocations: 0 / 0.5628 GB, free: 1.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001194/0.7749, allocations: 0.5324 MB / 0.5633 GB, free: 1.508 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.7749, allocations: 55.41 kB / 0.5634 GB, free: 1.441 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.7754, allocations: 380.7 kB / 0.5638 GB, free: 1.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.7754, allocations: 32.75 kB / 0.5638 GB, free: 1.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.7755, allocations: 223.6 kB / 0.564 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.582e-05/0.7756, allocations: 100.7 kB / 0.5641 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.7757, allocations: 89.08 kB / 0.5642 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.7759, allocations: 350.5 kB / 0.5645 GB, free: 356 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.7761, allocations: 133 kB / 0.5646 GB, free: 244 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/0.7764, allocations: 236.7 kB / 0.5649 GB, free: 0 / 382.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.002364/0.7788, allocations: 0.8682 MB / 0.5657 GB, free: 15.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.7788, allocations: 4 kB / 0.5657 GB, free: 15.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001092/0.7799, allocations: 465.3 kB / 0.5662 GB, free: 14.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.78, allocations: 4 kB / 0.5662 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.78, allocations: 4 kB / 0.5662 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.7802, allocations: 41.14 kB / 0.5662 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.7806, allocations: 79.83 kB / 0.5663 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006069/0.7812, allocations: 0.5446 MB / 0.5668 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.7817, allocations: 63.59 kB / 0.5669 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/0.7817, allocations: 12 kB / 0.5669 GB, free: 13.84 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.0003436/0.7821, allocations: 166.7 kB / 0.567 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/0.7822, allocations: 43.47 kB / 0.5671 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009964/0.7832, allocations: 432.5 kB / 0.5675 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.7832, allocations: 4 kB / 0.5675 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.7832, allocations: 0 / 0.5675 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.7833, allocations: 3.984 kB / 0.5675 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.785, allocations: 0.8624 MB / 0.5683 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.82e-06/0.7851, allocations: 0 / 0.5683 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.7853, allocations: 47.91 kB / 0.5684 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001515/0.7855, allocations: 28.83 kB / 0.5684 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.7855, allocations: 8 kB / 0.5684 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005469/0.7861, allocations: 0.5524 MB / 0.569 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.7861, allocations: 0 / 0.569 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.7873, allocations: 0.5991 MB / 0.5696 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/0.7875, allocations: 136.7 kB / 0.5697 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.01e-05/0.7876, allocations: 11.91 kB / 0.5697 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.7879, allocations: 27.91 kB / 0.5697 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.788, allocations: 27.95 kB / 0.5697 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.7881, allocations: 20.05 kB / 0.5698 GB, free: 10.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003979/0.7885, allocations: 271.2 kB / 0.57 GB, free: 10.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.7885, allocations: 4 kB / 0.57 GB, free: 10.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002195/0.7907, allocations: 483.4 kB / 0.5705 GB, free: 9.992 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.004445/0.7952, allocations: 1.829 MB / 0.5723 GB, free: 8.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.7964, allocations: 327.9 kB / 0.5726 GB, free: 7.895 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/0.7965, allocations: 4 kB / 0.5726 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004647/0.7969, allocations: 151.8 kB / 0.5727 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.7986, allocations: 188.4 kB / 0.5729 GB, free: 7.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009233/0.8078, allocations: 4.142 MB / 0.577 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006884/0.8086, allocations: 0.8116 MB / 0.5778 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000618/0.8093, allocations: 95.16 kB / 0.5778 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.8096, allocations: 139.4 kB / 0.578 GB, free: 2.203 MB / 398.1 MB Notification: Performance of SimCode: time 1.793e-06/0.8096, allocations: 0 / 0.578 GB, free: 2.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1436/0.9532, allocations: 20.37 MB / 0.5979 GB, free: 13.94 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005725/0.9539, allocations: 223.5 kB / 0.5981 GB, free: 13.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.991/3.945, allocations: 7.938 kB / 0.5981 GB, free: 13.68 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)