Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",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.1323/0.1323, allocations: 15.29 MB / 30.41 MB, free: 4.391 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.001175/0.001176, allocations: 99.59 kB / 35.37 MB, free: 3.461 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.001323/0.001323, allocations: 197.1 kB / 40.46 MB, free: 7.547 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.634/1.634, allocations: 222.9 MB / 268.3 MB, free: 6.539 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.2051/0.2051, allocations: 23.35 MB / 346 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 107.8 kB / 417.6 MB, free: 30.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1549, allocations: 59.37 MB / 476.9 MB, free: 3.344 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_3element): time 0.4995/0.6544, allocations: 73.87 MB / 0.5379 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02731/0.6817, allocations: 18.93 MB / 0.5564 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001965/0.6837, allocations: 31.75 kB / 0.5564 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.6849, allocations: 191.8 kB / 0.5566 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01108/0.696, allocations: 2.128 MB / 0.5587 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007055/0.7032, allocations: 1.434 MB / 0.5601 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0028/0.706, allocations: 1.826 MB / 0.5619 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007599/0.7068, allocations: 319.3 kB / 0.5622 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003204/0.71, allocations: 0.9732 MB / 0.5631 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.7111, allocations: 469.6 kB / 0.5636 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-05/0.7112, allocations: 32 kB / 0.5636 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006654/0.7179, allocations: 1.705 MB / 0.5653 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000271/0.7182, allocations: 127.4 kB / 0.5654 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006661/0.7189, allocations: 277.6 kB / 0.5656 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00827/0.7272, allocations: 2.077 MB / 0.5677 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.7272, allocations: 0 / 0.5677 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.7272, allocations: 0 / 0.5677 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.321e-05/0.7273, allocations: 0 / 0.5677 GB, free: 0.5781 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.003225/0.7305, allocations: 1.022 MB / 0.5687 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.851e-05/0.7306, allocations: 8.594 kB / 0.5687 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000267/0.7309, allocations: 76.22 kB / 0.5687 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.7311, allocations: 63.22 kB / 0.5688 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.7322, allocations: 382.5 kB / 0.5692 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.212e-05/0.7323, allocations: 29 kB / 0.5692 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.7325, allocations: 38.86 kB / 0.5692 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.7336, allocations: 451.7 kB / 0.5697 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.7337, allocations: 0 / 0.5697 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.509e-05/0.7337, allocations: 23.92 kB / 0.5697 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.7338, allocations: 11.94 kB / 0.5697 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.7347, allocations: 375.7 kB / 0.5701 GB, free: 14.18 MB / 398.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.00451/0.7392, allocations: 2.198 MB / 0.5722 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008874/0.7401, allocations: 351 kB / 0.5725 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.7406, allocations: 181 kB / 0.5727 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001752/0.7423, allocations: 1.002 MB / 0.5737 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005164/0.7429, allocations: 210.9 kB / 0.5739 GB, free: 9.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 3.477e-06/0.7429, allocations: 4 kB / 0.5739 GB, free: 9.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002385/0.7453, allocations: 0.7126 MB / 0.5746 GB, free: 9.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/0.7454, allocations: 67.34 kB / 0.5747 GB, free: 9.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007034/0.7461, allocations: 389.6 kB / 0.575 GB, free: 8.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.7461, allocations: 33.7 kB / 0.5751 GB, free: 8.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.7464, allocations: 237.2 kB / 0.5753 GB, free: 8.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.7466, allocations: 109.9 kB / 0.5754 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.7468, allocations: 90.11 kB / 0.5755 GB, free: 8.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.747, allocations: 350.7 kB / 0.5758 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/0.7474, allocations: 148.8 kB / 0.576 GB, free: 7.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005094/0.7479, allocations: 233.7 kB / 0.5762 GB, free: 7.465 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.002707/0.7506, allocations: 0.9635 MB / 0.5771 GB, free: 6.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.7507, allocations: 0 / 0.5771 GB, free: 6.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001246/0.7519, allocations: 0.514 MB / 0.5776 GB, free: 5.922 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.752, allocations: 11.98 kB / 0.5776 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.752, allocations: 3.938 kB / 0.5776 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003434/0.7523, allocations: 73.98 kB / 0.5777 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003946/0.7528, allocations: 83.83 kB / 0.5778 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.7539, allocations: 1.12 MB / 0.5789 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007539/0.7546, allocations: 59.61 kB / 0.5789 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/0.7547, allocations: 27.98 kB / 0.579 GB, free: 4.488 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 (48): * 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: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004485/0.7552, allocations: 176.7 kB / 0.5791 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.7554, allocations: 39.53 kB / 0.5792 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/0.7571, allocations: 477 kB / 0.5796 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.7572, allocations: 8 kB / 0.5796 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.7572, allocations: 0 / 0.5796 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.7572, allocations: 3.984 kB / 0.5796 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003168/0.7604, allocations: 0.9651 MB / 0.5806 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/0.7604, allocations: 4.031 kB / 0.5806 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004503/0.7609, allocations: 47.84 kB / 0.5806 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000401/0.7613, allocations: 73.67 kB / 0.5807 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.7614, allocations: 11.98 kB / 0.5807 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.7627, allocations: 1.116 MB / 0.5818 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.7628, allocations: 4.031 kB / 0.5818 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.765, allocations: 0.6775 MB / 0.5825 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004583/0.7655, allocations: 160.5 kB / 0.5826 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.7657, allocations: 8 kB / 0.5826 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006588/0.7663, allocations: 31.97 kB / 0.5827 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.7665, allocations: 27.95 kB / 0.5827 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.874e-05/0.7666, allocations: 8 kB / 0.5827 GB, free: 496 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006694/0.7673, allocations: 287.1 kB / 0.583 GB, free: 212 kB / 398.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.7673, allocations: 0 / 0.583 GB, free: 212 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.002857/0.7701, allocations: 0.5111 MB / 0.5835 GB, free: 15.7 MB / 414.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 (29): * 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: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006172/0.7763, allocations: 1.967 MB / 0.5854 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.778, allocations: 389.3 kB / 0.5858 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.778, allocations: 0 / 0.5858 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000668/0.7787, allocations: 171.8 kB / 0.5859 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.781, allocations: 197.6 kB / 0.5861 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01195/0.7929, allocations: 4.463 MB / 0.5905 GB, free: 8.418 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007025/0.7937, allocations: 0.8273 MB / 0.5913 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000752/0.7945, allocations: 88.09 kB / 0.5914 GB, free: 7.473 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/0.7949, allocations: 147.4 kB / 0.5915 GB, free: 7.328 MB / 414.1 MB Notification: Performance of SimCode: time 1.372e-06/0.7949, allocations: 4 kB / 0.5915 GB, free: 7.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06162/0.8565, allocations: 22.15 MB / 0.6131 GB, free: 1.305 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.8568, allocations: 240.5 kB / 0.6134 GB, free: 1.039 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.905/3.762, allocations: 4 kB / 0.6134 GB, free: 1.035 MB / 430.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)