Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",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.1418/0.1418, 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.001323/0.001323, allocations: 99.05 kB / 35.37 MB, free: 3.449 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.001636/0.001636, allocations: 197.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.807/1.807, allocations: 222.9 MB / 268.3 MB, free: 7.262 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.2445/0.2445, allocations: 23.34 MB / 346 MB, free: 0.5 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 95.84 kB / 417.6 MB, free: 30.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1557, allocations: 59.37 MB / 476.9 MB, free: 3.379 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_4element): time 0.6076/0.7634, allocations: 80.19 MB / 0.5441 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03038/0.7938, allocations: 22.3 MB / 0.5658 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002166/0.796, allocations: 31.75 kB / 0.5659 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.7972, allocations: 212.1 kB / 0.5661 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.8072, allocations: 2.25 MB / 0.5683 GB, free: 3.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009806/0.817, allocations: 1.842 MB / 0.5701 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004254/0.8214, allocations: 2.073 MB / 0.5721 GB, free: 180 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.8228, allocations: 396.1 kB / 0.5725 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004527/0.8273, allocations: 1.046 MB / 0.5735 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.8289, allocations: 0.5565 MB / 0.574 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.8291, allocations: 40 kB / 0.5741 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008533/0.8376, allocations: 1.852 MB / 0.5759 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004056/0.8381, allocations: 151.5 kB / 0.576 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000836/0.839, allocations: 310.6 kB / 0.5763 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01189/0.8509, allocations: 2.29 MB / 0.5786 GB, free: 9.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.8509, allocations: 0 / 0.5786 GB, free: 9.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.851, allocations: 0 / 0.5786 GB, free: 9.688 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.851, allocations: 4 kB / 0.5786 GB, free: 9.684 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.003339/0.8543, allocations: 1.108 MB / 0.5796 GB, free: 8.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.184e-05/0.8544, allocations: 16.53 kB / 0.5797 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001519/0.8546, allocations: 82.52 kB / 0.5797 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001982/0.8548, allocations: 59.25 kB / 0.5798 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008401/0.8556, allocations: 410.3 kB / 0.5802 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.402e-05/0.8557, allocations: 33 kB / 0.5802 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.914e-05/0.8558, allocations: 47.98 kB / 0.5803 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.8569, allocations: 0.524 MB / 0.5808 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.857, allocations: 0 / 0.5808 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.857, allocations: 19.98 kB / 0.5808 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.857, allocations: 12 kB / 0.5808 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.8581, allocations: 499.7 kB / 0.5813 GB, free: 6.77 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.004287/0.8624, allocations: 2.454 MB / 0.5837 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009114/0.8633, allocations: 425 kB / 0.5841 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005791/0.8639, allocations: 257.1 kB / 0.5843 GB, free: 3.391 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002135/0.8661, allocations: 1.122 MB / 0.5854 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005884/0.8667, allocations: 260.6 kB / 0.5857 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003198/0.867, allocations: 47.52 kB / 0.5857 GB, free: 1.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 3.427e-06/0.867, allocations: 3.938 kB / 0.5857 GB, free: 1.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.002004/0.869, allocations: 0.8071 MB / 0.5865 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.8691, allocations: 71.31 kB / 0.5866 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.8698, allocations: 393.6 kB / 0.5869 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.8698, allocations: 33.7 kB / 0.587 GB, free: 492 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002367/0.8701, allocations: 244.2 kB / 0.5872 GB, free: 244 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.8702, allocations: 141.9 kB / 0.5873 GB, free: 100 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.8704, allocations: 98.3 kB / 0.5874 GB, free: 15.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002213/0.8707, allocations: 358.7 kB / 0.5878 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003979/0.8711, allocations: 173 kB / 0.588 GB, free: 15.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004938/0.8716, allocations: 271.4 kB / 0.5882 GB, free: 15.16 MB / 414.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.004494/0.8761, allocations: 1.335 MB / 0.5895 GB, free: 13.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.8761, allocations: 0 / 0.5895 GB, free: 13.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00148/0.8776, allocations: 0.5949 MB / 0.5901 GB, free: 13.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.8777, allocations: 4 kB / 0.5901 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.8777, allocations: 4 kB / 0.5901 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002813/0.878, allocations: 73.66 kB / 0.5902 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004604/0.8784, allocations: 99.81 kB / 0.5903 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009846/0.8794, allocations: 1.124 MB / 0.5914 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005733/0.88, allocations: 44.03 kB / 0.5914 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.239e-05/0.8801, allocations: 23.98 kB / 0.5914 GB, free: 11.75 MB / 414.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 (55): * Single equations (assignments): 51 * 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.000355/0.8805, allocations: 173.6 kB / 0.5916 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.8806, allocations: 43.53 kB / 0.5916 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.882, allocations: 0.5915 MB / 0.5922 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.837e-05/0.882, allocations: 8 kB / 0.5922 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.882, allocations: 3.938 kB / 0.5922 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.882, allocations: 0 / 0.5922 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/0.8845, allocations: 1.119 MB / 0.5933 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.8845, allocations: 4.031 kB / 0.5933 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/0.8849, allocations: 59.91 kB / 0.5934 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002658/0.8852, allocations: 77.66 kB / 0.5935 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/0.8853, allocations: 8 kB / 0.5935 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.8863, allocations: 1.12 MB / 0.5946 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.8863, allocations: 0 / 0.5946 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.888, allocations: 0.8096 MB / 0.5953 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003515/0.8884, allocations: 160.5 kB / 0.5955 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.618e-05/0.8885, allocations: 4 kB / 0.5955 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.8889, allocations: 35.97 kB / 0.5955 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.8891, allocations: 43.66 kB / 0.5956 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.864e-05/0.8891, allocations: 15.98 kB / 0.5956 GB, free: 7.285 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003867/0.8895, allocations: 283.2 kB / 0.5959 GB, free: 7.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8895, allocations: 0 / 0.5959 GB, free: 7.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002364/0.8919, allocations: 0.5734 MB / 0.5964 GB, free: 6.441 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * 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 (38): * Single equations (assignments): 32 * 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.004087/0.896, allocations: 2.135 MB / 0.5985 GB, free: 4.266 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.8972, allocations: 466.2 kB / 0.599 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.8972, allocations: 0.625 kB / 0.599 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004787/0.8977, allocations: 228.6 kB / 0.5992 GB, free: 3.586 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.899, allocations: 220.6 kB / 0.5994 GB, free: 3.375 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008141/0.9071, allocations: 4.901 MB / 0.6042 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.9077, allocations: 0.8434 MB / 0.605 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005399/0.9082, allocations: 108.2 kB / 0.6051 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003091/0.9086, allocations: 175.3 kB / 0.6053 GB, free: 13.17 MB / 430.1 MB Notification: Performance of SimCode: time 1.021e-06/0.9086, allocations: 4 kB / 0.6053 GB, free: 13.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05311/0.9617, allocations: 23.98 MB / 0.6287 GB, free: 5.309 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/0.962, allocations: 224.8 kB / 0.6289 GB, free: 5.055 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.097/4.059, allocations: 4 kB / 0.6289 GB, free: 5.051 MB / 446.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)