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.08218/0.08218, allocations: 15.29 MB / 30.79 MB, free: 4.074 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.0009502/0.0009503, allocations: 98.08 kB / 35.77 MB, free: 3.27 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.001053/0.001053, allocations: 193.1 kB / 40.88 MB, free: 7.203 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.235/1.235, allocations: 222.9 MB / 268.7 MB, free: 6.844 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.119/0.119, allocations: 23.36 MB / 346.4 MB, free: 0.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 107.8 kB / 418.3 MB, free: 30.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08507/0.08687, allocations: 59.36 MB / 477.7 MB, free: 2.879 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.2401/0.3271, allocations: 74.29 MB / 0.539 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01398/0.3411, allocations: 18.84 MB / 0.5574 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005517/0.3416, allocations: 11.94 kB / 0.5574 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005713/0.3422, allocations: 233.7 kB / 0.5577 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00479/0.347, allocations: 2.346 MB / 0.5599 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003624/0.3507, allocations: 1.588 MB / 0.5615 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009912/0.3517, allocations: 1.215 MB / 0.5627 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003617/0.352, allocations: 360.1 kB / 0.563 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001718/0.3538, allocations: 1.074 MB / 0.5641 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004261/0.3542, allocations: 452.2 kB / 0.5645 GB, free: 356 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.344e-05/0.3543, allocations: 44 kB / 0.5645 GB, free: 312 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003916/0.3582, allocations: 1.716 MB / 0.5662 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.3583, allocations: 126.5 kB / 0.5663 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002526/0.3586, allocations: 293.5 kB / 0.5666 GB, free: 15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003292/0.3619, allocations: 2.175 MB / 0.5688 GB, free: 13.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3619, allocations: 0 / 0.5688 GB, free: 13.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3619, allocations: 0 / 0.5688 GB, free: 13.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.3619, allocations: 0 / 0.5688 GB, free: 13.7 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.00158/0.3635, allocations: 1.032 MB / 0.5698 GB, free: 12.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.3636, allocations: 8.031 kB / 0.5698 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.507e-05/0.3636, allocations: 79.19 kB / 0.5698 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.3637, allocations: 51.38 kB / 0.5699 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.3642, allocations: 385.6 kB / 0.5703 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.3643, allocations: 29 kB / 0.5703 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.844e-05/0.3643, allocations: 40 kB / 0.5703 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006738/0.365, allocations: 448 kB / 0.5708 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.365, allocations: 3.938 kB / 0.5708 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.662e-05/0.3651, allocations: 16 kB / 0.5708 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.3651, allocations: 11.94 kB / 0.5708 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006746/0.3658, allocations: 380.7 kB / 0.5711 GB, free: 11.38 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.00241/0.3682, allocations: 2.208 MB / 0.5733 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005803/0.3688, allocations: 351.6 kB / 0.5736 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.3691, allocations: 185.6 kB / 0.5738 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001086/0.3702, allocations: 1.003 MB / 0.5748 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003468/0.3705, allocations: 214.3 kB / 0.575 GB, free: 7.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.764e-06/0.3706, allocations: 0 / 0.575 GB, free: 7.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001375/0.3719, allocations: 0.7088 MB / 0.5757 GB, free: 6.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.372, allocations: 59.41 kB / 0.5757 GB, free: 6.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.3724, allocations: 393.6 kB / 0.5761 GB, free: 5.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.3724, allocations: 33.7 kB / 0.5762 GB, free: 5.848 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.3726, allocations: 234.8 kB / 0.5764 GB, free: 5.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.904e-05/0.3727, allocations: 125.9 kB / 0.5765 GB, free: 5.492 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.3728, allocations: 90.02 kB / 0.5766 GB, free: 5.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3729, allocations: 354.7 kB / 0.5769 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.3732, allocations: 148.8 kB / 0.5771 GB, free: 4.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.3735, allocations: 237.7 kB / 0.5773 GB, free: 4.633 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.002016/0.3756, allocations: 0.9556 MB / 0.5782 GB, free: 3.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3756, allocations: 0 / 0.5782 GB, free: 3.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009294/0.3765, allocations: 0.514 MB / 0.5787 GB, free: 3.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.3765, allocations: 4 kB / 0.5787 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.3766, allocations: 7.938 kB / 0.5787 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002059/0.3768, allocations: 77.86 kB / 0.5788 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.3771, allocations: 75.89 kB / 0.5789 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007598/0.3779, allocations: 1.116 MB / 0.58 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003336/0.3782, allocations: 51.73 kB / 0.58 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.3783, allocations: 27.86 kB / 0.58 GB, free: 1.684 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.0002034/0.3785, allocations: 169.7 kB / 0.5802 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.929e-05/0.3786, allocations: 35.53 kB / 0.5802 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009549/0.3795, allocations: 485 kB / 0.5807 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.3795, allocations: 4 kB / 0.5807 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3796, allocations: 4 kB / 0.5807 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.3796, allocations: 8.016 kB / 0.5807 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.381, allocations: 0.9708 MB / 0.5817 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.3811, allocations: 0 / 0.5817 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.3813, allocations: 43.97 kB / 0.5817 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.3815, allocations: 77.64 kB / 0.5818 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.3815, allocations: 7.984 kB / 0.5818 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006328/0.3821, allocations: 1.113 MB / 0.5829 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3821, allocations: 8.188 kB / 0.5829 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.3832, allocations: 0.6773 MB / 0.5836 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.3834, allocations: 156.5 kB / 0.5837 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.566e-05/0.3835, allocations: 15.88 kB / 0.5837 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.3837, allocations: 15.98 kB / 0.5837 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.862e-05/0.3838, allocations: 31.95 kB / 0.5838 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.3838, allocations: 8 kB / 0.5838 GB, free: 13.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002789/0.3841, allocations: 283.1 kB / 0.584 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3841, allocations: 0 / 0.584 GB, free: 13.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001211/0.3854, allocations: 0.5228 MB / 0.5845 GB, free: 12.88 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.002566/0.3879, allocations: 1.955 MB / 0.5865 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008656/0.3888, allocations: 412.3 kB / 0.5869 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3888, allocations: 0 / 0.5869 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003642/0.3892, allocations: 176.5 kB / 0.587 GB, free: 10.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009731/0.3902, allocations: 220 kB / 0.5872 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005436/0.3956, allocations: 4.323 MB / 0.5915 GB, free: 5.715 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.396, allocations: 0.8274 MB / 0.5923 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002975/0.3963, allocations: 84.16 kB / 0.5923 GB, free: 4.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.3965, allocations: 147.4 kB / 0.5925 GB, free: 4.629 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3965, allocations: 0 / 0.5925 GB, free: 4.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04293/0.4394, allocations: 22.82 MB / 0.6148 GB, free: 13.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.93, allocations: 11.92 kB / 0.6148 GB, free: 13.89 MB / 446.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)